[llvm] [AIX] Add git revision to .file string (PR #88164)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 10:41:53 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 3009228a09dbfe04e0911fc19813ec72d389bc45 4dc5015fb04cd8c3b21d02b778c653947703438f -- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 1072fce89e..869670d43a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -500,13 +500,13 @@ bool AsmPrinter::doInitialization(Module &M) {
     if (MAI->hasFourStringsDotFile()) {
       const char VerStr[] =
 #ifdef PACKAGE_VENDOR
-      PACKAGE_VENDOR " "
+          PACKAGE_VENDOR " "
 #endif
-      PACKAGE_NAME " version " PACKAGE_VERSION
+          PACKAGE_NAME " version " PACKAGE_VERSION
 #ifdef LLVM_REVISION
-      " (" LLVM_REVISION ")"
+                         " (" LLVM_REVISION ")"
 #endif
-      ;
+          ;
       // TODO: Add timestamp and description.
       OutStreamer->emitFileDirective(FileName, VerStr, "", "");
     } else {

``````````

</details>


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


More information about the llvm-commits mailing list