[PATCH] D97417: [clangd] use a compatible preamble for the first AST built

Quentin Chateau via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 26 15:05:59 PST 2021


qchateau updated this revision to Diff 326816.
qchateau added a comment.

- [clangd] make more compile commands compatible
- [clangd] ignore incompatible preamble

  I improved command line compatibility detection (faster & matches more files) and I had to blacklist some preambles. Namely, when the file we're building the AST for appears in the include tree of a preamble, we can't use it, otherwise symbols are missing from the AST. I feel like I understand why, but I have no idea how to fix it ...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97417

Files:
  clang-tools-extra/clangd/ParsedAST.cpp
  clang-tools-extra/clangd/TUScheduler.cpp
  clang-tools-extra/clangd/TUScheduler.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97417.326816.patch
Type: text/x-patch
Size: 18541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210226/5cb745b2/attachment-0001.bin>


More information about the cfe-commits mailing list