Skip to content

Commit 842264f

Browse files
Merge branch 'cppcheck-opensource:main' into chr_14697
2 parents 54b1bb7 + 7a91746 commit 842264f

88 files changed

Lines changed: 1160 additions & 442 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CI-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292

9393
- name: Run CMake
9494
run: |
95-
cmake -S . -B build.cxxstd -Werror=dev -G "Visual Studio 17 2022" -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
95+
cmake -S . -B build.cxxstd -Werror=dev -A x64 -DCMAKE_CXX_STANDARD=${{ matrix.cxxstd }} -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
9696
9797
- name: Build
9898
run: |
@@ -133,12 +133,12 @@ jobs:
133133
- name: Run CMake (without GUI)
134134
run: |
135135
:: TODO: enable DHAVE_RULES?
136-
cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output -G "Visual Studio 17 2022" -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On
136+
cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On
137137
138138
- name: Run CMake (with GUI)
139139
run: |
140140
:: TODO: enable DHAVE_RULES?
141-
cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output.gui -G "Visual Studio 17 2022" -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
141+
cmake-${{ env.CMAKE_VERSION_FULL }}-windows-x86_64\bin\cmake.exe -S . -B cmake.output.gui -A x64 -DHAVE_RULES=Off -DBUILD_TESTING=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On
142142
143143
build:
144144
strategy:

.github/workflows/release-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
7z x pcre-%PCRE_VERSION%.zip || exit /b !errorlevel!
5656
cd pcre-%PCRE_VERSION% || exit /b !errorlevel!
5757
git apply --ignore-space-change ..\externals\pcre.patch || exit /b !errorlevel!
58-
cmake . -G "Visual Studio 17 2022" -A x64 -DPCRE_BUILD_PCRECPP=OFF -DPCRE_BUILD_PCREGREP=OFF -DPCRE_BUILD_TESTS=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
58+
cmake . -A x64 -DPCRE_BUILD_PCRECPP=OFF -DPCRE_BUILD_PCREGREP=OFF -DPCRE_BUILD_TESTS=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
5959
msbuild -m PCRE.sln -p:Configuration=Release -p:Platform=x64 || exit /b !errorlevel!
6060
copy pcre.h ..\externals || exit /b !errorlevel!
6161
copy Release\pcre.lib ..\externals\pcre64.lib || exit /b !errorlevel!

.selfcheck_suppressions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ knownConditionTrueFalse:externals/tinyxml2/tinyxml2.cpp
7878
useStlAlgorithm:externals/simplecpp/simplecpp.cpp
7979
funcArgNamesDifferentUnnamed:externals/simplecpp/simplecpp.h
8080
missingMemberCopy:externals/simplecpp/simplecpp.h
81+
shadowFunction:externals/simplecpp/simplecpp.cpp
82+
shadowFunction:externals/simplecpp/simplecpp.h

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Debrard Sebastien
105105
Deepak Gupta
106106
Degen's Regens
107107
dencat
108+
Devansh Varshney
108109
Diego de las Heras
109110
Dirk Jagdmann
110111
Dirk Mueller
@@ -140,6 +141,7 @@ Frank Winklmeier
140141
Frank Zingsheim
141142
Frederik Schwarzer
142143
fu7mu4
144+
Gaël Bonithon
143145
Galimov Albert
144146
Garrett Bodily
145147
Gary Leutheuser

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ $(libcppdir)/checkautovariables.o: lib/checkautovariables.cpp lib/addoninfo.h li
515515
$(libcppdir)/checkbool.o: lib/checkbool.cpp lib/addoninfo.h lib/astutils.h lib/check.h lib/checkbool.h lib/checkers.h lib/config.h lib/errortypes.h lib/library.h lib/mathlib.h lib/platform.h lib/regex.h lib/settings.h lib/smallvector.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h
516516
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/checkbool.cpp
517517

518-
$(libcppdir)/checkbufferoverrun.o: lib/checkbufferoverrun.cpp externals/tinyxml2/tinyxml2.h lib/addoninfo.h lib/astutils.h lib/check.h lib/checkbufferoverrun.h lib/checkers.h lib/config.h lib/ctu.h lib/errorlogger.h lib/errortypes.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/regex.h lib/settings.h lib/smallvector.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/valueflow.h lib/vfvalue.h lib/xml.h
518+
$(libcppdir)/checkbufferoverrun.o: lib/checkbufferoverrun.cpp externals/tinyxml2/tinyxml2.h lib/addoninfo.h lib/astutils.h lib/check.h lib/checkbufferoverrun.h lib/checkers.h lib/config.h lib/ctu.h lib/errorlogger.h lib/errortypes.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/regex.h lib/settings.h lib/smallvector.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/valueflow.h lib/vf_common.h lib/vfvalue.h lib/xml.h
519519
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/checkbufferoverrun.cpp
520520

521521
$(libcppdir)/checkclass.o: lib/checkclass.cpp externals/tinyxml2/tinyxml2.h lib/addoninfo.h lib/astutils.h lib/check.h lib/checkclass.h lib/checkers.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/regex.h lib/settings.h lib/smallvector.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h lib/xml.h

addons/misra.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ def get_function_pointer_type(tok):
803803
ret += '('
804804
tok = tok.next.next
805805
while tok and (tok.str not in '()'):
806-
if tok.varId is None:
807-
ret += ' ' + tok.str
806+
ret += ' ' + tok.str
808807
tok = tok.next
809808
if (tok is None) or tok.str != ')':
810809
return None

cfg/gtk.cfg

Lines changed: 104 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,24 @@
1010
<define name="g_return_val_if_reached(val)" value="do{return (val);}while(0);"/>
1111
<define name="G_CALLBACK(cb)" value="cb"/>
1212
<define name="GTK_SIGNAL_FUNC(f)" value="G_CALLBACK(f)"/>
13+
<define name="G_DIR_SEPARATOR_S" value="&quot;/&quot;"/>
14+
<define name="G_GINT32_FORMAT" value="&quot;i&quot;"/>
15+
<define name="G_GINT32_MODIFIER" value="&quot;&quot;"/>
16+
<define name="G_GINT64_FORMAT" value="&quot;li&quot;"/>
17+
<define name="G_GINT64_MODIFIER" value="&quot;l&quot;"/>
18+
<define name="G_GSIZE_FORMAT" value="&quot;lu&quot;"/>
19+
<define name="G_GSIZE_MODIFIER" value="&quot;l&quot;"/>
20+
<define name="G_GSSIZE_FORMAT" value="&quot;li&quot;"/>
21+
<define name="G_GSSIZE_MODIFIER" value="&quot;l&quot;"/>
22+
<define name="G_GUINT32_FORMAT" value="&quot;u&quot;"/>
23+
<define name="G_GUINT64_FORMAT" value="&quot;lu&quot;"/>
1324
<!-- https://developer.gnome.org/glib/stable/glib-Miscellaneous-Macros.html -->
1425
<!-- https://github.com/GNOME/glib/blob/master/glib/gmacros.h -->
26+
<define name="G_GNUC_CHECK_VERSION(major, minor)" value="1"/>
1527
<define name="G_GNUC_BEGIN_IGNORE_DEPRECATIONS" value=""/>
1628
<define name="G_GNUC_END_IGNORE_DEPRECATIONS" value=""/>
29+
<define name="G_GNUC_DEPRECATED" value="__attribute__((__deprecated__))"/>
30+
<define name="G_GNUC_DEPRECATED_FOR(f)" value="__attribute__((deprecated(&quot;Use &quot; #f &quot; instead&quot;)))"/>
1731
<define name="G_GNUC_PRETTY_FUNCTION" value="__PRETTY_FUNCTION__"/>
1832
<define name="G_GNUC_PURE" value="__attribute__((__pure__))"/>
1933
<define name="G_GNUC_MALLOC" value="__attribute__((__malloc__))"/>
@@ -234,6 +248,86 @@
234248
<define name="G_VARIANT_TYPE_BYTESTRING_ARRAY" value="((const GVariantType *) &quot;aay&quot;)"/>
235249
<define name="G_VARIANT_TYPE_VARDICT" value="((const GVariantType *) &quot;a{sv}&quot;)"/>
236250
<define name="G_VARIANT_TYPE(s)" value="((const GVariantType *) (s))"/>
251+
<!-- gio/gfileinfo.h -->
252+
<define name="G_FILE_ATTRIBUTE_STANDARD_TYPE" value="&quot;standard::type&quot;"/>
253+
<define name="G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN" value="&quot;standard::is-hidden&quot;"/>
254+
<define name="G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP" value="&quot;standard::is-backup&quot;"/>
255+
<define name="G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK" value="&quot;standard::is-symlink&quot;"/>
256+
<define name="G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL" value="&quot;standard::is-virtual&quot;"/>
257+
<define name="G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE" value="&quot;standard::is-volatile&quot;"/>
258+
<define name="G_FILE_ATTRIBUTE_STANDARD_NAME" value="&quot;standard::name&quot;"/>
259+
<define name="G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME" value="&quot;standard::display-name&quot;"/>
260+
<define name="G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME" value="&quot;standard::edit-name&quot;"/>
261+
<define name="G_FILE_ATTRIBUTE_STANDARD_COPY_NAME" value="&quot;standard::copy-name&quot;"/>
262+
<define name="G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION" value="&quot;standard::description&quot;"/>
263+
<define name="G_FILE_ATTRIBUTE_STANDARD_ICON" value="&quot;standard::icon&quot;"/>
264+
<define name="G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON" value="&quot;standard::symbolic-icon&quot;"/>
265+
<define name="G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE" value="&quot;standard::content-type&quot;"/>
266+
<define name="G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE" value="&quot;standard::fast-content-type&quot;"/>
267+
<define name="G_FILE_ATTRIBUTE_STANDARD_SIZE" value="&quot;standard::size&quot;"/>
268+
<define name="G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE" value="&quot;standard::allocated-size&quot;"/>
269+
<define name="G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET" value="&quot;standard::symlink-target&quot;"/>
270+
<define name="G_FILE_ATTRIBUTE_STANDARD_TARGET_URI" value="&quot;standard::target-uri&quot;"/>
271+
<define name="G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER" value="&quot;standard::sort-order&quot;"/>
272+
<define name="G_FILE_ATTRIBUTE_ETAG_VALUE" value="&quot;etag::value&quot;"/>
273+
<define name="G_FILE_ATTRIBUTE_ID_FILE" value="&quot;id::file&quot;"/>
274+
<define name="G_FILE_ATTRIBUTE_ID_FILESYSTEM" value="&quot;id::filesystem&quot;"/>
275+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_READ" value="&quot;access::can-read&quot;"/>
276+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE" value="&quot;access::can-write&quot;"/>
277+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE" value="&quot;access::can-execute&quot;"/>
278+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE" value="&quot;access::can-delete&quot;"/>
279+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH" value="&quot;access::can-trash&quot;"/>
280+
<define name="G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME" value="&quot;access::can-rename&quot;"/>
281+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT" value="&quot;mountable::can-mount&quot;"/>
282+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT" value="&quot;mountable::can-unmount&quot;"/>
283+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT" value="&quot;mountable::can-eject&quot;"/>
284+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE" value="&quot;mountable::unix-device&quot;"/>
285+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE" value="&quot;mountable::unix-device-file&quot;"/>
286+
<define name="G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI" value="&quot;mountable::hal-udi&quot;"/>
287+
<define name="G_FILE_ATTRIBUTE_TIME_MODIFIED" value="&quot;time::modified&quot;"/>
288+
<define name="G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC" value="&quot;time::modified-usec&quot;"/>
289+
<define name="G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC" value="&quot;time::modified-nsec&quot;"/>
290+
<define name="G_FILE_ATTRIBUTE_TIME_ACCESS" value="&quot;time::access&quot;"/>
291+
<define name="G_FILE_ATTRIBUTE_TIME_ACCESS_USEC" value="&quot;time::access-usec&quot;"/>
292+
<define name="G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC" value="&quot;time::access-nsec&quot;"/>
293+
<define name="G_FILE_ATTRIBUTE_TIME_CHANGED" value="&quot;time::changed&quot;"/>
294+
<define name="G_FILE_ATTRIBUTE_TIME_CHANGED_USEC" value="&quot;time::changed-usec&quot;"/>
295+
<define name="G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC" value="&quot;time::changed-nsec&quot;"/>
296+
<define name="G_FILE_ATTRIBUTE_TIME_CREATED" value="&quot;time::created&quot;"/>
297+
<define name="G_FILE_ATTRIBUTE_TIME_CREATED_USEC" value="&quot;time::created-usec&quot;"/>
298+
<define name="G_FILE_ATTRIBUTE_TIME_CREATED_NSEC" value="&quot;time::created-nsec&quot;"/>
299+
<define name="G_FILE_ATTRIBUTE_UNIX_DEVICE" value="&quot;unix::device&quot;"/>
300+
<define name="G_FILE_ATTRIBUTE_UNIX_INODE" value="&quot;unix::inode&quot;"/>
301+
<define name="G_FILE_ATTRIBUTE_UNIX_MODE" value="&quot;unix::mode&quot;"/>
302+
<define name="G_FILE_ATTRIBUTE_UNIX_NLINK" value="&quot;unix::nlink&quot;"/>
303+
<define name="G_FILE_ATTRIBUTE_UNIX_UID" value="&quot;unix::uid&quot;"/>
304+
<define name="G_FILE_ATTRIBUTE_UNIX_GID" value="&quot;unix::gid&quot;"/>
305+
<define name="G_FILE_ATTRIBUTE_UNIX_RDEV" value="&quot;unix::rdev&quot;"/>
306+
<define name="G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE" value="&quot;unix::block-size&quot;"/>
307+
<define name="G_FILE_ATTRIBUTE_UNIX_BLOCKS" value="&quot;unix::blocks&quot;"/>
308+
<define name="G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT" value="&quot;unix::is-mountpoint&quot;"/>
309+
<define name="G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE" value="&quot;dos::is-archive&quot;"/>
310+
<define name="G_FILE_ATTRIBUTE_DOS_IS_SYSTEM" value="&quot;dos::is-system&quot;"/>
311+
<define name="G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT" value="&quot;dos::is-mountpoint&quot;"/>
312+
<define name="G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG" value="&quot;dos::reparse-point-tag&quot;"/>
313+
<define name="G_FILE_ATTRIBUTE_OWNER_USER" value="&quot;owner::user&quot;"/>
314+
<define name="G_FILE_ATTRIBUTE_OWNER_USER_REAL" value="&quot;owner::user-real&quot;"/>
315+
<define name="G_FILE_ATTRIBUTE_OWNER_GROUP" value="&quot;owner::group&quot;"/>
316+
<define name="G_FILE_ATTRIBUTE_THUMBNAIL_PATH" value="&quot;thumbnail::path&quot;"/>
317+
<define name="G_FILE_ATTRIBUTE_THUMBNAILING_FAILED" value="&quot;thumbnail::failed&quot;"/>
318+
<define name="G_FILE_ATTRIBUTE_PREVIEW_ICON" value="&quot;preview::icon&quot;"/>
319+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_SIZE" value="&quot;filesystem::size&quot;"/>
320+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_FREE" value="&quot;filesystem::free&quot;"/>
321+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_TYPE" value="&quot;filesystem::type&quot;"/>
322+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_READONLY" value="&quot;filesystem::readonly&quot;"/>
323+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW" value="&quot;filesystem::use-preview&quot;"/>
324+
<define name="G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE" value="&quot;filesystem::remote&quot;"/>
325+
<define name="G_FILE_ATTRIBUTE_GVFS_BACKEND" value="&quot;gvfs::backend&quot;"/>
326+
<define name="G_FILE_ATTRIBUTE_SELINUX_CONTEXT" value="&quot;selinux::context&quot;"/>
327+
<define name="G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT" value="&quot;trash::item-count&quot;"/>
328+
<define name="G_FILE_ATTRIBUTE_TRASH_ORIG_PATH" value="&quot;trash::orig-path&quot;"/>
329+
<define name="G_FILE_ATTRIBUTE_TRASH_DELETION_DATE" value="&quot;trash::deletion-date&quot;"/>
330+
<define name="G_FILE_ATTRIBUTE_RECENT_MODIFIED" value="&quot;recent::modified&quot;"/>
237331
<memory>
238332
<alloc init="true" no-fail="true">g_thread_new</alloc>
239333
<alloc init="true" no-fail="false">g_thread_try_new</alloc>
@@ -807,7 +901,6 @@
807901
<alloc init="true" no-fail="true">g_app_info_get_default_for_uri_scheme</alloc>
808902
<alloc init="true" no-fail="true">g_application_new</alloc>
809903
<alloc init="true" no-fail="true">g_application_get_dbus_connection</alloc>
810-
<alloc init="true" no-fail="true">g_application_get_default</alloc>
811904
<alloc init="true" no-fail="true">g_buffered_input_stream_new</alloc>
812905
<alloc init="true" no-fail="true">g_buffered_output_stream_new</alloc>
813906
<alloc init="true" no-fail="true">g_cancellable_new</alloc>
@@ -926,6 +1019,12 @@
9261019
<use>g_file_attribute_matcher_ref</use>
9271020
<dealloc>g_file_attribute_matcher_unref</dealloc>
9281021
</memory>
1022+
<function name="g_application_get_default">
1023+
<leak-ignore/>
1024+
<noreturn>false</noreturn>
1025+
<returnValue type="GApplication *"/>
1026+
<use-retval/>
1027+
</function>
9291028
<function name="g_exit">
9301029
<noreturn>true</noreturn>
9311030
</function>
@@ -22967,6 +23066,10 @@
2296723066
<define name="GTK_IMAGE_ICON_NAME" value="1"/>
2296823067
<define name="GTK_IMAGE_GICON" value="2"/>
2296923068
<define name="GTK_IMAGE_PAINTABLE" value="3"/>
23069+
<!-- gtk/gtklevelbar.h -->
23070+
<define name="GTK_LEVEL_BAR_OFFSET_FULL" value="&quot;full&quot;"/>
23071+
<define name="GTK_LEVEL_BAR_OFFSET_HIGH" value="&quot;high&quot;"/>
23072+
<define name="GTK_LEVEL_BAR_OFFSET_LOW" value="&quot;low&quot;"/>
2297023073
<!-- gtk/gtk.h -->
2297123074
<define name="GTK_STOCK_ZOOM_IN" value="&quot;gtk-zoom-in&quot;"/>
2297223075
<define name="GTK_STOCK_ZOOM_FIT" value="&quot;gtk-zoom-fit&quot;"/>

cfg/qt.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,6 +2428,7 @@
24282428
<!-- bool QDir::exists() const -->
24292429
<function name="QDir::exists">
24302430
<noreturn>false</noreturn>
2431+
<pure/>
24312432
<returnValue type="bool"/>
24322433
<use-retval/>
24332434
<leak-ignore/>
@@ -2440,6 +2441,7 @@
24402441
<!-- bool QFile::exists() const -->
24412442
<function name="QFile::exists">
24422443
<noreturn>false</noreturn>
2444+
<pure/>
24432445
<returnValue type="bool"/>
24442446
<use-retval/>
24452447
<leak-ignore/>

cfg/std.cfg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4411,7 +4411,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
44114411
<not-null/>
44124412
<not-uninit/>
44134413
</arg>
4414-
<arg nr="2" direction="in">
4414+
<arg nr="2">
44154415
<not-null/>
44164416
<not-uninit/>
44174417
<minsize type="argvalue" arg="3"/>
@@ -4444,7 +4444,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
44444444
<not-null/>
44454445
<not-uninit/>
44464446
</arg>
4447-
<arg nr="2" direction="in">
4447+
<arg nr="2">
44484448
<not-null/>
44494449
<not-uninit/>
44504450
<minsize type="argvalue" arg="3"/>
@@ -4861,7 +4861,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
48614861
<returnValue type="char *"/>
48624862
<noreturn>false</noreturn>
48634863
<leak-ignore/>
4864-
<arg nr="1" direction="in">
4864+
<arg nr="1">
48654865
<not-null/>
48664866
<not-uninit/>
48674867
<strz/>
@@ -5044,7 +5044,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
50445044
<returnValue type="char *"/>
50455045
<noreturn>false</noreturn>
50465046
<leak-ignore/>
5047-
<arg nr="1" direction="in">
5047+
<arg nr="1">
50485048
<not-null/>
50495049
<not-uninit/>
50505050
<strz/>
@@ -5433,7 +5433,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
54335433
<returnValue type="char *"/>
54345434
<noreturn>false</noreturn>
54355435
<leak-ignore/>
5436-
<arg nr="1" direction="in">
5436+
<arg nr="1">
54375437
<not-null/>
54385438
<not-uninit/>
54395439
<strz/>

cli/cmdlineparser.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
359359
if (std::strcmp(argv[i], "--doc") == 0) {
360360
std::ostringstream doc;
361361
// Get documentation..
362-
for (const Check * it : Check::instances()) {
363-
const std::string& name(it->name());
364-
const std::string info(it->classInfo());
362+
for (const Check * const c : Check::instances()) {
363+
const std::string& name(c->name());
364+
const std::string info(c->classInfo());
365365
if (!name.empty() && !info.empty())
366366
doc << "## " << name << " ##\n"
367367
<< info << "\n";
@@ -631,6 +631,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
631631
else if (std::strcmp(argv[i], "--debug-ignore") == 0)
632632
mSettings.debugignore = true;
633633

634+
else if (std::strcmp(argv[i], "--debug-ipc") == 0)
635+
mSettings.debugipc = true;
636+
634637
// Show --debug output after the first simplifications
635638
else if (std::strcmp(argv[i], "--debug") == 0 ||
636639
std::strcmp(argv[i], "--debug-normal") == 0)
@@ -1148,6 +1151,11 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a
11481151
mLogger.printError("invalid --premium option '" + (p2.empty() ? p : p2) + "'.");
11491152
return Result::Fail;
11501153
}
1154+
if (p2 == "cert-c-int-precision") {
1155+
int tmp;
1156+
if (!parseNumberArg(argv[i], 31, tmp, true))
1157+
return Result::Fail;
1158+
}
11511159
mSettings.premiumArgs += "--" + p;
11521160
if (isCodingStandard) {
11531161
// All checkers related to the coding standard should be enabled. The coding standards

0 commit comments

Comments
 (0)