ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.

LGTM.

I suggest considering a more direct way to solve the same problem: we could 
collect symbols for the main-file macros when building the preamble and store 
them in `PreambleData` (or somewhere else with the same lifetime).
I don't see any reasons why the current approach won't work, though, so looks 
ok too.



================
Comment at: unittests/clangd/CodeCompleteTests.cpp:2081
+      R"cpp(#include "foo.h"
+          define CLANGD_PREAMBLE_MAIN x
 
----------------
are we missing `#` here?


Repository:
  rCTE Clang Tools Extra

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

https://reviews.llvm.org/D60937



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

Reply via email to