Skip to content

Commit ff4bb7c

Browse files
committed
manual-premium.md
1 parent 9e8aab6 commit ff4bb7c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

man/manual-premium.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,13 @@ To ignore certain folders you can use `-i`. This will skip analysis of source fi
307307

308308
cppcheck --project=compile_commands.json -ifoo
309309

310+
### `-isystem`, `-I`, `--sysroot`
311+
312+
Cppcheck needs to have flexible handling of include paths from compile_commands.json, and this is achieved with a script
313+
that can tweak the compile_commands.json file.
314+
315+
See [script documentation](https://github.com/cppcheck-opensource/cppcheck/blob/main/tools/tweak-compile-commands.md).
316+
310317
## Visual Studio
311318

312319
You can run Cppcheck on individual project files (`*.vcxproj`) or on a whole solution (`*.sln`) or (`*.slnx`).
@@ -1166,6 +1173,7 @@ To use a `.cfg` file shipped with Cppcheck, pass the `--library=<lib>` option. T
11661173
| `lua.cfg` | | |
11671174
| `mfc.cfg` | [MFC](https://learn.microsoft.com/en-us/cpp/mfc/mfc-desktop-applications) | |
11681175
| `microsoft_atl.cfg` | [ATL](https://learn.microsoft.com/en-us/cpp/atl/active-template-library-atl-concepts) | |
1176+
| `microsoft_gsl.cfg` | [Microsoft.GSL](https://github.com/microsoft/gsl) | |
11691177
| `microsoft_sal.cfg` | [SAL annotations](https://learn.microsoft.com/en-us/cpp/c-runtime-library/sal-annotations) | |
11701178
| `microsoft_unittest.cfg` | [CppUnitTest](https://learn.microsoft.com/en-us/visualstudio/test/microsoft-visualstudio-testtools-cppunittestframework-api-reference) | |
11711179
| `motif.cfg` | | |

0 commit comments

Comments
 (0)