[clang] 2240deb - [clang] Minor cleanups after b2de52bec
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 29 11:28:57 PDT 2021
Author: Nico Weber
Date: 2021-09-29T14:28:13-04:00
New Revision: 2240deb9766cc080b351016b0d7f975d7249b113
URL: https://github.com/llvm/llvm-project/commit/2240deb9766cc080b351016b0d7f975d7249b113
DIFF: https://github.com/llvm/llvm-project/commit/2240deb9766cc080b351016b0d7f975d7249b113.diff
LOG: [clang] Minor cleanups after b2de52bec
Added:
Modified:
clang/lib/Driver/ToolChains/Clang.cpp
clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 463fb62b223d..9450e8b154c5 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -5452,7 +5452,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (auto Group = diagGroupFromCLWarningID(WarningNumber)) {
CmdArgs.push_back(Args.MakeArgString(
- Twine("-Wno-") + DiagnosticIDs::getWarningOptionForGroup(*Group)));
+ "-Wno-" + DiagnosticIDs::getWarningOptionForGroup(*Group)));
continue;
}
}
diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 573bb5b4039b..547ec2c82cb3 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -1537,7 +1537,7 @@ static void emitDiagTable(std::map<std::string, GroupInfo> &DiagsInGroup,
OS << "0";
}
- OS << " )\n";
+ OS << ")\n";
}
OS << "#endif // DIAG_ENTRY\n\n";
}
More information about the cfe-commits
mailing list