hokein added inline comments.

================
Comment at: clang-tools-extra/clangd/index/CanonicalIncludes.cpp:736
 void CanonicalIncludes::addSystemHeadersMapping(const LangOptions &Language) {
   if (Language.CPlusPlus) {
+    static const auto *Symbols = []() {
----------------
kadircet wrote:
> what about getting rid of `StdSymbolMapping` completely and changing 
> `CanonicalIncludes::mapSymbol` to use `tooling::stdlib` ?
> only call site is through `SymbolCollector`, which has access to 
> `LangOptions`.
Yeah, good idea. This simplifies the code further, thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143274

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

Reply via email to