Update cheatsheets

This commit is contained in:
ivuorinen
2024-04-19 00:13:37 +00:00
parent 7de5092ed1
commit 48aff03a74
104 changed files with 150 additions and 146 deletions

View File

@@ -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}}`