File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,8 +310,12 @@ To ignore certain folders you can use `-i`. This will skip analysis of source fi
310310
311311### ` -isystem ` , ` -I ` , ` --sysroot `
312312
313- Cppcheck needs to have flexible handling of include paths from compile_commands.json, and this is achieved with a script
314- that can tweak the compile_commands.json file.
313+ We have a [ script] ( https://github.com/cppcheck-opensource/cppcheck/blob/main/tools/tweak-compile-commands.py ) that tweaks compile_commands.json.
314+
315+ You can use it to:
316+ * use ` --sysroot ` flags in Cppcheck analysis
317+ * use ` -isystem ` paths in Cppcheck analysis
318+ * remove ` -I ` paths from the compile_commands.json
315319
316320See [ script documentation] ( https://github.com/cppcheck-opensource/cppcheck/blob/main/tools/tweak-compile-commands.md ) .
317321
You can’t perform that action at this time.
0 commit comments