Adds a new HighlightingKind "Primitive". Adds a special case for TypeLocs that have an underlying TypePtr that is are builtin types, adding them as primitives.
The primary reason for this change is because otherwise typedefs that typedef primitives typedef int A would not get highlighted (so in the example A would not get any highlightings.)
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
nice, just a nit.
clang-tools-extra/clangd/SemanticHighlighting.cpp | ||
---|---|---|
138 ↗ | (On Diff #214121) | nit: we could merge this to the if below. |