Daniel Marjamäki
02939c78f8
Fixed #1994 (False 'Found obsolete function' positive)
2010-08-29 12:01:32 +02:00
Daniel Marjamäki
6e676fdd98
astyle: prevent creating backup files
2010-08-29 09:35:21 +02:00
Kimmo Varis
beb2cfdd5d
Merge branch 'InternalErrors'
2010-08-29 09:41:11 +03:00
Kimmo Varis
b0fa7bfd8c
GUI: Add option to show debug warnings in checking log.
2010-08-29 09:38:03 +03:00
Kimmo Varis
20a4f1e195
GUI: Output debug errors to log view.
...
Debug errors were not shown anywhere in the GUI, they were just
ignored. This commit adds new signal for those debug errors and
directs them to checking log.
Solves ticket #1898 (GUI: Handle internal errors from lib)
2010-08-28 20:37:21 +03:00
Daniel Marjamäki
71453871d4
Fixed #1989 (false positive: Variable 'Aux13' is assigned a value that is never used)
2010-08-28 13:32:43 +02:00
Robert Reif
b1bf201a8a
Symbol database: Refactorings. Ticket: #1895
2010-08-28 11:23:23 +02:00
Kimmo Varis
35afc4c63f
GUI: Disable debug warnings for now.
2010-08-28 09:21:25 +03:00
Kimmo Varis
11e073cf99
GUI: Fix compiling.
2010-08-28 09:16:01 +03:00
Daniel Marjamäki
83a8879f11
Tokenizer::simplifyInitVar : Refactorings and fixes related to ticket #1989
2010-08-27 22:58:21 +02:00
Daniel Marjamäki
d45186d645
Added --debug-warnings that we can use to enable various debug warnings
2010-08-27 20:28:00 +02:00
Daniel Marjamäki
8eee4cf2e8
Fixed #1984 (false positive: syntax error in for loop (< -operator))
2010-08-26 23:24:01 +02:00
Daniel Marjamäki
57523574ef
Fixed #1985 (false positive: syntax error in try catch-block with for()-loop inside)
2010-08-26 23:19:18 +02:00
Daniel Marjamäki
02088443f9
quick fix for #1969 (False positive: Uninitialized variable when exit() is called before variable is used.)
2010-08-26 23:11:04 +02:00
Daniel Marjamäki
0597c50a47
Fixed #1966 (False positive: Unused private function (virtual function in base class))
2010-08-26 22:05:45 +02:00
Daniel Marjamäki
df87ce9e04
Fixed #1945 (False positives when a for loop header is in a macro)
2010-08-26 21:57:48 +02:00
Daniel Marjamäki
1d9e484053
Fixed #1951 (Preprocessor: Compound macro statements not handled correctly)
2010-08-26 21:33:45 +02:00
Robert Reif
499a12c896
Tokenizer::simplifyTypedef: Report about unhandled typedefs. Ticket: #1821
2010-08-26 20:44:13 +02:00
Daniel Marjamäki
8b18aaff25
Fixed #1981 (false positive: syntax error on template operator <)
2010-08-26 07:43:00 +02:00
Robert Reif
5c3ecc31da
Code cleanup
2010-08-26 07:32:48 +02:00
Daniel Marjamäki
ca9cdf5bf5
Tokenizer: If syntax errors are found then don't return a token list. Ticket: #1961
2010-08-25 22:10:21 +02:00
Daniel Marjamäki
6c8287913c
Tokenizer: Detect some syntax errors when trying to use templates. Ticket: #1961
2010-08-25 21:57:57 +02:00
Robert Reif
4a6070d2af
fix 2 problems related to ticket 1976:
...
1. nested unnamed anonymous structures and unions were not supported.
2. declaration split up in class had bug if proceeded by access specifier.
2010-08-25 20:17:31 +02:00
Daniel Marjamäki
4d6b7bea2e
GUI: some fixes of help
...
* moved the help file to the application folder
* use absolute path instead of relative path for helpfile
* show warning messages if help file doesn't exist or fails to be loaded
2010-08-25 20:08:07 +02:00
Kimmo Varis
c0c4d18120
GUI: Disable project opening while checking files.
2010-08-25 20:59:30 +03:00
Kimmo Varis
b6bef44f61
GUI: Fix enabling project closing action.
...
Project closing action was not enabled when the project file was
opened from the checked directory. Also update the window caption to
contain project file name that was opened from the checked
directory.
2010-08-25 18:54:45 +03:00
Robert Reif
ff4ebbede3
Fixed gcc compiler warning about uninitialized variable tok1. Ticket: #1965
2010-08-25 07:38:53 +02:00
Kimmo Varis
501015c760
GUI: Fix GCC build failure because of copy-paste error.
2010-08-25 01:01:44 +03:00
Kimmo Varis
28996bd9c1
Fixed #1978 (Fix compiler warnings in GUI (MainWindow::mExiting’ will be initialized after...))
2010-08-25 00:56:45 +03:00
Kimmo Varis
8731b3efdd
Fixed #1977 (GUI crashes when checking a directory)
...
The GUI was crashing if no project files were in checked directory.
I missed this case in my own testing because I had created test
project files for each directory. Whoops!
Anyway, this now also makes silently loaded project files (project
file residing in directory but not load by the user) as normal
projects in the GUI.
2010-08-25 00:47:05 +03:00
Daniel Marjamäki
e7f7c77eab
Fixed #1948 (C++ class scoping not followed)
2010-08-24 22:04:14 +02:00
Daniel Marjamäki
ca407110dc
Fixed #1936 (Internal error. Token::Match called with varid 0.)
2010-08-24 20:58:22 +02:00
Daniel Marjamäki
225114df1c
Fixed #1960 (cppcheck hangs with 100% cpu load)
2010-08-24 20:50:04 +02:00
Kimmo Varis
ce0f65e761
GUI: Fix for loading "oldstyle" project file.
2010-08-24 20:50:25 +03:00
Kimmo Varis
4ccdcf0fc2
Merge remote branch 'remotes/kimmo/loadable-project'
...
Conflicts:
gui/gui.qrc
gui/mainwindow.cpp
gui/mainwindow.h
2010-08-24 20:37:51 +03:00
Robert Reif
d961a6ec9e
Tokenizer: Fixed cppcheck and compiler warnings
2010-08-24 07:28:56 +02:00
Daniel Marjamäki
d97b3bd9d9
GUI: Added icons to the help window.
2010-08-23 22:01:01 +02:00
Daniel Marjamäki
39a69b0871
Fixed #1970 (Internal error. CheckClass::SpaceInfo::getVarList found variable '_root' with varid 0.)
2010-08-23 21:22:11 +02:00
Daniel Marjamäki
f7063bed7c
Fixed #1967 (Tokenizer::setVarid doesn't set variable value (list of function pointers))
2010-08-23 20:15:02 +02:00
Daniel Marjamäki
3b716dfcc9
Tokenizer: Simplified the bitfields handling. This patch just looks for the bitfield signature but doesn't care about the type. I don't think any other code would have this same signature so it should be OK. We could add code to only look in structures and classes but I don't think that is necessary. Ticket: #1956
2010-08-23 07:29:05 +02:00
Robert Reif
807269b5e9
Refactoring handling of microsoft types. Ticket: #1956
2010-08-22 21:53:45 +02:00
Robert Reif
cb7b508f77
Tokenizer::simplifyBitfields: fixed more issues. Ticket #1956
2010-08-22 13:25:47 +02:00
Robert Reif
3fcca23b53
Tokenizer: better handling of bitfields. Ticket: #1956
2010-08-22 09:41:22 +02:00
Robert Reif
77d634127c
Tokenizer: simplify DECLARE_DYNAMIC and DECLARE_DYNCREATE
2010-08-22 09:38:05 +02:00
Kimmo Varis
b05fd63d4f
GUI: Add project file for Cppcheck.
2010-08-22 02:24:09 +03:00
Kimmo Varis
f2e3090a83
GUI: Fix bug that same defines were added to list several times.
2010-08-21 22:59:55 +03:00
Kimmo Varis
dbf097326d
Improve project file documentation.
2010-08-21 22:54:28 +03:00
Kimmo Varis
2f063ad775
GUI: Use rootpath from Project file.
...
If rootpath is given in project file then use it as a current
directory. Also check if paths given in project file are
relative and use rootpath as base path for relative paths.
2010-08-21 19:38:51 +03:00
Robert Reif
ac9078857e
Tokenizer: simplify bitfields. Ticket: #1956
2010-08-21 16:34:41 +02:00
Kimmo Varis
d967151c32
GUI: Add project root path to Project file -dialog.
2010-08-21 17:08:10 +03:00