Skip to content

Commit 97fefe3

Browse files
committed
tweak
1 parent 7d5ca69 commit 97fefe3

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

man/checkers/unknownMacro.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,25 @@
99

1010
## Description
1111

12-
Cppcheck has found code that is confusing and does not know how to analyze it. Analysis is aborted.
12+
Cppcheck has found code that is confusing and does not know how to analyze it. This is a critical
13+
error, the analysis of the whole translation unit is aborted. Such error in a header file can mean
14+
that analysis of many source files are aborted.
1315

14-
Your code is probably OK but you need to configure Cppcheck to understand the code better.
15-
16-
This is a critical error, the analysis of the whole translation unit is aborted. Such error in a header file can mean that analysis of many source files are aborted.
16+
Your code is probably OK but you need to configure Cppcheck to make Cppcheck understand the code
17+
better.
1718

1819
## How to fix
1920

2021
Review the configuration.
2122

22-
If Cppcheck warns about a macro that is defined in a 3rd party library, and there is a cfg file for that, then a `--library=` option may be a proper solution.
23+
If Cppcheck warns about a macro that is defined in a 3rd party library, and there is a cfg file for
24+
that, then a `--library=` option may be a proper solution.
2325

24-
If Cppcheck warns about a macro that is defined in a header that should be included, make sure that this header is included properly. Cppcheck must have the include path.
26+
If Cppcheck warns about a macro that is defined in a header that should be included, make sure that
27+
this header is included properly. Cppcheck must have the include path.
2528

26-
If Cppcheck warns about a compiler keyword add a `-D` that defines this keyword somehow. I.e. if cppcheck should just ignore the keyword then
27-
an `-DKEYWORD=` option is suggested.
29+
If Cppcheck warns about a compiler keyword add a `-D` that defines this keyword somehow. I.e. if
30+
cppcheck should just ignore the keyword then an `-DKEYWORD=` option is suggested.
2831

2932
## Example
3033

0 commit comments

Comments
 (0)