Daniel Marjamäki
9a383388be
xml2: added <errors> element
2011-02-02 18:46:07 +01:00
Daniel Marjamäki
26b21a5ae0
Merge branch 'sorted-instances'
2011-02-02 18:35:42 +01:00
Kimmo Varis
1a83e3ef81
Use different way to remove items from vector.
...
The way I was using caused a debug error in Visual Studio 2008. Probably
because the iterator got invalidated. So access items as array instead.
2011-02-02 14:37:48 +02:00
Kimmo Varis
51a1f64531
Don't check empty paths for path ignore.
2011-02-02 14:37:48 +02:00
Kimmo Varis
84a988ec50
Update VS2008/VS2010 project files.
2011-02-02 14:37:48 +02:00
Kimmo Varis
3fc0d0f03e
Run dmake to update Makefile.
2011-02-02 14:36:45 +02:00
Kimmo Varis
6401271ceb
Add CLI support for ignoring paths.
...
Add support for giving list of ignored paths from CLI. This way
user can define paths one doesn't want to check (like generated
code). This first simple implementation only does exact matching,
no support for wildcards etc. And matching is always agains dir
names.
If the filtered dir name is part of the checked filename then the
file is ignored.
Ticket #1690 (Ability to exclude files and directories from checks)
2011-02-02 14:34:04 +02:00
Kimmo Varis
1da88de932
Imrove --xml-version option parsing.
...
Allow --xml-version parsing to recognize also version 1 and print
errors about invalid values.
2011-02-02 14:04:50 +02:00
Kimmo Varis
1118b132b9
Add couple of tests for xml-version cmd line option.
2011-02-02 13:33:57 +02:00
Kimmo Varis
fe57d50328
Expose --xml-version=version cmd line option.
...
Make the --xml-version=version command line option public by
adding it to the command line help.
2011-02-02 13:28:14 +02:00
Greg Hewgill
bea36d1f83
use instances of less<Check *> to compare pointers for list::sort()
2011-02-02 22:58:25 +13:00
Greg Hewgill
be195a72c9
initialise Check::_name in constructor rather than relying on virtual Check::name()
2011-02-02 22:58:25 +13:00
Greg Hewgill
c3ad3f78e9
test case to check whether instances are sorted
2011-02-02 22:58:24 +13:00
Robert Reif
8eb92001b3
Fixed #2530 (Tokenizer: Remove redundant 'MyClass::' inside MyClass class declaration)
2011-02-02 07:40:08 +01:00
Daniel Marjamäki
defeded4b5
Fixed #2529 (False positive: array 'req[3]' index 4 out of bounds)
2011-02-01 21:46:07 +01:00
Tim Gerundt
3330981a23
Drop htdocs/ from gitignore
2011-02-01 19:52:56 +01:00
Tim Gerundt
7297ada2e8
Switch website URL in readme.txt
2011-02-01 19:51:12 +01:00
Tim Gerundt
5bd78687a8
Merge branch 'master' of github.com:gerundt/cppcheck into web-improvements
2011-02-01 19:40:20 +01:00
Tim Gerundt
b7494d5115
Merge branch 'master' of github.com:danmar/cppcheck
2011-02-01 19:23:20 +01:00
Kimmo Varis
c2de1a8a52
Convert "too many configurations" message to information message.
...
The "too many configurations"-message is currently only printed to the
log. So it won't be seen by users integrating Cppcheck using XML
error file. It is also easily missed in the GUI as it only shows up
in the checking log. Making it a information message it shows up
with the other errors and tells user that file was not completely
checked.
Ticket #2527 (Make "too many configurations" message an error message)
2011-02-01 17:53:30 +02:00
Pete Johns
8298c07d60
Astyle formatting.
2011-02-01 19:56:05 +11:00
Pete Johns
2d1ccad44e
Turned failing ASSERT_EQUALS into TODO_ASSERT_EQUALS.
2011-02-01 19:55:39 +11:00
Pete Johns
d2b6dc210b
Merge https://github.com/ghewgill/cppcheck
2011-02-01 19:52:44 +11:00
Kimmo Varis
250149300d
Move FileLister* to CLI doxygen-module.
...
I forgot to update the doxygen module when moving FileLister* to
CLI. Also add CLI doxygen group for ThreadExecutor.
2011-02-01 08:33:02 +02:00
Robert Reif
52fea0f245
Ticket #2522 (update project files to fix missing include messages)
2011-01-31 22:18:16 +02:00
Greg Hewgill
dcc0f28f34
check that misused scope object does not pick nested class
2011-02-01 08:07:41 +13:00
Daniel Marjamäki
202c8eb4a0
Fixed #2525 (False positive 'Possible null pointer dereference')
2011-01-31 17:30:27 +01:00
Daniel Marjamäki
757c840633
astyle formatting
2011-01-31 17:26:07 +01:00
Ettl Martin
bde47b573c
Merge branch 'master' of github.com:danmar/cppcheck
2011-01-31 13:47:14 +01:00
Ettl Martin
f3111b541e
#2528 added todo-testcase
2011-01-31 13:46:51 +01:00
Kimmo Varis
0112cd505d
GUI: Update translation files.
2011-01-31 11:20:03 +02:00
Kimmo Varis
f70aaac5cd
GUI: Reword the option for checking all #ifdefs.
...
The current wording was confusing (espcially related to CLI) since
it said the option will make Cppcheck to check all #ifdef configs.
But this really is case only when there is excessive amount of
those configs and without the option some would be ignored. So
format the option text in line of CLI switch and say it is forcing
not enabling checking of all configurations.
2011-01-31 11:16:32 +02:00
Kimmo Varis
b7cb684b1b
GUI: Write error summary to CSV and TXT reports.
...
It makes more sense to write the one-line summary to TXT and
especially to CSV reports. Long multi-line verbose messages ruin
the layout these files.
2011-01-31 10:32:23 +02:00
Kimmo Varis
43b0e2a74c
GUI: Fill summary data when reading XML file.
...
When reading XML file there is no summary data stored so we must
dublicate the message data to summary. Since message can be long
try to find full stop from the message and cut summary to it.
Ticket: #2402 ([GUI] Summary is not shown for loaded .xml file)
2011-01-31 10:25:14 +02:00
Kimmo Varis
800d8d1e05
Cleanup makefile a bit.
...
Align object file lists first line. Remove excessive use of tabs.
2011-01-31 09:18:35 +02:00
Raphael Geissert
386de53ff7
Formatting, sorry
2011-01-30 20:37:37 -06:00
Raphael Geissert
29ca5fbe1e
Minor optimisations to the preprocessor
2011-01-30 18:47:49 -06:00
Raphael Geissert
b4a249f26e
Reduce std::string::find() abuse
2011-01-30 18:40:59 -06:00
Raphael Geissert
66253af1e5
Handle "#endif !defined" conditionals
2011-01-30 17:33:44 -06:00
Raphael Geissert
b944168bdc
Check for cpp conditionals where a define is already guaranteed
2011-01-30 12:47:17 -06:00
Pete Johns
098f0bf3e6
Fixed #2526 (Make TODO_ASSERT_EQUALS take three arguments (value, to_be, as_is)?...
...
Removed replaced EXPECTED with...
WANTED (to-be): The future expected value.
CURRENT (as-is): Documenting how cppcheck behaves now.
This removes the need for an ASSERT_EQUALS but enforces the check for every TODO_ASSERT_EQUALS.
2011-01-30 23:20:11 +11:00
Pete Johns
8b6694f32a
astyle formatting.
2011-01-30 22:51:24 +11:00
Raphael Geissert
5137f5fb7f
Detect null pointer dereferences for many FILE-related functions
...
Ticket #1415 : check for calling f{eof,read,close,...} with NULL
2011-01-30 02:34:58 -06:00
Raphael Geissert
49848fd752
Remove duplicated defines
...
After simplifying define(A) conditionals, the final list of
configurations could end up containing duplicate items.
Ticket #1468
2011-01-30 02:13:32 -06:00
Robert Reif
09998d9e18
Memory leaks: less conservative checking of classes. ticket: #2517
2011-01-30 08:38:20 +01:00
Daniel Marjamäki
49fc53165c
Tokenizer: remove some unhandled macros in the global scope. ticket: #2523
2011-01-30 08:34:58 +01:00
Daniel Marjamäki
0624e418f1
Memory leaks: bug fix. don't skip '}' by accident
2011-01-29 18:46:55 +01:00
Kimmo Varis
b9a0e10b9a
Several fixes to cmd line tests.
...
There were several tests handling two parameters as one string.
Eg. "-I path" which doesn't work correctly. Fixed these
problematic tests.
2011-01-29 19:18:47 +02:00
Kimmo Varis
d334a02801
Make --exitcode-suppressions option consistent.
...
The --exitcode-suppressions option was inconsistent with other
long options by taking the filename as separate argument. Now
it expects format --exitcode-suppressions=filename.txt like
other long options.
Ticket: #1837 (--suppresions file.txt inconsistent)
2011-01-29 19:18:47 +02:00
Daniel Marjamäki
a299411a82
Tokenizer: Better simplifications of static constants
2011-01-29 16:14:09 +01:00