nridge added inline comments.
================ Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:1018 + const auto BaseType = E->getBaseType(); + if ((E->isArrow() && BaseType->getPointeeType().isConstQualified()) || + (!E->isArrow() && BaseType.isConstQualified())) ---------------- `getPointeeType()` needs a "null" check (check for empty QualType), this can arise if e.g. `BaseType` is a smart pointer type (`E->isArrow()` will still be true because the expression syntactically uses `->`, but `BaseType` will not be a `PointerType`) Otherwise looks good, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D148284/new/ https://reviews.llvm.org/D148284 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits