[llvm] [NFC][TableGen] Fix namespace usage in various files (PR #161839)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 06:02:33 PDT 2025


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 h,cpp -- llvm/include/llvm/Support/X86DisassemblerDecoderCommon.h llvm/lib/TableGen/Error.cpp llvm/lib/TableGen/Main.cpp llvm/lib/TableGen/Record.cpp llvm/lib/TableGen/TGParser.cpp llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp llvm/utils/TableGen/Common/CodeGenRegisters.cpp llvm/utils/TableGen/Common/InfoByHwMode.cpp llvm/utils/TableGen/Common/PredicateExpander.cpp llvm/utils/TableGen/DXILEmitter.cpp llvm/utils/TableGen/DecoderEmitter.cpp llvm/utils/TableGen/ExegesisEmitter.cpp llvm/utils/TableGen/FastISelEmitter.cpp llvm/utils/TableGen/X86DisassemblerShared.h llvm/utils/TableGen/X86FoldTablesEmitter.cpp llvm/utils/TableGen/X86InstrMappingEmitter.cpp llvm/utils/TableGen/X86MnemonicTables.cpp llvm/utils/TableGen/X86ModRMFilters.h llvm/utils/TableGen/X86RecognizableInstr.h
``````````

: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/utils/TableGen/ExegesisEmitter.cpp b/llvm/utils/TableGen/ExegesisEmitter.cpp
index 47c578176..bd69919bb 100644
--- a/llvm/utils/TableGen/ExegesisEmitter.cpp
+++ b/llvm/utils/TableGen/ExegesisEmitter.cpp
@@ -115,7 +115,7 @@ ExegesisEmitter::ExegesisEmitter(const RecordKeeper &RK)
 }
 
 static bool EventNumberLess(const ValidationCounterInfo &LHS,
-                     const ValidationCounterInfo &RHS) {
+                            const ValidationCounterInfo &RHS) {
   return LHS.EventNumber < RHS.EventNumber;
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list