xref: /llvm-project/clang/test/Analysis/analyzer-checker-option-help.c (revision 23413169299b872a9d0a9b947c2d27172b5f4cb0)
1 // RUN: %clang_cc1 -analyzer-checker-option-help \
2 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-STABLE
3 
4 // RUN: %clang_cc1 -analyzer-checker-option-help-alpha \
5 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-ALPHA
6 
7 // RUN: %clang_cc1 -analyzer-checker-option-help-developer \
8 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-DEVELOPER
9 
10 // RUN: %clang_cc1 -analyzer-checker-option-help-developer \
11 // RUN:   -analyzer-checker-option-help-alpha \
12 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-DEVELOPER-ALPHA
13 
14 // RUN: %clang_cc1 -analyzer-checker-option-help \
15 // RUN:   -analyzer-checker-option-help-alpha \
16 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-ALPHA
17 
18 // RUN: %clang_cc1 -analyzer-checker-option-help \
19 // RUN:   -analyzer-checker-option-help-developer \
20 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-DEVELOPER
21 
22 // RUN: %clang_cc1 -analyzer-checker-option-help \
23 // RUN:   -analyzer-checker-option-help-alpha \
24 // RUN:   -analyzer-checker-option-help-developer \
25 // RUN:   2>&1 | FileCheck %s -check-prefix=CHECK-STABLE-ALPHA-DEVELOPER
26 
27 // CHECK-STABLE: OVERVIEW: Clang Static Analyzer Checker and Package Option List
28 //
29 // CHECK-STABLE: USAGE: -analyzer-config <OPTION1=VALUE,OPTION2=VALUE,...>
30 //
31 // CHECK-STABLE:        -analyzer-config OPTION1=VALUE, -analyzer-config
32 // CHECK-STABLE-SAME:   OPTION2=VALUE, ...
33 //
34 // CHECK-STABLE: OPTIONS:
35 //
36 // CHECK-STABLE:   cplusplus.Move:WarnOn
37 // CHECK-STABLE-SAME:         (string) With setting "KnownsOnly" warn
38 
39 // CHECK-STABLE-NOT: debug.AnalysisOrder:*
40 // CHECK-DEVELOPER:  debug.AnalysisOrder:*
41 // CHECK-ALPHA-NOT:  debug.AnalysisOrder:*
42 
43 // CHECK-STABLE-NOT:    optin.cplusplus.UninitializedObject:IgnoreGuardedFields
44 // CHECK-DEVELOPER-NOT: optin.cplusplus.UninitializedObject:IgnoreGuardedFields
45 // CHECK-ALPHA:         optin.cplusplus.UninitializedObject:IgnoreGuardedFields
46 
47 // CHECK-STABLE:        optin.performance.Padding:AllowedPad
48 // CHECK-DEVELOPER-NOT: optin.performance.Padding:AllowedPad
49 // CHECK-ALPHA-NOT:     optin.performance.Padding:AllowedPad
50 
51 
52 // CHECK-STABLE-ALPHA-NOT: debug.AnalysisOrder:*
53 // CHECK-DEVELOPER-ALPHA:  debug.AnalysisOrder:*
54 // CHECK-STABLE-DEVELOPER: debug.AnalysisOrder:*
55 
56 // CHECK-STABLE-ALPHA:         optin.cplusplus.UninitializedObject:IgnoreGuardedFields
57 // CHECK-DEVELOPER-ALPHA:      optin.cplusplus.UninitializedObject:IgnoreGuardedFields
58 // CHECK-STABLE-DEVELOPER-NOT: optin.cplusplus.UninitializedObject:IgnoreGuardedFields
59 
60 // CHECK-STABLE-ALPHA:        optin.performance.Padding:AllowedPad
61 // CHECK-DEVELOPER-ALPHA-NOT: optin.performance.Padding:AllowedPad
62 // CHECK-STABLE-DEVELOPER:    optin.performance.Padding:AllowedPad
63 
64 
65 // CHECK-STABLE-ALPHA-DEVELOPER: debug.AnalysisOrder:*
66 // CHECK-STABLE-ALPHA-DEVELOPER: optin.cplusplus.UninitializedObject:IgnoreGuardedFields
67 // CHECK-STABLE-ALPHA-DEVELOPER: optin.performance.Padding:AllowedPad
68