hokein accepted this revision. hokein added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:208 } - if (isa<CXXMethodDecl>(D)) { - addToken(Loc, HighlightingKind::Method); + if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) { + addToken(Loc, MD->isStatic() ? HighlightingKind::StaticMethod ---------------- nit: just use auto, the type is obvious from RHS Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D66828/new/ https://reviews.llvm.org/D66828 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits