21 lines · plain
1RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=source %p/Inputs/remark-count-by.yaml | FileCheck %s2RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=function %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNC3RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=function-with-loc %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNCLOC4RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=total %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKTOTAL5 6; CHECK-LABEL: Source,count1,count2,count3,count47; CHECK: path/to/anno.c,3,4,6,48; CHECK: path/to/anno2.c,1,2,3,09 10; CHECKFUNC-LABEL: Function,count1,count2,count3,count411; CHECKFUNC: func1,3,4,6,412; CHECKFUNC: func2,1,2,3,013 14; CHECKFUNCLOC-LABEL: FuctionWithDebugLoc,count1,count2,count3,count415; CHECKFUNCLOC: path/to/anno.c:func1,2,2,3,416; CHECKFUNCLOC: path/to/anno.c:func2,1,2,3,017; CHECKFUNCLOC: path/to/anno2.c:func1,1,2,3,018 19; CHECKTOTAL-LABEL: Total,count1,count2,count3,count420; CHECKTOTAL: Total,4,6,9,421