Will be used in clangd, see the follow-up change.
Clangd does not use comments read from PCH to avoid crashes due to
changed contents of the file. However, reading them considerably slows
down code completion on files with large preambles.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Not sure about two things:
- Using PreprocessorOptions for plumbing this setting. I'd rather put it into FrontendOptions, but there seems to be no way to get those in the ASTWriter... Happy to search for the alternatives
- Lack of tests. I'm not sure how to properly test it in clang. I've added asserts in clangd, see the follow-up D48943. But happy to look into writing actual tests if that looks important.
Also not sure if someone else should look at this change, suggestions for reviewers are very welcome!