You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/checkers/unknownMacro.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,25 @@
9
9
10
10
## Description
11
11
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.
13
15
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.
17
18
18
19
## How to fix
19
20
20
21
Review the configuration.
21
22
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.
23
25
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.
25
28
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.
0 commit comments