Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 4203:4d42408da117
improving const-correctness in ParsedDicomFile
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 15:01:31 +0200 |
parents | fbc49a65340a |
children | 318c16cfccab |
rev | line source |
---|---|
4199 | 1 #!/bin/bash |
2 | |
3 set -ex | |
4 | |
5 CPPCHECK=cppcheck | |
6 | |
7 if [ $# -ge 1 ]; then | |
8 CPPCHECK=$1 | |
9 fi | |
10 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
11 cat <<EOF > /tmp/cppcheck-suppressions.txt |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
12 constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
13 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
14 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
15 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
16 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
17 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
18 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
19 |
4199 | 20 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
21 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 22 -DBOOST_HAS_DATE_TIME=1 \ |
23 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
24 -DBOOST_HAS_REGEX=1 \ | |
25 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
26 -DDCMTK_VERSION_NUMBER=365 \ | |
27 -DMONGOOSE_USE_CALLBACKS=1 \ | |
28 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ | |
29 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
30 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
31 -DORTHANC_ENABLE_BASE64=1 \ | |
32 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
33 -DORTHANC_ENABLE_CURL=1 \ | |
34 -DORTHANC_ENABLE_DCMTK=1 \ | |
35 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
36 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
37 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
38 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
39 -DORTHANC_ENABLE_JPEG=1 \ | |
40 -DORTHANC_ENABLE_LOCALE=1 \ | |
41 -DORTHANC_ENABLE_LOGGING=1 \ | |
42 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
43 -DORTHANC_ENABLE_LUA=1 \ | |
44 -DORTHANC_ENABLE_MD5=1 \ | |
45 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
46 -DORTHANC_ENABLE_PKCS11=1 \ | |
47 -DORTHANC_ENABLE_PLUGINS=1 \ | |
48 -DORTHANC_ENABLE_PNG=1 \ | |
49 -DORTHANC_ENABLE_PUGIXML=1 \ | |
50 -DORTHANC_ENABLE_SQLITE=1 \ | |
51 -DORTHANC_ENABLE_SSL=1 \ | |
52 -DORTHANC_ENABLE_ZLIB=1 \ | |
53 -DORTHANC_SANDBOXED=0 \ | |
54 -DORTHANC_SQLITE_VERSION=3027001 \ | |
55 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
56 -DPUGIXML_VERSION=150 \ | |
57 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
58 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
59 -D__GNUC__ \ | |
60 -D__cplusplus=201103 \ | |
61 -D__linux__ \ | |
62 -UNDEBUG \ | |
63 \ | |
64 ../../OrthancFramework/Sources \ | |
65 ../../OrthancFramework/UnitTestsSources \ | |
66 ../../OrthancServer/Plugins/Engine \ | |
67 ../../OrthancServer/Plugins/Include \ | |
68 ../../OrthancServer/Sources \ | |
69 ../../OrthancServer/UnitTestsSources \ | |
70 \ | |
71 2>&1 | grep -vE '\[unusedFunction\]$|^\^$|^$|function .* is never used' |