[clang] [clang][driver] Don't warn when -S and -c are used together without -fsyntax-only (PR #104477)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 10:56:57 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d9b9ae6ba9d85114c61878b783d4eac816fd06a6 0af4f441447f39df7f496e62f8620d9c8404a5d2 --extensions c,cpp -- clang/lib/Driver/Driver.cpp clang/test/Driver/warn-fsyntax-only.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 0b6bc43dfe..6054bd99dd 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -379,7 +379,7 @@ phases::ID Driver::getFinalPhase(const DerivedArgList &DAL,
     FinalPhase = phases::Backend;
     DAL.ClaimAllArgs(options::OPT_c);
 
-  // -c compilation only runs up to the assembler.
+    // -c compilation only runs up to the assembler.
   } else if ((PhaseArg = DAL.getLastArg(options::OPT_c))) {
     FinalPhase = phases::Assemble;
 

``````````

</details>


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


More information about the cfe-commits mailing list