mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 03:48:22 +00:00
Update cheatsheets
This commit is contained in:
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check a given file, specifying which tests to perform (by default only errors are shown):
|
||||
|
||||
`cppcheck --enable={{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}`
|
||||
`cppcheck --enable {{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}`
|
||||
|
||||
- List available tests:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check a given file, ignoring specific tests:
|
||||
|
||||
`cppcheck --suppress={{test_id1}} --suppress={{test_id2}} {{path/to/file.cpp}}`
|
||||
`cppcheck --suppress {{test_id1}} --suppress {{test_id2}} {{path/to/file.cpp}}`
|
||||
|
||||
- Check the current directory, providing paths for include files located outside it (e.g. external libraries):
|
||||
|
||||
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check a Microsoft Visual Studio project (`*.vcxproj`) or solution (`*.sln`):
|
||||
|
||||
`cppcheck --project={{path/to/project.sln}}`
|
||||
`cppcheck --project {{path/to/project.sln}}`
|
||||
|
||||
Reference in New Issue
Block a user