[all-commits] [llvm/llvm-project] fd2278: [Lex] Consider a PCH header-guarded even with #end...
Sam McCall via All-commits
all-commits at lists.llvm.org
Tue Jul 20 05:37:32 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd2278505482bd9db21423b0620be6afe04feb60
https://github.com/llvm/llvm-project/commit/fd2278505482bd9db21423b0620be6afe04feb60
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2021-07-20 (Tue, 20 Jul 2021)
Changed paths:
M clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
M clang/lib/Lex/Lexer.cpp
Log Message:
-----------
[Lex] Consider a PCH header-guarded even with #endif truncated
This seems to be a more useful behavior for tools that use preambles.
I believe it doesn't affect real compiles: the PCH is only included once
when used, and recursive inclusion of the main-file *within* the PCH
isn't supported in any case.
Differential Revision: https://reviews.llvm.org/D106204
More information about the All-commits
mailing list