[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 5 13:00:58 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())
+  {
----------------
nebulark wrote:

Thx. I removed the braces for one line ifs completely. I had overlooked that in the coding guidelines.

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


More information about the cfe-commits mailing list