cppcheck/test/cli
thingsconnected 98b9244bcb
addons/namingng.py: Add tests for include guards, config file validation. (#5815)
Include guard naming can be validated against various patterns:
- prefixes/suffixes (`_FILE_H`, `PROJECT_FILE_H`, `FILE_H_`)
- basename/full path (`FILE_H`, `SUB_DIR_INC_FILE_H`)
- upper- or lowercase (`FILE_H`, `file_h`)
- any combination of the above (`project_sub_dir_inc_file_h_`)

A regexp can be specified to match header filenames. The example matches
any filename not starting with / and ending with `.h`, intended to match
C header files while exluding system files.

The test is not limited to naming only; validity and presence of include
guards can also be tested by setting `"required":true` in the config
file.

Enabling this feature requires adding the key `"include_guard"` to the
namingng config file used.

The namingng unit test is extended to test various features of the
include guard test.

Also, config handling is improved, adding (superficial) validation and a
unit test.
2024-01-02 15:01:02 +01:00
..
QML-Samples-TableView runformat 2023-05-08 10:30:20 +02:00
helloworld added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
proj-inline-suppress Execute runformat 2023-06-10 17:37:32 +02:00
proj-inline-suppress-unusedFunction test/cli: fixed missing returns in test cases 2021-07-04 18:25:19 +02:00
proj-suppress-syntaxError Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
proj2 added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
trac5704 Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
readme.txt Add cli testing 2019-04-14 10:46:47 +02:00
test-clang-import.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-helloworld.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-inline-suppress.py #11733 FP unusedFunction with templates and --cppcheck-build-dir (#5085) 2023-05-26 06:13:48 +02:00
test-more-projects.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-other.py addons/namingng.py: Add tests for include guards, config file validation. (#5815) 2024-01-02 15:01:02 +01:00
test-performance.py Fix #12235 performance regression (hang) in 2.13dev (#5715) 2023-12-15 11:01:08 +01:00
test-proj2.py CI; Fixed problems in windows paths 2021-06-12 12:45:31 +02:00
test-project.py Fix #9162 (Invalid --project files do not give any error) (#3177) 2021-12-19 12:36:11 +01:00
test-qml.py refs #12167 - moved ordering of markup files into shared code / removed related test cases from executor tests (#5642) 2023-11-09 10:17:30 +01:00
test-suppress-syntaxError.py Fixed #12281 (IDE plugin integration is broken by checkers report) (#5779) 2023-12-19 15:55:29 +01:00
testutils.py Fixed #12281 (IDE plugin integration is broken by checkers report) (#5779) 2023-12-19 15:55:29 +01:00

readme.txt

Systemtesting of Cppcheck CLI on some projects

addons
base path
exclude folders
importing projects
 * visual studio
 * compile database
   - different generators bear/cmake/..
   - different platforms
suppressions

Different paths:
 * relative
 * absolute