mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
Upgrade and cleanup cppcheck suppressions to version 1.76.1
Also renamed the suppressions file to the standard name. refs #831
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cad1eb4952
commit
e82d06849c
32
cppcheck.supp
Normal file
32
cppcheck.supp
Normal file
@@ -0,0 +1,32 @@
|
||||
// cppcheck suppression file for swift.
|
||||
//
|
||||
// In order to suppress a false positive add a line using one of the following templates:
|
||||
// [Explaining reason - comments]
|
||||
// [error id]:[filename2]
|
||||
// [error id]
|
||||
|
||||
// False positive caused by missing support for C++11 feature
|
||||
unusedPrivateFunction:src/blackmisc/lockfree.h
|
||||
|
||||
// Ignore noExplicitConstructor for now.
|
||||
noExplicitConstructor
|
||||
|
||||
// Ignore style issues in g2clib
|
||||
variableScope:src/plugins/weatherdata/gfs/g2clib/*.c
|
||||
|
||||
// std::initializer_list should always be passed by value
|
||||
passedByValue:src/blackmisc/input/actionhotkeylist.h
|
||||
passedByValue:src/blackmisc/logcategorylist.h
|
||||
|
||||
// Shared pointers should be passed by value
|
||||
passedByValue:src/blackmisc/lockfree.h
|
||||
|
||||
// False positive caused by cppcheck getting confused with preprocessor defines
|
||||
ConfigurationNotChecked:src/xbus/libxplanemp/src/XObjReadWrite.cpp
|
||||
|
||||
// Passing std::function by value is acceptable
|
||||
passedByValue:src/xbus/libxplanemp/src/ResourceManager.h
|
||||
passedByValue:src/xbus/command.h
|
||||
|
||||
// Unique pointers should be passed by value
|
||||
passedByValue:src/xbus/menus.h
|
||||
Reference in New Issue
Block a user