Kimmo Varis
0485976c54
Use std::replace() to replace chars in paths.
2010-07-19 13:02:04 +03:00
Kimmo Varis
c3dfe1a356
GUI: Fix bug that every error item got own parent item.
...
The code could not find existing parent item since items have paths
with native separators and search was done with non-native path
separators.
2010-07-18 13:17:21 +03:00
Kimmo Varis
d8077cf2f7
Fixed #1870 (Wrong path in report)
...
Current directory was set from first file in the list. That file
could be in subdirectory when wrong path was set. Also getting
absolute path was buggy.
2010-07-18 12:57:48 +03:00
Kimmo Varis
006c9f17d4
GUI: Avoid unnecessary path separator conversion.
2010-07-18 11:20:10 +03:00
Kimmo Varis
93bfa24d3e
GUI: Ensure native path separators in reports.
...
Ensure that native separators are used in saved reports. Reports may
be parsed by other programs/scripts so it is important that paths
are properly formatted.
2010-07-17 21:07:09 +03:00
Kimmo Varis
c606dc8403
GUI: Show paths with native separators in result tree.
...
GUI used to show paths with / separator which is not native
separator in Windows. So lets convert shown paths to native
separators before adding them to the GUI.
2010-07-17 20:26:24 +03:00
Kimmo Varis
d5a6b02e9e
GUI: Fix building after path handling refactorings.
2010-07-17 18:36:21 +03:00
Kimmo Varis
6903f61f69
Update Visual Studio projects.
2010-07-17 17:59:47 +03:00
Kimmo Varis
5d1a10b0a3
Astyle cleanup.
2010-07-17 17:42:17 +03:00
Kimmo Varis
3c12d23fd9
Add Path class for path handling routines.
...
In this initial commit the Path class contains two methods for
converting path separators. I want to move cppcheck path handling
to direction that we internally have paths with / separator. And
convert from/to native separators when needed.
2010-07-17 17:38:36 +03:00
Kimmo Varis
6db365e6f7
Improve path name handling in ErrorLogger.
...
This commit adds setfile() method to FileLocation class. The setfile
method converts in Windows path separators to internally used Unix
separators. And getfile() converts path separators back to Windows
separators. This fixes bugs that error reports had mixed path
separators in paths.
2010-07-17 01:27:40 +03:00
Kimmo Varis
6362e50e73
Fix comment.
2010-07-16 22:47:46 +03:00
Kimmo Varis
3fa4e8a1d5
Remove unused ErrorLogger::_writemsg() methods.
2010-07-16 21:40:02 +03:00
Kimmo Varis
f5024a7f67
Fixed #1853 (GUI: Allow closing gui.exe while checking)
...
The GUI now asks if user wants to stop the current checking and exit
the application.
2010-07-16 12:44:11 +03:00
Robert Reif
d72365ab00
Fixed #1375 (false negative: uninitialized member variables not found in nested class constructors)
2010-07-15 10:16:16 +02:00
Kimmo Varis
ad0394939a
Refactor ErrorMessage constructor to take Severity::SeverityType.
...
This removes lots of unneeded casting as everybody now uses the
Severity::SeverityType.
2010-07-14 23:11:32 +03:00
Kimmo Varis
d811970531
Merge remote branch 'remotes/kimmo/severity-refactor'
2010-07-14 22:29:02 +03:00
Kimmo Varis
fcfa292205
Fix tests after severity-refactor.
...
Now previously used testSeverity is not valid severity.
2010-07-14 21:12:54 +03:00
Kimmo Varis
f81774f5b9
GUI: Fix compile after Severity changes.
2010-07-14 21:12:54 +03:00
Kimmo Varis
ba5017cf05
Add debug-severity to Severity::SeverityType.
2010-07-14 21:12:54 +03:00
Kimmo Varis
f54f28530b
Make Severity::none to match and output empty string.
2010-07-14 21:12:54 +03:00
Kimmo Varis
5f8af2e1e8
Refactor ErrorMessage's severity to Severity::SeverityType.
2010-07-14 21:12:39 +03:00
Robert Reif
fd352865ca
CheckClass: Improvements and refactorings for constructors and variables checking
2010-07-14 19:00:52 +02:00
Daniel Marjamäki
a6b6022497
Fixed #1851 (false positive: Member variable not initialized int ctor)
2010-07-14 18:50:29 +02:00
Kimmo Varis
fa0f6edacf
Rename ErrorMessage::toText() to ErrorMessage::toString().
2010-07-14 18:31:05 +03:00
Kimmo Varis
05adb285c5
Rename Severity::stringify() to Severity::toString().
2010-07-14 17:40:18 +03:00
Kimmo Varis
3716b3f9d8
Rename Severity::e to Severity::SeverityType.
2010-07-14 17:30:03 +03:00
Kimmo Varis
d7f971c347
Add cppcheckexecutor.h to VS project.
2010-07-14 16:36:12 +03:00
Kimmo Varis
6c6ab0a78d
GUI: Sent ErrorItem with Error -signal.
...
This commit modifies and registers ErrorItem as proper metatype so it
can be used with Qt signals. Then sending Error-signals is refactored
so that ErrorItem instances are sent instead of several different
arguments that already contained couple of lists.
2010-07-14 14:24:46 +03:00
Daniel Marjamäki
bea714445a
Fixed #1850 (An access to a nested std::map via a negative integer key is reported as 'Array index out of bounds')
2010-07-14 12:24:07 +02:00
Daniel Marjamäki
233432a888
gcc: fixed compiler warning (suggest parantheses)
2010-07-14 09:46:08 +02:00
Daniel Marjamäki
a1ce80806e
Fixed #1844 (False positive: invalid iterator when erase() is used in if-else (with continue))
2010-07-14 09:42:10 +02:00
Daniel Marjamäki
73c6a154f3
manual: Added a chapter about the GUI
2010-07-13 16:23:02 +02:00
Kimmo Varis
cff008634e
GUI: Update translation files.
2010-07-13 13:02:12 +03:00
Kimmo Varis
3a70d0adf3
Merge branch 'projfile-gui'
2010-07-13 12:54:54 +03:00
Kimmo Varis
b92f7b854a
GUI: Disable Project file menu items when checking.
2010-07-13 12:46:28 +03:00
Kimmo Varis
cc64907edb
GUI: Remove ; from the end of the include/define strings in dialog.
2010-07-13 12:40:20 +03:00
Kimmo Varis
4a1708013e
GUI: Rename project file related methods in mainwindow.
2010-07-13 12:33:24 +03:00
Robert Reif
c572e6af87
Fixed #1846 (False positive with -s: Variable hides typedef with same name)
2010-07-13 08:08:12 +02:00
Daniel Marjamäki
b8980c4892
Merge branch 'master' into projfile-gui
2010-07-13 08:05:43 +02:00
Robert Reif
ab088bcec9
Fixed #1847 (False positive: Method using std::swap<>() can be declared const)
2010-07-13 08:04:48 +02:00
Robert Reif
225a529471
Fixed #1847 (False positive: Method using std::swap<>() can be declared const)
2010-07-13 08:01:57 +02:00
Daniel Marjamäki
414dbdb295
Merge branch 'master' into projfile-gui
2010-07-13 07:49:17 +02:00
Martin Ettl
51beb6d01a
gui/main added spaces between template brackets
2010-07-13 00:13:08 +03:00
Kimmo Varis
4a695c78d9
GUI: Add two new files I forgot to add earlier.
2010-07-13 00:10:48 +03:00
Daniel Marjamäki
7d0fd3f2aa
Fixed #1849 (GUI: failed to build gui)
2010-07-12 20:39:20 +02:00
Daniel Marjamäki
61150498c4
Variable Id: fixed issue with function call. Ticket: #1848
2010-07-12 20:18:03 +02:00
Martin Ettl
cba711f293
gui/main added spaces between template brackets
2010-07-12 20:02:58 +02:00
Kimmo Varis
4ceea93945
GUI: Show project file's name in project file -dialog title.
2010-07-12 20:31:37 +03:00
Kimmo Varis
e468779feb
GUI: Don't mention auto-allocated classes even in comments.
2010-07-12 20:22:19 +03:00