ilya-biryukov updated this revision to Diff 219100.
ilya-biryukov added a comment.
- Only highlight typedefs to non-composite types, simplifies everything
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66516/new/
https://reviews.llvm.org/D66516
Fil
ilya-biryukov planned changes to this revision.
ilya-biryukov added a comment.
Now that I think about it more, maybe the simplest option is to not recurse
into composite types at all
E.g. a typedef to a template parameter will be highlighted as a template
parameter. A typedef to a pointer ca
ilya-biryukov updated this revision to Diff 219090.
ilya-biryukov added a comment.
- Replace UnderlyingTypeVisitor with a function
- Remove PrintTo()
- Also highlight references to typedefs
- reformat
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66
nridge added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
ilya-bir
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
j
jvikstrom added a comment.
Pinging about this @ilya-biryukov
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66516/new/
https://reviews.llvm.org/D66516
___
cfe-commits mailing list
cfe-commits@lists.llvm
jvikstrom marked an inline comment as done.
jvikstrom added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type
jvikstrom updated this revision to Diff 217618.
jvikstrom added a comment.
Added a RecursiveASTVisitor for finding 'underlying' types.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66516/new/
https://reviews.llvm.org/D66516
Files:
clang-tools-ex
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
i
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
j
jvikstrom marked an inline comment as done.
jvikstrom added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
j
jvikstrom marked an inline comment as done.
jvikstrom added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
j
jvikstrom marked an inline comment as done.
jvikstrom added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type
ilya-biryukov added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:177
return;
+if (TP->isPointerType() || TP->isLValueReferenceType())
+ // When highlighting dependant template types the type can be a pointer
or
`
jvikstrom created this revision.
jvikstrom added reviewers: hokein, ilya-biryukov.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay,
kristof.beyls, javed.absar.
Herald added a project: clang.
Types dependant on templates did not get highlighted properly. This is because
17 matches
Mail list logo