98b9244bcb
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. |
||
---|---|---|
.. | ||
QML-Samples-TableView | ||
helloworld | ||
proj-inline-suppress | ||
proj-inline-suppress-unusedFunction | ||
proj-suppress-syntaxError | ||
proj2 | ||
trac5704 | ||
readme.txt | ||
test-clang-import.py | ||
test-helloworld.py | ||
test-inline-suppress.py | ||
test-more-projects.py | ||
test-other.py | ||
test-performance.py | ||
test-proj2.py | ||
test-project.py | ||
test-qml.py | ||
test-suppress-syntaxError.py | ||
testutils.py |
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