[PATCH] D158164: [FileCheck] Added --match-full-lines-leading and --match-full-lines-trailing option
Timo Stripf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 06:44:23 PDT 2023
strimo378 added a comment.
For clang AST dump test cases, we often have code like
> TranslationUnitDecl
> `-FunctionDecl <line:2:1, line:5:1> line:2:5 func 'int (int, int)'
>
> |-ParmVarDecl <col:10, col:14> col:14 used x 'int'
> |-ParmVarDecl <col:17, col:21> col:21 used y 'int'
> `-CompoundStmt <col:24, line:5:1>
> `-ReturnStmt <line:3:5, col:16>
> `-BinaryOperator <col:12, col:16> 'int' '+'
> |-ImplicitCastExpr <col:12> 'int' <LValueToRValue>
> | `-DeclRefExpr <col:12> 'int' lvalue ParmVar 0xbb44db0 'x' 'int'
> `-ImplicitCastExpr <col:16> 'int' <LValueToRValue>
> `-DeclRefExpr <col:16> 'int' lvalue ParmVar 0xbb44e30 'y' 'int'
with matching rules like
> FunctionDecl {{.*}} func 'int (int, int)'
with --match-full-lines we would need to add the ugly trailing stuff to test cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158164/new/
https://reviews.llvm.org/D158164
More information about the llvm-commits
mailing list