[clangd] Propagate header-guarded flag from preamble to main AST
authorSam McCall <sam.mccall@gmail.com>
Sat, 17 Jul 2021 00:17:44 +0000 (02:17 +0200)
committerSam McCall <sam.mccall@gmail.com>
Tue, 20 Jul 2021 12:21:39 +0000 (14:21 +0200)
commit69c04ef95a3529614b694d7e2fd57ee817076e86
treefcf0d489e7283936187830f7e081af79e012a277
parent419001724542d4b0d3423a71f0d42857af6a6227
[clangd] Propagate header-guarded flag from preamble to main AST

Fixes https://github.com/clangd/clangd/issues/377

Differential Revision: https://reviews.llvm.org/D106203
clang-tools-extra/clangd/ParsedAST.cpp
clang-tools-extra/clangd/Preamble.cpp
clang-tools-extra/clangd/Preamble.h
clang-tools-extra/clangd/unittests/ParsedASTTests.cpp