21 lines · plain
1RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=source %p/Inputs/remark-count-by.yaml | FileCheck %s2RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=function %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNC3RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=function-with-loc %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNCLOC4RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=total %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKTOTAL5 6; CHECK-LABEL: Source,Count7; CHECK: path/to/anno.c,38; CHECK: path/to/anno2.c,19 10; CHECKFUNC-LABEL: Function,Count11; CHECKFUNC: func1,312; CHECKFUNC: func2,113 14; CHECKFUNCLOC-LABEL: FuctionWithDebugLoc,Count15; CHECKFUNCLOC: path/to/anno.c:func1,216; CHECKFUNCLOC: path/to/anno.c:func2,117; CHECKFUNCLOC: path/to/anno2.c:func1,118 19; CHECKTOTAL-LABEL: Total,Count20; CHECKTOTAL: Total,421