Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Nov 13, 2024
2 parents 9e3c543 + 648d1c8 commit 6b3680b
Show file tree
Hide file tree
Showing 33 changed files with 412 additions and 369 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ defaults:
jobs:

build_qt:
if: false
strategy:
matrix:
os: [windows-2019, windows-2022]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Self check
if: false
run: |
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
ec=0
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Self check
if: false
run: |
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -D__GNUC__ --error-exitcode=0 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=0 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
selfcheck_options="$selfcheck_options --executor=thread"
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
ec=0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
# TODO: only fail the step on sanitizer issues - since we use processes it will only fail the underlying process which will result in an cppcheckError
- name: Self check
run: |
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=top5_summary -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive"
cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2"
ec=0
./cmake.output/bin/cppcheck $selfcheck_options externals/simplecpp || ec=1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ $(libcppdir)/vf_common.o: lib/vf_common.cpp lib/addoninfo.h lib/astutils.h lib/c
$(libcppdir)/vf_enumvalue.o: lib/vf_enumvalue.cpp lib/config.h lib/errortypes.h lib/library.h lib/mathlib.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/utils.h lib/valueflow.h lib/vf_enumvalue.h lib/vfvalue.h
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/vf_enumvalue.cpp

$(libcppdir)/vf_number.o: lib/vf_number.cpp lib/config.h lib/errortypes.h lib/library.h lib/mathlib.h lib/sourcelocation.h lib/standards.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenlist.h lib/utils.h lib/vf_common.h lib/vf_number.h lib/vf_settokenvalue.h lib/vfvalue.h
$(libcppdir)/vf_number.o: lib/vf_number.cpp lib/addoninfo.h lib/config.h lib/errortypes.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/sourcelocation.h lib/standards.h lib/suppressions.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/tokenlist.h lib/utils.h lib/vf_common.h lib/vf_number.h lib/vf_settokenvalue.h lib/vfvalue.h
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/vf_number.cpp

$(libcppdir)/vf_settokenvalue.o: lib/vf_settokenvalue.cpp lib/addoninfo.h lib/astutils.h lib/calculate.h lib/config.h lib/errortypes.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/smallvector.h lib/sourcelocation.h lib/standards.h lib/suppressions.h lib/symboldatabase.h lib/templatesimplifier.h lib/token.h lib/utils.h lib/valueflow.h lib/vf_common.h lib/vf_settokenvalue.h lib/vfvalue.h
Expand Down
3 changes: 3 additions & 0 deletions gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ CheckOptions:
list(APPEND cppcheck-gui_SOURCES $<TARGET_OBJECTS:tinyxml2_objs>)
endif()
endif()
if (WIN32)
list(APPEND cppcheck-gui_SOURCES cppcheck-gui.rc)
endif()

add_executable(cppcheck-gui ${cppcheck-gui-deps} ${cppcheck-gui_SOURCES})
set_target_properties(cppcheck-gui PROPERTIES AUTOMOC ON)
Expand Down
38 changes: 19 additions & 19 deletions gui/cppcheck_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2347,27 +2347,27 @@ Options:
<translation>Undefinierte Datei</translation>
</message>
<message>
<location filename="resultstree.cpp" line="867"/>
<location filename="resultstree.cpp" line="865"/>
<source>Copy</source>
<translation>Kopieren</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1060"/>
<location filename="resultstree.cpp" line="1058"/>
<source>Could not find file:</source>
<translation>Kann Datei nicht finden:</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1064"/>
<location filename="resultstree.cpp" line="1062"/>
<source>Please select the folder &apos;%1&apos;</source>
<translation>Bitte wählen Sie den Ordner &apos;%1&apos;</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1065"/>
<location filename="resultstree.cpp" line="1063"/>
<source>Select Directory &apos;%1&apos;</source>
<translation>Wähle Verzeichnis &apos;%1&apos;</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1067"/>
<location filename="resultstree.cpp" line="1065"/>
<source>Please select the directory where file is located.</source>
<translation>Bitte wählen Sie das Verzeichnis, wo sich die Datei befindet</translation>
</message>
Expand All @@ -2382,27 +2382,27 @@ Options:
<translation>Anmerkung</translation>
</message>
<message>
<location filename="resultstree.cpp" line="866"/>
<location filename="resultstree.cpp" line="864"/>
<source>Recheck</source>
<translation>Erneut prüfen</translation>
</message>
<message>
<location filename="resultstree.cpp" line="868"/>
<location filename="resultstree.cpp" line="866"/>
<source>Hide</source>
<translation>Verstecken</translation>
</message>
<message>
<location filename="resultstree.cpp" line="869"/>
<location filename="resultstree.cpp" line="867"/>
<source>Hide all with id</source>
<translation>Verstecke alle mit gleicher ID</translation>
</message>
<message>
<location filename="resultstree.cpp" line="888"/>
<location filename="resultstree.cpp" line="886"/>
<source>Suppress selected id(s)</source>
<translation>Ausgewählte ID(s) unterdrücken</translation>
</message>
<message>
<location filename="resultstree.cpp" line="870"/>
<location filename="resultstree.cpp" line="868"/>
<source>Open containing folder</source>
<translation>Übergeordneten Ordner öffnen</translation>
</message>
Expand All @@ -2412,23 +2412,23 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="909"/>
<location filename="resultstree.cpp" line="907"/>
<source>Tag</source>
<translation>Tag</translation>
</message>
<message>
<location filename="resultstree.cpp" line="911"/>
<location filename="resultstree.cpp" line="909"/>
<source>No tag</source>
<translation>Kein Tag</translation>
</message>
<message>
<location filename="resultstree.cpp" line="942"/>
<location filename="resultstree.cpp" line="956"/>
<location filename="resultstree.cpp" line="940"/>
<location filename="resultstree.cpp" line="954"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
<message>
<location filename="resultstree.cpp" line="943"/>
<location filename="resultstree.cpp" line="941"/>
<source>No editor application configured.

Configure the editor application for Cppcheck in preferences/Applications.</source>
Expand All @@ -2437,7 +2437,7 @@ Configure the editor application for Cppcheck in preferences/Applications.</sour
Konfigurieren Sie diese unter Einstellungen/Anwendungen.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="957"/>
<location filename="resultstree.cpp" line="955"/>
<source>No default editor application selected.

Please select the default editor application in preferences/Applications.</source>
Expand All @@ -2446,12 +2446,12 @@ Please select the default editor application in preferences/Applications.</sourc
Bitte wählen Sie eine Standardanwendung unter Einstellungen/Anwendungen.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="983"/>
<location filename="resultstree.cpp" line="981"/>
<source>Could not find the file!</source>
<translation>Datei konnte nicht gefunden werden!</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1046"/>
<location filename="resultstree.cpp" line="1044"/>
<source>Could not start %1

Please check the application path and parameters are correct.</source>
Expand All @@ -2460,7 +2460,7 @@ Please check the application path and parameters are correct.</source>
Bitte überprüfen Sie ob der Pfad und die Parameter der Anwendung richtig eingestellt sind.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1068"/>
<location filename="resultstree.cpp" line="1066"/>
<source>Select Directory</source>
<translation>Wähle Verzeichnis</translation>
</message>
Expand Down
38 changes: 19 additions & 19 deletions gui/cppcheck_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2312,27 +2312,27 @@ Options:
<translation>Fichero no definido</translation>
</message>
<message>
<location filename="resultstree.cpp" line="867"/>
<location filename="resultstree.cpp" line="865"/>
<source>Copy</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="1060"/>
<location filename="resultstree.cpp" line="1058"/>
<source>Could not find file:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="1064"/>
<location filename="resultstree.cpp" line="1062"/>
<source>Please select the folder &apos;%1&apos;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="1065"/>
<location filename="resultstree.cpp" line="1063"/>
<source>Select Directory &apos;%1&apos;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="1067"/>
<location filename="resultstree.cpp" line="1065"/>
<source>Please select the directory where file is located.</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -2357,27 +2357,27 @@ Options:
<translation>depuración</translation>
</message>
<message>
<location filename="resultstree.cpp" line="866"/>
<location filename="resultstree.cpp" line="864"/>
<source>Recheck</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="868"/>
<location filename="resultstree.cpp" line="866"/>
<source>Hide</source>
<translation>Ocultar</translation>
</message>
<message>
<location filename="resultstree.cpp" line="869"/>
<location filename="resultstree.cpp" line="867"/>
<source>Hide all with id</source>
<translation>Ocultar todos con el mismo id</translation>
</message>
<message>
<location filename="resultstree.cpp" line="888"/>
<location filename="resultstree.cpp" line="886"/>
<source>Suppress selected id(s)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="870"/>
<location filename="resultstree.cpp" line="868"/>
<source>Open containing folder</source>
<translation>Abrir carpeta contenedora</translation>
</message>
Expand All @@ -2387,23 +2387,23 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="909"/>
<location filename="resultstree.cpp" line="907"/>
<source>Tag</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="911"/>
<location filename="resultstree.cpp" line="909"/>
<source>No tag</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="942"/>
<location filename="resultstree.cpp" line="956"/>
<location filename="resultstree.cpp" line="940"/>
<location filename="resultstree.cpp" line="954"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
<message>
<location filename="resultstree.cpp" line="943"/>
<location filename="resultstree.cpp" line="941"/>
<source>No editor application configured.

Configure the editor application for Cppcheck in preferences/Applications.</source>
Expand All @@ -2413,7 +2413,7 @@ Configure the editor application for Cppcheck in preferences/Applications.</sour
Configura el programa para editar en Preferencias/Aplicaciones.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="957"/>
<location filename="resultstree.cpp" line="955"/>
<source>No default editor application selected.

Please select the default editor application in preferences/Applications.</source>
Expand All @@ -2422,12 +2422,12 @@ Please select the default editor application in preferences/Applications.</sourc
Configura el programa para editar por defecto en Preferencias/Aplicaciones.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="983"/>
<location filename="resultstree.cpp" line="981"/>
<source>Could not find the file!</source>
<translation>¡No se ha encontrado el fichero!</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1046"/>
<location filename="resultstree.cpp" line="1044"/>
<source>Could not start %1

Please check the application path and parameters are correct.</source>
Expand All @@ -2436,7 +2436,7 @@ Please check the application path and parameters are correct.</source>
Por favor comprueba que la ruta a la aplicación y los parámetros son correctos.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="1068"/>
<location filename="resultstree.cpp" line="1066"/>
<source>Select Directory</source>
<translation>Selecciona carpeta</translation>
</message>
Expand Down
Loading

0 comments on commit 6b3680b

Please sign in to comment.