Skip to content

Commit 50bb2ae

Browse files
committed
doc: update the list of flags given to analyzers
... to reflect the current implementation Closes: #12
1 parent eba8a39 commit 50bb2ae

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

doc/csclng.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ The following parameters are given to clang by default:
2424

2525
* -Xanalyzer -analyzer-output=text
2626

27+
* -fno-caret-diagnostics
28+
2729
The following parameters are passed to clang from compiler's command line:
2830

2931
* -D...
3032

3133
* -I...
3234

35+
* -O...
36+
37+
* -fexceptions
38+
39+
* -fno-exceptions
40+
3341
* -include ...
3442

3543
* -iquote ...
@@ -42,12 +50,6 @@ The following parameters are passed to clang from compiler's command line:
4250

4351
* -m64
4452

45-
* -fexceptions
46-
47-
* -fno-exceptions
48-
49-
* -O...
50-
5153
* -std...
5254

5355
The following file extensions are recognized as C/C++ source files:

doc/cscppc.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ The following parameters are given to cppcheck by default:
3232

3333
* -D__WORDSIZE=64{nbsp} [64bit architecture only]
3434

35+
* -D\__CPPCHECK__
36+
3537
* --inline-suppr
3638

3739
* --quiet
3840

39-
* --template="\{file}:\{line}: \{severity}: \{id}: \{message}"
41+
* --template="\{file}:\{line}: \{severity}: \{id}(CWE-\{cwe}): \{message}"
4042

4143
* --suppressions-list=/usr/share/cscppc/default.supp
4244

doc/csgcca.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The following parameters are given to the GCC analyzer by default:
2525

2626
* -fno-diagnostics-show-caret
2727

28+
* -fno-lto
29+
2830
* -c -o /dev/null
2931

3032
The following parameters are passed to the GCC analyzer from compiler's command
@@ -34,6 +36,12 @@ line:
3436

3537
* -I...
3638

39+
* -O...
40+
41+
* -Wno-...
42+
43+
* -f...
44+
3745
* -include ...
3846

3947
* -iquote ...
@@ -46,12 +54,6 @@ line:
4654

4755
* -m64
4856

49-
* -fexceptions
50-
51-
* -fno-exceptions
52-
53-
* -O...
54-
5557
* -std...
5658

5759
If csgcca is installed on system, the following command activates the wrapper:

0 commit comments

Comments
 (0)