hokein added inline comments.

================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:194
+  const SourceManager &SM;
+  const LangOptions &LO;
+  std::vector<HighlightingToken> Tokens;
----------------
nit: I'd call it `LangOpts`


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:200
+/// e.g. highlights dependent names and 'auto' as the underlying type.
+class CollectHighlightings : public RecursiveASTVisitor<CollectHighlightings> {
+public:
----------------
maybe call it `CollectExtraHiglightings` or `CollectAdditionalHighlightings`?


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:220
+  bool VisitOverloadExpr(OverloadExpr *E) {
+    if (!E->decls().empty())
+      return true; // handled by findExplicitReferences.
----------------
IIUC, if the decls don't have the same kind, we will not highlight it 
(previously, we fall back to `DependentName`).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69673/new/

https://reviews.llvm.org/D69673



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to