5661 Commits

Author SHA1 Message Date
Greg Hewgill
31c56d7353 handle embedded whitespace in #if 0 processing 2011-03-01 19:32:47 +13:00
Greg Hewgill
87fd55b155 test case for #if 0 exclusion 2011-03-01 19:30:42 +13:00
Robert Reif
92efbd748e fix #2595 bitfield fix for case x: break; and default: break; 2011-02-28 19:35:00 -05:00
Daniel Marjamäki
893b84a87c Fixed #2615 (Segmentation fault in cppcheck 1.47) 2011-02-28 20:29:34 +01:00
Kimmo Varis
81318bb4a1 GUI: Fix compiling. 2011-02-28 17:41:52 +02:00
Kimmo Varis
1c4e9c662b GUI: Show native path separators.
Show native path separators in project file-dialog. Convert paths
to internal separators when reading from project file and when
reading from the dialog. Convert to native separators when adding
to the dialog (for the user).
2011-02-28 17:18:14 +02:00
Kimmo Varis
2a76d5c4b0 Merge branch 'projfiles' 2011-02-28 16:39:49 +02:00
Kimmo Varis
b1db29278d GUI: Update project file description file. 2011-02-28 16:31:46 +02:00
Kimmo Varis
819dddf570 GUI: Add path separator for ignore dirs. 2011-02-28 16:24:18 +02:00
Kimmo Varis
ae11b064c8 GUI: Small cleanup for projectfile code. 2011-02-28 16:21:03 +02:00
Kimmo Varis
fb74da7fbf GUI: Fix bug mixing include and ignore dirs in GUI. 2011-02-28 16:18:16 +02:00
Kimmo Varis
6fc90d1f18 GUI: Write ignore paths to project file. 2011-02-28 16:08:14 +02:00
Kimmo Varis
bd405c454a GUI: Add GUI for ignored paths in project files.
Add similar GUI than include paths has. Currently there is only
possibly select directories directly from the GUI. But filename
can be added to the path by editing it.
2011-02-28 15:58:44 +02:00
Kimmo Varis
46f7a81b7b GUI: Take filtering into use in GUI.
Add applying of filtering into list of files to check if we have
an active project file. Filtering is quite much similar to the
filtering in CLI.

If we have directory filter ("gui/") then we check all paths if
they contain "gui" part. In practice we search for string "/gui"
from the paths. If we have filename filtering
("gui/projectfile.cpp") then we check if any of the paths end
with that.
2011-02-28 00:13:28 +02:00
Zachary Blair
e1b2569b81 Fixed #432 (New check: wrong usage of ! operator in conditions) 2011-02-27 12:30:22 -08:00
Kimmo Varis
9de4ce8c8e GUI: If project open failed project got invalid.
The project was deleted but not set as NULL when the project
open failed. Fix this by deleting the project only when the
opening succeeds.
2011-02-27 19:09:20 +02:00
Kimmo Varis
e81fa46699 GUI: Convert some projectfile method arguments const. 2011-02-27 18:53:57 +02:00
Kimmo Varis
d6f6da10fa GUI: Add ignored paths support to project file.
This patch adds support for ignored paths in the project file.
There is new <ignore> element which can contain one or more
<path> elements with name attribute containing the path to
ignore.
2011-02-27 18:32:53 +02:00
Robert Reif
3db0e7ef8f fix symbol database bug where delete can be considered a variable declaration 2011-02-27 10:35:59 -05:00
Robert Reif
962183f964 add an array flag to symbol database Variable class 2011-02-27 10:21:14 -05:00
Robert Reif
0872f1291e fix a symbol database bug where a return statement could be considered a variable declaration 2011-02-27 10:13:40 -05:00
Daniel Marjamäki
e3f779a41c Symbol database: Fixed debug warnings for true/false. true/false doesn't have varId. 2011-02-26 23:58:02 -08:00
Robert Reif
2b03bfaf38 fix a bug in symbol database while scope processing 2011-02-26 23:00:06 -05:00
Robert Reif
b74ebbda02 fix potential null pointer dereference for unnamed function arguments 2011-02-26 18:34:17 -05:00
Robert Reif
31a18b9b23 convert CheckClass::noMemset to use new variable lookup capability 2011-02-26 16:00:05 -05:00
Robert Reif
8152cbbd1b add a varId to Variable lookup table and fill it in with all variables 2011-02-26 15:57:16 -05:00
Robert Reif
7638a4554e add local scopes to the symbol database 2011-02-26 15:53:57 -05:00
Robert Reif
eda25f6502 add a list of function arguments to symbol database Function class 2011-02-26 15:51:12 -05:00
Daniel Marjamäki
c1c9b96bb6 Fixed #2031 (Tokenizer: simplify known value (string has known value after strcpy)) 2011-02-26 21:11:56 +01:00
Daniel Marjamäki
96c85104ab astyle formatting 2011-02-26 20:09:14 +01:00
Daniel Marjamäki
92ab1ef8e7 fix 2011-02-26 20:08:37 +01:00
Daniel Marjamäki
7baf508f85 merge from subversion client 2011-02-26 10:04:38 -08:00
Daniel Marjamäki
ab2bf0ee0c Fixed #2575 (false positive: Preprocessor does not ignore #include within #if 0 block) 2011-02-26 10:04:38 -08:00
Robert Reif
abbd37d380 extend symbol database Variable with more information 2011-02-26 09:08:59 -05:00
Robert Reif
3529014924 expose number of variables found by Tokenizer 2011-02-26 08:42:19 -05:00
Kimmo Varis
a80a38e25c GUI: Update translation files. 2011-02-26 13:23:06 +02:00
Kimmo Varis
cf4a73eb80 GUI: Use list to manage paths in project file.
Handling paths in line edit control is quite hard. List control is
much more pleasant to use for it. Convert Project file path
handling to similar list control usage than include paths earlier.
2011-02-26 13:18:11 +02:00
Kimmo Varis
d1d0706154 GUI: Edit project's include directories as list.
Editing include directories in edit control is not nice. Instead
add new tab and list control for the include directories. They
are now added, edited and removed like global include directories
in settings dialog.
2011-02-25 20:34:55 +02:00
Kimmo Varis
ece896a13d GUI: Fix for initializing default application. 2011-02-25 18:01:23 +02:00
Robert Reif
c283bc414d fix symboldatabase global variable detection 2011-02-25 07:17:55 -05:00
Kimmo Varis
74c85b6b70 GUI: Select the default application in app list. 2011-02-25 13:15:53 +02:00
Kimmo Varis
166e5248db GUI: Rename methods.
We don't need the 'type' postfix. We are handling applications,
not application types.
2011-02-25 13:07:42 +02:00
Kimmo Varis
e6e616e542 GUI: Fix opening error item with default app. 2011-02-25 12:16:20 +02:00
Kimmo Varis
085034ddf7 GUI: Fix for removing application.
The default application was not handled correctly when removing
application from the list. If the default application is removed
then we reset the default application to unknown. Otherwise we
make sure the default application is correct after the removal of
other application.
2011-02-25 12:04:10 +02:00
Kimmo Varis
eabec80154 GUI: Show default application with [Default] text.
Instead of keeping the default application as a first item in
the application list point the default application by adding a
"[Default]" text after its name.
2011-02-25 11:45:04 +02:00
Kimmo Varis
b7aa14f0e8 GUI: Improve edit application setttings dialog.
Make the editor application settings dialog to look similar than
include paths dialog. Move buttons right to the list, not below.
And remove unnecessary "application" word from button texts.
Rename Modify-button to Edit-button since we are not modifying
the application but editing its info. Similarly rename Delete-
button to Remove-button since we are not deleting the application
but removing from the list.
2011-02-25 09:43:07 +02:00
Kimmo Varis
dd717427e1 GUI: Rename method.
SettingsDialog::PopulateListwidget() was a bit confusing name as
there are more than one list widgets already in settings-dialog.
2011-02-25 09:24:29 +02:00
Robert Reif
f596a6959e code cleanup and add more tests to CheckClass::noMemset() 2011-02-24 19:59:50 -05:00
Kimmo Varis
51eee5f3a7 GUI: Add list control for include paths.
Instead of hard-to-use single line edit control, use list control
for include paths. Have separate buttons for adding, editing and
removing paths. Paths are still stored as one string where paths
are separated with ";". Empty paths are ignored.
2011-02-24 22:12:15 +02:00
Daniel Marjamäki
9bf6e67898 Fixed #2610 (segmentation fault of cppcheck ( if () < {} )) 2011-02-24 18:49:16 +01:00