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 origin/main HEAD --extensions cpp,h -- 
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp 
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp 
b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
index 48605b57f..0cf8dba44 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
@@ -325,7 +325,7 @@ void PPCInstPrinter::printATBitsAsHint(const MCInst *MI, 
unsigned OpNo,
 
 // Template for unsigned immediate operands with validation.
 // Validates that the value fits within the specified width and prints it.
-template<unsigned Width>
+template <unsigned Width>
 void PPCInstPrinter::printUImmOperand(const MCInst *MI, unsigned OpNo,
                                       const MCSubtargetInfo &STI,
                                       raw_ostream &O) {
@@ -336,7 +336,7 @@ void PPCInstPrinter::printUImmOperand(const MCInst *MI, 
unsigned OpNo,
 
 // Template for signed immediate operands with sign extension.
 // Sign-extends the value to the specified width and prints it.
-template<unsigned Width>
+template <unsigned Width>
 void PPCInstPrinter::printSImmOperand(const MCInst *MI, unsigned OpNo,
                                       const MCSubtargetInfo &STI,
                                       raw_ostream &O) {
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h 
b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
index 51a8809f0..2ce0ec12b 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
@@ -57,12 +57,12 @@ public:
                          const MCSubtargetInfo &STI, raw_ostream &O);
 
   // Template for unsigned immediate operands with validation
-  template<unsigned Width>
+  template <unsigned Width>
   void printUImmOperand(const MCInst *MI, unsigned OpNo,
                         const MCSubtargetInfo &STI, raw_ostream &O);
 
   // Template for signed immediate operands with sign extension
-  template<unsigned Width>
+  template <unsigned Width>
   void printSImmOperand(const MCInst *MI, unsigned OpNo,
                         const MCSubtargetInfo &STI, raw_ostream &O);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/180289
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to