[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 04:49:00 PST 2023


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 b01adc6bed7e5b924dd8a097be0aa893f4823905 4b3db6bdaf9f94277f23bf9a796f474a353e4d73 -- clang/include/clang/Basic/Version.h clang/lib/Basic/Version.cpp clang/lib/CodeGen/CodeGenModule.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Basic/Version.cpp b/clang/lib/Basic/Version.cpp
index 67aa653770..4823f566bd 100644
--- a/clang/lib/Basic/Version.cpp
+++ b/clang/lib/Basic/Version.cpp
@@ -57,8 +57,7 @@ std::string getLLVMRevision() {
 #endif
 }
 
-std::string getClangVendor()
-{
+std::string getClangVendor() {
 #ifdef CLANG_VENDOR
   return CLANG_VENDOR;
 #else

``````````

</details>


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


More information about the cfe-commits mailing list