blob: 51de51e285cd1fd75d6adecefac2a0e1050ed91f [file] [log] [blame]
Kristof Umannf1f351c2018-11-02 15:59:37 +00001// RUN: %clang_cc1 -analyzer-config-help 2>&1 | FileCheck %s
2// CHECK: OVERVIEW: Clang Static Analyzer -analyzer-config Option List
3//
4// CHECK: USAGE: clang -cc1 [CLANG_OPTIONS] -analyzer-config <OPTION1=VALUE,OPTION2=VALUE,...>
5//
6// CHCEK: clang -cc1 [CLANG_OPTIONS] -analyzer-config OPTION1=VALUE, -analyzer-config OPTION2=VALUE, ...
7//
8// CHECK: clang [CLANG_OPTIONS] -Xclang -analyzer-config -Xclang<OPTION1=VALUE,OPTION2=VALUE,...>
9//
10// CHECK: clang [CLANG_OPTIONS] -Xclang -analyzer-config -Xclang OPTION1=VALUE, -Xclang -analyzer-config -Xclang OPTION2=VALUE, ...
11//
12//
13// CHECK: OPTIONS:
14//
15// CHECK: aggressive-binary-operation-simplification
16// CHECK: (bool) Whether SValBuilder should rearrange
17// CHECK: comparisons and additive operations of symbolic
18// CHECK: expressions which consist of a sum of a
19// CHECK: symbol and a concrete integer into the format
20// CHECK: where symbols are on the left-hand side
21// CHECK: and the integer is on the right. This is
22// CHECK: only done if both symbols and both concrete
23// CHECK: integers are signed, greater than or equal
24// CHECK: to the quarter of the minimum value of the
25// CHECK: type and less than or equal to the quarter
26// CHECK: of the maximum value of that type. A + n
27// CHECK: <OP> B + m becomes A - B <OP> m - n, where
28// CHECK: A and B symbolic, n and m are integers.
29// CHECK: <OP> is any of '==', '!=', '<', '<=', '>',
30// CHECK: '>=', '+' or '-'. The rearrangement also
31// CHECK: happens with '-' instead of '+' on either
32// CHECK: or both side and also if any or both integers
33// CHECK: are missing. (default: false)