This triggers only on the definition itself, not on references (probably too
noisy). Inspecting the definition seems like a decent hint for being interested
in layout.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang-tools-extra/clangd/Hover.cpp | ||
|---|---|---|
| 571 | QuantityType seems to be an alias for int64_t, not sure how likely it is that someone will have a type that's bigger than 4GB, but still, should we make typeof HoverInfo::Size optional<int64_t> instead of unsigned? | |
| 573 | nit: either make this else if or put a return above ? | |
| 576 | similar to size, offset is also of type uint64_t | |
| clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
| 69 | any reason for changing these from int to char ? | |
| 1830 | maybe also add offset? | |
address comments
| clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
|---|---|---|
| 69 | hardcoding sizeof(int) isn't portable unless we want to set the target explicitly | |
thanks!
| clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
|---|---|---|
| 69 | right, the test already sets the target though. I suppose relying less on it is better, so feel free to keep it. | |
clang-format-diff not found in user's PATH; not linting file.