[clang-tools-extra] feat: highlight for import, export keyword of CXX Module (PR #204511)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 05:27:03 PDT 2026
================
@@ -582,36 +582,49 @@ class CollectExtraHighlightings
return true;
}
- bool VisitTagDecl(TagDecl *D) {
- for (TemplateParameterList *TPL : D->getTemplateParameterLists())
- H.addAngleBracketTokens(TPL->getLAngleLoc(), TPL->getRAngleLoc());
+ bool VisitImportDecl(const ImportDecl *D) {
+ H.addToken(D->getLocation(), HighlightingKind::Keyword);
----------------
Decodetalkers wrote:
should export also be marked as Modifier?
https://github.com/llvm/llvm-project/pull/204511
More information about the cfe-commits
mailing list