1// RUN: clang-tidy -enable-check-profile -checks='-*,readability-function-size' %s -- 2>&1 | FileCheck --match-full-lines -implicit-check-not='{{warning:|error:}}' %s
2
3// CHECK: ===-------------------------------------------------------------------------===
4// CHECK-NEXT: clang-tidy checks profiling
5// CHECK-NEXT: ===-------------------------------------------------------------------------===
6// CHECK-NEXT: Total Execution Time: {{.*}} seconds ({{.*}} wall clock)
7
8// CHECK: {{.*}} --- Name ---
9// CHECK-NEXT: {{.*}} readability-function-size
10// CHECK-NEXT: {{.*}} Total
11
12// CHECK-NOT: ===-------------------------------------------------------------------------===
13// CHECK-NOT: clang-tidy checks profiling
14// CHECK-NOT: ===-------------------------------------------------------------------------===
15// CHECK-NOT: Total Execution Time: {{.*}} seconds ({{.*}} wall clock)
16
17// CHECK-NOT: {{.*}} --- Name ---
18// CHECK-NOT: {{.*}} readability-function-size
19// CHECK-NOT: {{.*}} Total
20
21class A {
22 A() {}
23 ~A() {}
24};
25

source code of clang-tools-extra/test/clang-tidy/infrastructure/clang-tidy-enable-check-profile-one-tu.cpp