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
- rG LLVM Github Monorepo
- Build Status
Buildable 36417 Build 36416: arc lint + arc unit
Event Timeline
Comment Actions
nice, just a nit.
clang-tools-extra/clangd/SemanticHighlighting.cpp | ||
---|---|---|
138 | nit: we could merge this to the if below. |
nit: we could merge this to the if below.