diff options
author | Daniil Fukalov <dfukalov@gmail.com> | 2024-09-06 16:41:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 16:41:24 +0200 |
commit | b8d6885ff67efbc3142a2b49506ed0cc2b95e054 (patch) | |
tree | 27ca26fbf29d4edf42e69b26ebd2c253a53517c7 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 2461bc1c7ad5a78f39f75c6e99acf502b83401d2 (diff) | |
download | llvm-b8d6885ff67efbc3142a2b49506ed0cc2b95e054.zip llvm-b8d6885ff67efbc3142a2b49506ed0cc2b95e054.tar.gz llvm-b8d6885ff67efbc3142a2b49506ed0cc2b95e054.tar.bz2 |
[NFC] Add explicit #include llvm-config.h where its macros are used, clang part. (#107301)
(this is clang related part)
Without these explicit includes, removing other headers, who implicitly
include llvm-config.h, may have non-trivial side effects. For example,
`clagd` may report even `llvm-config.h` as "no used" in case it defines
a macro, that is explicitly used with #ifdef. It is actually amplified
with different build configs which use different set of macros.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 9f5d09e..64f90c4 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -26,6 +26,7 @@ #include "clang/Serialization/ASTReader.h" #include "clang/Serialization/ASTWriter.h" #include "clang/Serialization/ModuleFile.h" +#include "llvm/Config/llvm-config.h" // for LLVM_HOST_TRIPLE #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" |