aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/generate_analyzer_options_docs.test
blob: 0c95346504ae3b4618d73acf06ef4bef15746a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
The documentation of analyzer options is generated by a script that parses
AnalyzerOptions.def. The following line validates that this script
"understands" everything in its input files:

RUN: %python %src_dir/docs/tools/generate_analyzer_options_docs.py \
RUN:   --options-def %src_include_dir/clang/StaticAnalyzer/Core/AnalyzerOptions.def \
RUN:   --template %src_dir/docs/analyzer/user-docs/Options.rst.in \
RUN:   --out %t.rst

Moreover, verify that the documentation (e.g. this fragment of the
documentation of the "mode" option) can be found in the output file:

RUN: FileCheck --input-file=%t.rst %s
CHECK: Controls the high-level analyzer mode