This commit is contained in:
Sébastien Debrard 2011-01-31 23:51:24 +01:00
commit 606a90a987
23 changed files with 533 additions and 296 deletions

View File

@ -3,10 +3,14 @@
<root name="."/> <root name="."/>
<includedir> <includedir>
<dir name="lib/"/> <dir name="lib/"/>
<dir name="cli/"/>
<dir name="externals/"/>
<dir name="gui/temp/"/>
</includedir> </includedir>
<paths> <paths>
<dir name="lib/"/> <dir name="lib/"/>
<dir name="cli/"/> <dir name="cli/"/>
<dir name="gui/"/> <dir name="gui/"/>
<dir name="test/"/>
</paths> </paths>
</project> </project>

View File

@ -222,10 +222,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -552,28 +552,28 @@ kate -l(line) (file)</translation>
<translation>Kein passenden Dateien zum Überprüfen gefunden!</translation> <translation>Kein passenden Dateien zum Überprüfen gefunden!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>Lizenz</translation> <translation>Lizenz</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Autoren</translation> <translation>Autoren</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML-Dateien (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv)</translation> <translation>XML-Dateien (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Speichert die Berichtdatei</translation> <translation>Speichert die Berichtdatei</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML-Dateien (*.xml)</translation> <translation>XML-Dateien (*.xml)</translation>
</message> </message>
@ -584,40 +584,40 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Textdateien (*.txt)</translation> <translation>Textdateien (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation>CSV-Dateien (*.csv)</translation> <translation>CSV-Dateien (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -633,39 +633,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1018,8 +1018,9 @@ Legen Sie unter dem Menü Ansicht fest, welche Art von Fehlern angezeigt werden
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Alle #ifdef-Konfigurationen überprüfen</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Alle #ifdef-Konfigurationen überprüfen</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -224,10 +224,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -554,28 +554,28 @@ kate -l(line) (file)</translation>
<translation>No suitable files found to check!</translation> <translation>No suitable files found to check!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>License</translation> <translation>License</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Authors</translation> <translation>Authors</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</translation> <translation>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Save the report file</translation> <translation>Save the report file</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML files (*.xml)</translation> <translation>XML files (*.xml)</translation>
</message> </message>
@ -586,40 +586,40 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Text files (*.txt)</translation> <translation>Text files (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -633,39 +633,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
%1</translation> %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1018,8 +1018,9 @@ To toggle what kind of errors are shown, open view menu.</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Check all #ifdef configurations</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Check all #ifdef configurations</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -226,10 +226,10 @@ kate -l(line) (file)
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -556,28 +556,28 @@ kate -l(line) (file)
<translation>Tarkistettavaksi sopivia tiedostoja ei löytynyt!</translation> <translation>Tarkistettavaksi sopivia tiedostoja ei löytynyt!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>Lisenssi</translation> <translation>Lisenssi</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Tekijät</translation> <translation>Tekijät</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv)</translation> <translation>XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Tallenna raportti</translation> <translation>Tallenna raportti</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML-tiedostot (*xml)</translation> <translation>XML-tiedostot (*xml)</translation>
</message> </message>
@ -588,40 +588,40 @@ kate -l(line) (file)
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Tekstitiedostot (*.txt)</translation> <translation>Tekstitiedostot (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -637,39 +637,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1022,8 +1022,9 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Tarkista kaikki #ifdef kombinaatiot</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Tarkista kaikki #ifdef kombinaatiot</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -210,10 +210,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -546,24 +546,24 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML (*.xml)</translation> <translation>XML (*.xml)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
@ -572,42 +572,42 @@ Do you want to stop the checking and exit Cppcheck?.</source>
Cppcheckを終了しますか.</translation> Cppcheckを終了しますか.</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML (*.xml);; (*.txt);;CSV形式ファイル (*.csv)</translation> <translation>XML (*.xml);; (*.txt);;CSV形式ファイル (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation> (*.txt)</translation> <translation> (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation>CSV形式ファイル (*.csv)</translation> <translation>CSV形式ファイル (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -620,39 +620,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation>Cppcheck </translation> <translation>Cppcheck </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation> (*.cppcheck);;All files(*.*)</translation> <translation> (*.cppcheck);;All files(*.*)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation></translation> <translation></translation>
</message> </message>
@ -1003,8 +1003,9 @@ To toggle what kind of errors are shown, open view menu.</source>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation> #ifdef </translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished"> #ifdef </translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -224,10 +224,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -554,28 +554,28 @@ kate -l(line) (file)</translation>
<translation>Geen geschikte bestanden gevonden om te controleren!</translation> <translation>Geen geschikte bestanden gevonden om te controleren!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>Licentie</translation> <translation>Licentie</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Auteurs</translation> <translation>Auteurs</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML bestanden (*.xml);;Tekst bestanden (*.txt);;CSV bestanden (*.csv)</translation> <translation>XML bestanden (*.xml);;Tekst bestanden (*.txt);;CSV bestanden (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Rapport opslaan </translation> <translation>Rapport opslaan </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML bestanden (*.xml)</translation> <translation>XML bestanden (*.xml)</translation>
</message> </message>
@ -586,40 +586,40 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Tekst bestanden (*.txt)</translation> <translation>Tekst bestanden (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -633,39 +633,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
%1</translation> %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1018,8 +1018,9 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden.</transla
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Controleer alle #ifdef combinaties</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Controleer alle #ifdef combinaties</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -211,10 +211,10 @@ kate -l(line) (file)</oldsource>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -547,92 +547,92 @@ kate -l(line) (file)</oldsource>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -641,13 +641,13 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -994,7 +994,8 @@ To toggle what kind of errors are shown, open view menu.</source>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>

View File

@ -214,10 +214,10 @@ kate -l(line) (file)</oldsource>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -544,28 +544,28 @@ kate -l(line) (file)</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>Лицензия</translation> <translation>Лицензия</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Авторы</translation> <translation>Авторы</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -576,40 +576,40 @@ kate -l(line) (file)</oldsource>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Текстовые файлы (*.txt)</translation> <translation>Текстовые файлы (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -625,39 +625,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1007,8 +1007,9 @@ To toggle what kind of errors are shown, open view menu.</source>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Проверять все варианты #ifdef конфигураций</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Проверять все варианты #ifdef конфигураций</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -224,10 +224,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -555,28 +555,28 @@ kate -l(line) (file)</translation>
<translation>Inga lämpliga filer hittades!</translation> <translation>Inga lämpliga filer hittades!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>Licens</translation> <translation>Licens</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Utvecklare</translation> <translation>Utvecklare</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML filer (*.xml);;Text filer (*.txt);;CSV filer (*.csv)</translation> <translation>XML filer (*.xml);;Text filer (*.txt);;CSV filer (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Spara rapport</translation> <translation>Spara rapport</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML filer (*.xml)</translation> <translation>XML filer (*.xml)</translation>
</message> </message>
@ -587,40 +587,40 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Text filer (*.txt)</translation> <translation>Text filer (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation>CSV filer (*.csv)</translation> <translation>CSV filer (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -636,39 +636,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
</translation> </translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1021,8 +1021,9 @@ För att ställa in vilka fel som skall visas använd visa menyn.</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Kontrollera alla #ifdef konfigurationer</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Kontrollera alla #ifdef konfigurationer</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -224,10 +224,10 @@ kate -l(line) (file)</translation>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="203"/> <location filename="mainwindow.cpp" line="203"/>
<location filename="mainwindow.cpp" line="233"/> <location filename="mainwindow.cpp" line="233"/>
<location filename="mainwindow.cpp" line="523"/> <location filename="mainwindow.cpp" line="524"/>
<location filename="mainwindow.cpp" line="641"/> <location filename="mainwindow.cpp" line="642"/>
<location filename="mainwindow.cpp" line="659"/> <location filename="mainwindow.cpp" line="660"/>
<location filename="mainwindow.cpp" line="810"/> <location filename="mainwindow.cpp" line="811"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -554,28 +554,28 @@ kate -l(line) (file)</translation>
<translation>No suitable files found to check!</translation> <translation>No suitable files found to check!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>License</source> <source>License</source>
<translation>License</translation> <translation>License</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="573"/> <location filename="mainwindow.cpp" line="574"/>
<source>Authors</source> <source>Authors</source>
<translation>Authors</translation> <translation>Authors</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="581"/> <location filename="mainwindow.cpp" line="582"/>
<source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source> <source>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</translation> <translation>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="583"/> <location filename="mainwindow.cpp" line="584"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Save the report file</translation> <translation>Save the report file</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="442"/> <location filename="mainwindow.cpp" line="443"/>
<location filename="mainwindow.cpp" line="591"/> <location filename="mainwindow.cpp" line="592"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML files (*.xml)</translation> <translation>XML files (*.xml)</translation>
</message> </message>
@ -586,40 +586,40 @@ kate -l(line) (file)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="306"/> <location filename="mainwindow.cpp" line="306"/>
<location filename="mainwindow.cpp" line="741"/> <location filename="mainwindow.cpp" line="742"/>
<location filename="mainwindow.cpp" line="787"/> <location filename="mainwindow.cpp" line="788"/>
<source>Project: </source> <source>Project: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="444"/> <location filename="mainwindow.cpp" line="445"/>
<source>Open the report file</source> <source>Open the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="519"/> <location filename="mainwindow.cpp" line="520"/>
<source>Checking is running. <source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source> Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="597"/> <location filename="mainwindow.cpp" line="598"/>
<source>Text files (*.txt)</source> <source>Text files (*.txt)</source>
<translation>Text files (*.txt)</translation> <translation>Text files (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="603"/> <location filename="mainwindow.cpp" line="604"/>
<source>CSV files (*.csv)</source> <source>CSV files (*.csv)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="643"/> <location filename="mainwindow.cpp" line="644"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="660"/> <location filename="mainwindow.cpp" line="661"/>
<source>Failed to change the language: <source>Failed to change the language:
%1 %1
@ -633,39 +633,39 @@ Do you want to stop the checking and exit Cppcheck?.</source>
%1</translation> %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Cppcheck Help</source> <source>Cppcheck Help</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="708"/> <location filename="mainwindow.cpp" line="709"/>
<source>Failed to load help file (not found)</source> <source>Failed to load help file (not found)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="717"/> <location filename="mainwindow.cpp" line="718"/>
<source>Failed to load help file</source> <source>Failed to load help file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="731"/> <location filename="mainwindow.cpp" line="732"/>
<location filename="mainwindow.cpp" line="776"/> <location filename="mainwindow.cpp" line="777"/>
<source>Project files (*.cppcheck);;All files(*.*)</source> <source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="733"/> <location filename="mainwindow.cpp" line="734"/>
<source>Select Project File</source> <source>Select Project File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="778"/> <location filename="mainwindow.cpp" line="779"/>
<source>Select Project Filename</source> <source>Select Project Filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="811"/> <location filename="mainwindow.cpp" line="812"/>
<source>No project file loaded</source> <source>No project file loaded</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1018,8 +1018,9 @@ To toggle what kind of errors are shown, open view menu.</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="138"/> <location filename="settings.ui" line="138"/>
<source>Check all #ifdef configurations</source> <source>Force checking all #ifdef configurations</source>
<translation>Check all #ifdef configurations</translation> <oldsource>Check all #ifdef configurations</oldsource>
<translation type="unfinished">Check all #ifdef configurations</translation>
</message> </message>
<message> <message>
<location filename="settings.ui" line="145"/> <location filename="settings.ui" line="145"/>

View File

@ -65,7 +65,7 @@ void CsvReport::WriteError(const ErrorItem &error)
QString line; QString line;
const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]); const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]);
line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]); line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]);
line += QString("%1,%2").arg(error.severity).arg(error.message); line += QString("%1,%2").arg(error.severity).arg(error.summary);
mTxtWriter << line << endl; mTxtWriter << line << endl;
} }

View File

@ -2,5 +2,6 @@
<project version="1"> <project version="1">
<includedir> <includedir>
<dir name="../lib"/> <dir name="../lib"/>
<dir name="temp"/>
</includedir> </includedir>
</project> </project>

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>589</width> <width>589</width>
<height>281</height> <height>313</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -135,7 +135,7 @@
<item> <item>
<widget class="QCheckBox" name="mForce"> <widget class="QCheckBox" name="mForce">
<property name="text"> <property name="text">
<string>Check all #ifdef configurations</string> <string>Force checking all #ifdef configurations</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -76,7 +76,7 @@ void TxtReport::WriteError(const ErrorItem &error)
} }
} }
line += QString("(%1) %2").arg(error.severity).arg(error.message); line += QString("(%1) %2").arg(error.severity).arg(error.summary);
mTxtWriter << line << endl; mTxtWriter << line << endl;
} }

View File

@ -159,6 +159,16 @@ ErrorLine XmlReport::ReadError(QXmlStreamReader *reader)
line.line = attribs.value("", LineAttribute).toString().toUInt(); line.line = attribs.value("", LineAttribute).toString().toUInt();
line.id = attribs.value("", IdAttribute).toString(); line.id = attribs.value("", IdAttribute).toString();
line.severity = attribs.value("", SeverityAttribute).toString(); line.severity = attribs.value("", SeverityAttribute).toString();
// NOTE: This dublicates the message to Summary-field. But since
// old XML format doesn't have separate summary and verbose messages
// we must add same message to both data so it shows up in GUI.
// Check if there is full stop and cut the summary to it.
QString summary = attribs.value("", MsgAttribute).toString();
const int ind = summary.indexOf('.');
if (ind != -1)
summary = summary.left(ind + 1);
line.summary = summary;
line.message = attribs.value("", MsgAttribute).toString(); line.message = attribs.value("", MsgAttribute).toString();
} }
return line; return line;

View File

@ -485,6 +485,12 @@ void CheckNullPointer::nullPointerByDeRefAndChec()
break; break;
} }
if (tok1->str() == ")" && Token::simpleMatch(tok1->link()->previous(), "sizeof ("))
{
tok1 = tok1->link()->previous();
continue;
}
if (tok1->str() == "break") if (tok1->str() == "break")
break; break;

View File

@ -713,21 +713,36 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
// Get the DEF in this line: "#ifdef DEF" // Get the DEF in this line: "#ifdef DEF"
std::string Preprocessor::getdef(std::string line, bool def) std::string Preprocessor::getdef(std::string line, bool def)
{ {
if (line.empty() || line[0] != '#')
return "";
// If def is true, the line must start with "#ifdef" // If def is true, the line must start with "#ifdef"
if (def && line.find("#ifdef ") != 0 && line.find("#if ") != 0 && line.find("#elif ") != 0 && line.find("#if defined ") != 0) if (def && line.compare(0, 7, "#ifdef ") != 0 && line.compare(0, 4, "#if ") != 0
&& (line.compare(0, 6, "#elif ") != 0 || line.compare(0, 7, "#elif !") == 0))
{ {
return ""; return "";
} }
// If def is false, the line must start with "#ifndef" // If def is false, the line must start with "#ifndef"
if (!def && line.find("#ifndef ") != 0) if (!def && line.compare(0, 8, "#ifndef ") != 0 && line.compare(0, 7, "#elif !") != 0)
{ {
return ""; return "";
} }
// Remove the "#ifdef" or "#ifndef" // Remove the "#ifdef" or "#ifndef"
if (line.find("#if defined ") == 0) if (line.compare(0, 12, "#if defined ") == 0)
line.erase(0, 11); line.erase(0, 11);
else if (line.compare(0, 15, "#elif !defined(") == 0)
{
std::string::size_type pos = 0;
line.erase(0, 15);
pos = line.find(")");
// if pos == ::npos then another part of the code will complain
// about the mismatch
if (pos != std::string::npos)
line.erase(pos, 1);
}
else else
line.erase(0, line.find(" ")); line.erase(0, line.find(" "));
@ -775,6 +790,8 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
if (_errorLogger) if (_errorLogger)
_errorLogger->reportProgress(filename, "Preprocessing (get configurations 1)", 0); _errorLogger->reportProgress(filename, "Preprocessing (get configurations 1)", 0);
if (line.empty())
continue;
if (line.compare(0, 6, "#file ") == 0) if (line.compare(0, 6, "#file ") == 0)
{ {
@ -806,6 +823,9 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
if (!line.empty() && line.compare(0, 3, "#if") != 0) if (!line.empty() && line.compare(0, 3, "#if") != 0)
includeguard = false; includeguard = false;
if (line[0] != '#')
continue;
if (includeguard) if (includeguard)
continue; continue;
@ -868,7 +888,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
simplifyCondition(varmap, def, false); simplifyCondition(varmap, def, false);
} }
if (! deflist.empty() && line.find("#elif ") == 0) if (! deflist.empty() && line.compare(0, 6, "#elif ") == 0)
deflist.pop_back(); deflist.pop_back();
deflist.push_back(def); deflist.push_back(def);
def = ""; def = "";
@ -888,6 +908,21 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
def += ";"; def += ";";
def += *it; def += *it;
} }
else
{
std::ostringstream lineStream;
lineStream << __LINE__;
ErrorLogger::ErrorMessage errmsg;
ErrorLogger::ErrorMessage::FileLocation loc;
loc.setfile(filename);
loc.line = linenr;
errmsg._callStack.push_back(loc);
errmsg._severity = Severity::fromString("error");
errmsg.setmsg(*it+" is already guaranteed to be defined");
errmsg._id = "preprocessor" + lineStream.str();
_errorLogger->reportErr(errmsg);
}
} }
if (from_negation) if (from_negation)
{ {
@ -903,7 +938,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
} }
} }
else if (line.find("#else") == 0 && ! deflist.empty()) else if (line.compare(0, 5, "#else") == 0 && ! deflist.empty())
{ {
if (deflist.back() == "!") if (deflist.back() == "!")
{ {
@ -919,7 +954,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
} }
} }
else if (line.find("#endif") == 0 && ! deflist.empty()) else if (line.compare(0, 6, "#endif") == 0 && ! deflist.empty())
{ {
if (deflist.back() == "!") if (deflist.back() == "!")
ndeflist.pop_back(); ndeflist.pop_back();
@ -1345,7 +1380,23 @@ std::string Preprocessor::getcode(const std::string &filedata, std::string cfg,
} }
} }
else if (line.find("#elif ") == 0) else if (line.compare(0, 7, "#elif !") == 0)
{
if (matched_ifdef.back())
{
matching_ifdef.back() = false;
}
else
{
if (!match_cfg_def(cfgmap, ndef))
{
matching_ifdef.back() = true;
matched_ifdef.back() = true;
}
}
}
else if (line.compare(0, 6, "#elif ") == 0)
{ {
if (matched_ifdef.back()) if (matched_ifdef.back())
{ {

View File

@ -106,6 +106,7 @@ private:
TEST_CASE(array_index_29); // ticket #1734 TEST_CASE(array_index_29); // ticket #1734
TEST_CASE(array_index_30); // ticket #2086 - out of bounds when type is unknown TEST_CASE(array_index_30); // ticket #2086 - out of bounds when type is unknown
TEST_CASE(array_index_31); // ticket #2120 - out of bounds in subfunction when type is unknown TEST_CASE(array_index_31); // ticket #2120 - out of bounds in subfunction when type is unknown
TEST_CASE(array_index_32);
TEST_CASE(array_index_multidim); TEST_CASE(array_index_multidim);
TEST_CASE(array_index_switch_in_for); TEST_CASE(array_index_switch_in_for);
TEST_CASE(array_index_calculation); TEST_CASE(array_index_calculation);
@ -1067,6 +1068,21 @@ private:
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
} }
void array_index_32()
{
check("class X\n"
"{\n"
" public:\n"
" X()\n"
" {\n"
" m_x[0] = 0;\n"
" m_x[1] = 0;\n"
" }\n"
" int m_x[1];\n"
"};\n");
TODO_ASSERT_EQUALS("[test.cpp:7]: (error) Array 'm_x[1]' index 1 out of bounds\n","", errout.str());
}
void array_index_multidim() void array_index_multidim()
{ {
check("void f()\n" check("void f()\n"

View File

@ -437,6 +437,15 @@ private:
" }\n" " }\n"
"}\n"); "}\n");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
// #2525 - sizeof
check("void f() {\n"
" int *test = NULL;\n"
" int c = sizeof(test[0]);\n"
" if (!test)\n"
" ;\n"
"}\n");
ASSERT_EQUALS("", errout.str());
} }
void nullpointer5() void nullpointer5()

View File

@ -429,13 +429,118 @@ private:
preprocessor.preprocess(istr, actual, "file.c"); preprocessor.preprocess(istr, actual, "file.c");
// Make sure an error message is written.. // Make sure an error message is written..
TODO_ASSERT_EQUALS("[test.cpp:3]: this preprocessor condition is always true", ASSERT_EQUALS("[file.c:3]: (error) ABC is already guaranteed to be defined\n",
"", errout.str()); errout.str());
// Compare results.. // Compare results..
ASSERT_EQUALS("\n\n\n\n\n\n", actual[""]); ASSERT_EQUALS("\n\n\n\n\n\n", actual[""]);
ASSERT_EQUALS("\nA\n\nB\n\n\n", actual["ABC"]); ASSERT_EQUALS("\nA\n\nB\n\n\n", actual["ABC"]);
ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size())); ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size()));
test7a();
test7b();
test7c();
test7d();
}
void test7a()
{
const char filedata[] = "#ifndef ABC\n"
"A\n"
"#ifndef ABC\n"
"B\n"
"#endif\n"
"#endif\n";
// Preprocess => actual result..
std::istringstream istr(filedata);
std::map<std::string, std::string> actual;
Settings settings;
Preprocessor preprocessor(&settings, this);
errout.str("");
preprocessor.preprocess(istr, actual, "file.c");
// Make sure an error message is written..
TODO_ASSERT_EQUALS("[file.c:3]: (error) ABC is already guaranteed NOT to be defined\n",
"", errout.str());
// Compare results..
ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size()));
}
void test7b()
{
const char filedata[] = "#ifndef ABC\n"
"A\n"
"#ifdef ABC\n"
"B\n"
"#endif\n"
"#endif\n";
// Preprocess => actual result..
std::istringstream istr(filedata);
std::map<std::string, std::string> actual;
Settings settings;
Preprocessor preprocessor(&settings, this);
errout.str("");
preprocessor.preprocess(istr, actual, "file.c");
// Make sure an error message is written..
TODO_ASSERT_EQUALS("[file.c:3]: (error) ABC is already guaranteed NOT to be defined\n",
"", errout.str());
// Compare results..
ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size()));
}
void test7c()
{
const char filedata[] = "#ifdef ABC\n"
"A\n"
"#ifndef ABC\n"
"B\n"
"#endif\n"
"#endif\n";
// Preprocess => actual result..
std::istringstream istr(filedata);
std::map<std::string, std::string> actual;
Settings settings;
Preprocessor preprocessor(&settings, this);
errout.str("");
preprocessor.preprocess(istr, actual, "file.c");
// Make sure an error message is written..
ASSERT_EQUALS("[file.c:3]: (error) ABC is already guaranteed to be defined\n",
errout.str());
// Compare results..
ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size()));
}
void test7d()
{
const char filedata[] = "#if defined(ABC)\n"
"A\n"
"#if defined(ABC)\n"
"B\n"
"#endif\n"
"#endif\n";
// Preprocess => actual result..
std::istringstream istr(filedata);
std::map<std::string, std::string> actual;
Settings settings;
Preprocessor preprocessor(&settings, this);
errout.str("");
preprocessor.preprocess(istr, actual, "file.c");
// Make sure an error message is written..
ASSERT_EQUALS("[file.c:3]: (error) ABC is already guaranteed to be defined\n",
errout.str());
// Compare results..
ASSERT_EQUALS(2, static_cast<unsigned int>(actual.size()));
} }
@ -806,6 +911,7 @@ private:
if_cond2b(); if_cond2b();
if_cond2c(); if_cond2c();
if_cond2d(); if_cond2d();
if_cond2e();
} }
void if_cond2b() void if_cond2b()
@ -893,6 +999,31 @@ private:
ASSERT_EQUALS("\n!a\n\nb\n\n\n\n\n\n\n\n\n\n\n\n", actual["B"]); ASSERT_EQUALS("\n!a\n\nb\n\n\n\n\n\n\n\n\n\n\n\n", actual["B"]);
} }
void if_cond2e()
{
const char filedata[] = "#if !defined(A)\n"
"!a\n"
"#elif !defined(B)\n"
"!b\n"
"#endif\n";
// Preprocess => actual result..
errout.str("");
std::istringstream istr(filedata);
std::map<std::string, std::string> actual;
Settings settings;
settings.debug = settings.debugwarnings = true;
Preprocessor preprocessor(&settings, this);
preprocessor.preprocess(istr, actual, "file.c");
// Compare results..
ASSERT_EQUALS(3, static_cast<unsigned int>(actual.size()));
ASSERT_EQUALS("\n!a\n\n\n\n", actual[""]);
ASSERT_EQUALS("\n\n\n!b\n\n", actual["A"]);
TODO_ASSERT_EQUALS("\n\n\n\n\n", "", actual["A;B"]);
ASSERT_EQUALS("", errout.str());
}
void if_cond3() void if_cond3()
{ {
const char filedata[] = "#ifdef A\n" const char filedata[] = "#ifdef A\n"

View File

@ -227,11 +227,11 @@ int main(int argc, char **argv)
fout << "\n###### Targets\n\n"; fout << "\n###### Targets\n\n";
fout << "cppcheck:\t$(LIBOBJ)\t$(CLIOBJ)\t$(EXTOBJ)\n"; fout << "cppcheck: $(LIBOBJ) $(CLIOBJ) $(EXTOBJ)\n";
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o cppcheck $(CLIOBJ) $(LIBOBJ) $(EXTOBJ) -lpcre $(LDFLAGS)\n\n"; fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o cppcheck $(CLIOBJ) $(LIBOBJ) $(EXTOBJ) -lpcre $(LDFLAGS)\n\n";
fout << "all:\tcppcheck\ttestrunner\n\n"; fout << "all:\tcppcheck testrunner\n\n";
fout << "testrunner:\t$(TESTOBJ)\t$(LIBOBJ)\t$(EXTOBJ)\tcli/threadexecutor.o\tcli/cmdlineparser.o\tcli/cppcheckexecutor.o\tcli/filelister.o\tcli/filelister_unix.o\n"; fout << "testrunner: $(TESTOBJ) $(LIBOBJ) $(EXTOBJ) cli/threadexecutor.o cli/cmdlineparser.o cli/cppcheckexecutor.o cli/filelister.o cli/filelister_unix.o\n";
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o testrunner $(TESTOBJ) $(LIBOBJ) $(EXTOBJ) -lpcre cli/threadexecutor.o cli/cmdlineparser.o\tcli/filelister.o\tcli/filelister_unix.o $(LDFLAGS)\n\n"; fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o testrunner $(TESTOBJ) $(LIBOBJ) $(EXTOBJ) -lpcre cli/threadexecutor.o cli/cmdlineparser.o cli/filelister.o cli/filelister_unix.o $(LDFLAGS)\n\n";
fout << "test:\tall\n"; fout << "test:\tall\n";
fout << "\t./testrunner\n\n"; fout << "\t./testrunner\n\n";
fout << "check:\tall\n"; fout << "check:\tall\n";
@ -248,7 +248,7 @@ int main(int argc, char **argv)
fout << "\t$(XP) $(DB2MAN) $(MAN_SOURCE)\n\n"; fout << "\t$(XP) $(DB2MAN) $(MAN_SOURCE)\n\n";
fout << "tags:\n"; fout << "tags:\n";
fout << "\tctags -R --exclude=doxyoutput .\n\n"; fout << "\tctags -R --exclude=doxyoutput .\n\n";
fout << "install:\tcppcheck\n"; fout << "install: cppcheck\n";
fout << "\tinstall -d ${BIN}\n"; fout << "\tinstall -d ${BIN}\n";
fout << "\tinstall cppcheck ${BIN}\n\n"; fout << "\tinstall cppcheck ${BIN}\n\n";
#endif #endif