[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 1 09:10:36 PDT 2024
================
@@ -322,6 +323,46 @@ static bool actionRequiresCodeGen(BackendAction Action) {
Action != Backend_EmitLL;
}
+static std::string flattenClangCommandLine(ArrayRef<std::string> Args,
+ StringRef MainFilename) {
+ if (Args.empty())
+ {
----------------
compnerd wrote:
The braces are unnecessary here, but more importantly, they should be coddled.
https://github.com/llvm/llvm-project/pull/106369
More information about the cfe-commits
mailing list