[llvm] [NFC] Run clang-format on TGLexer and TGParser (PR #151509)
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 3 22:37:13 PDT 2025
================
@@ -1525,39 +1540,84 @@ const Init *TGParser::ParseOperation(Record *CurRec, const RecTy *ItemType) {
case tgtok::XSetDagOpName: { // Value ::= !binop '(' Value ',' Value ')'
tgtok::TokKind OpTok = Lex.getCode();
SMLoc OpLoc = Lex.getLoc();
- Lex.Lex(); // eat the operation
+ Lex.Lex(); // eat the operation
BinOpInit::BinaryOp Code;
switch (OpTok) {
----------------
nemanjai wrote:
Unrelated to this PR, but it might make this code more readable if this `switch` and the one on line 1634 were actually pulled out into a separate function with internal linkage that would set `Code, Type, ArgType` rather than having two nested `switch` statements in one `case` of the outer one.
https://github.com/llvm/llvm-project/pull/151509
More information about the llvm-commits
mailing list