1 RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=source %p/Inputs/remark-count-by.yaml | FileCheck %s
2 RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=function %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNC
3 RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=function-with-loc %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKFUNCLOC
4 RUN: llvm-remarkutil count --parser=yaml --count-by=remark-name --group-by=total %p/Inputs/remark-count-by.yaml | FileCheck %s --check-prefix=CHECKTOTAL
6 ; CHECK-LABEL: Source,Count
7 ; CHECK: path/to/anno.c,3
8 ; CHECK: path/to/anno2.c,1
10 ; CHECKFUNC-LABEL: Function,Count
14 ; CHECKFUNCLOC-LABEL: FuctionWithDebugLoc,Count
15 ; CHECKFUNCLOC: path/to/anno.c:func1,2
16 ; CHECKFUNCLOC: path/to/anno.c:func2,1
17 ; CHECKFUNCLOC: path/to/anno2.c:func1,1
19 ; CHECKTOTAL-LABEL: Total,Count