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/manual.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,13 +126,13 @@ Typically a `compile_commands.json` contains absolute paths. However no matter i
126
126
* a file with relative path `src/test2.c` can be checked.
127
127
* a file with relative path `src/test3.cpp` is not checked.
128
128
129
-
### Ignore/skip files matching a given pattern
129
+
### Ignore files matching a given pattern
130
130
131
-
With `-i <str>` you can configure filename/directory patterns that should be ignored/skipped.
131
+
With `-i <str>` you can configure filename/directory patterns that should be ignored.
132
132
133
-
> *Note*: If you want to filter out warnings for a header file then `-i`will not work. The option `--suppress` should be used instead. Any header included in a source file which is not ignored would be processed regardless the `-i` option applied to that header.
133
+
A file that is ignored will not be checked directly (the complete translation unit is skipped). Any header #include'd from a source file which is not ignored is checked indirectly, regardless if the header is ignored.
134
134
135
-
Translation units are skipped if their *source filename* matches the exclusion pattern. This filtering happens *before* preprocessing, and the exclusion patterns are not applied during preprocessing or analysis.
135
+
> *Note*: If you want to filter out warnings for a header file then `-i` will not work. Use suppressions instead.
136
136
137
137
You can use `**`, `*` and `?` in the pattern to specify excluded folders/files.
138
138
`**`: matches zero or more characters, including path separators
0 commit comments