aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Hunt <oliver@apple.com>2025-08-13 18:08:02 -0700
committerOliver Hunt <oliver@apple.com>2025-08-13 18:08:02 -0700
commit9783fcf4b0005553ac091b4eed835eb86c998273 (patch)
tree71c7c6967a070f069aec486dd10bb426dfcc1009
parent6a2fe6deb5fb5f5505cade16f0b0a0349c582df4 (diff)
downloadllvm-users/ojhunt/abi-extension.zip
llvm-users/ojhunt/abi-extension.tar.gz
llvm-users/ojhunt/abi-extension.tar.bz2
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp2
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index c925e1f..cf98876 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -1183,7 +1183,7 @@ void DumpCompilerOptionsAction::ExecuteAction() {
OS << "\n\"extensions\" : [\n";
{
llvm::SmallString<128> Str;
-#define EXTENSION_OPTION(Name, Predicate) \
+#define EXTENSION_OPTION(Name, Predicate) \
("\t{\"" #Name "\" : " + llvm::Twine(Predicate ? "true" : "false") + "},\n") \
.toVector(Str);
#define EXTENSION(Name, Predicate) EXTENSION_OPTION(Name, Predicate)
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index 7cae6ac..11814fd 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1118,7 +1118,7 @@ static bool HasExtension(const Preprocessor &PP, StringRef Extension) {
#define ABI_EXTENSION(Name, Predicate) .Case(#Name, Predicate)
bool IsABIExtension = llvm::StringSwitch<bool>(Extension)
#include "clang/Basic/Features.def"
- .Default(false);
+ .Default(false);
#undef ABI_EXTENSION
if (IsABIExtension)
return true;