[clang] [clang-tools-extra] [NFC] Add explicit #include llvm-config.h where its macros are used, clang part. (PR #107301)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 5 12:45:59 PDT 2024


================
@@ -15,6 +15,7 @@
 #include "clang/Driver/InputInfo.h"
 #include "clang/Driver/Options.h"
 #include "clang/Driver/SanitizerArgs.h"
+#include "llvm/Config/llvm-config.h" // for LLVM_HOST_TRIPLE
----------------
nikic wrote:

Possibly we should not have the include for cases like this, where the macro is used directly, not in `#if` and will fail the build when missing?

https://github.com/llvm/llvm-project/pull/107301


More information about the cfe-commits mailing list