4302 Commits

Author SHA1 Message Date
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
Daniel Marjamäki
8432e0048f GUI: updated helpwindow ui 2010-08-21 13:43:07 +02:00
Daniel Marjamäki
65c5b9906e GUI: Fixed help window leaks and made sure it is closed when the gui is closed 2010-08-21 11:02:52 +02:00
Robert Reif
9c594684db Tokenizer: handle DECLARE_DYNAMIC. Ticket: #1956 2010-08-21 07:55:14 +02:00
Robert Reif
7173e01926 Fixed #1965 (tokenizer::simplifyEnum add support for C++0x enums) 2010-08-21 07:44:56 +02:00
Kimmo Varis
1e7694d56b GUI: Add new optional root-element to project file.
Add support for new root-element to project file. This element
defines project root directory if given. If not given then project
root is directory where the project file is located.
2010-08-20 23:58:00 +03:00
Daniel Marjamäki
ac8544f3b3 GUI: fixed the online-help.qhp file listing 2010-08-20 22:31:49 +02:00
Daniel Marjamäki
1e59302be6 GUI: Removed the help collection file because it didn't work on different Qt setups 2010-08-20 22:12:40 +02:00
Daniel Marjamäki
06b9cdb679 GUI: Updated online-help. This is still under work. 2010-08-20 21:25:43 +02:00
Robert Reif
7b2b844b8e Fixed #1964 (False positive: function can be const (get this)) 2010-08-20 19:47:41 +02:00
Daniel Marjamäki
1d0debddef astyle formatting 2010-08-20 19:31:23 +02:00
Daniel Marjamäki
741ce40e3d Tokenizer::setVarId : fixed problem for class members 2010-08-20 19:28:10 +02:00
Daniel Marjamäki
3dd504bcb2 updates of Visual Studio files 2010-08-20 17:59:09 +02:00
Robert Reif
66de0d8f72 Fixed #1954 (False positive: function can be const (derived class)) 2010-08-20 07:28:31 +02:00
Robert Reif
f123e951ec Fixed #1963 (typedef array incorrectly simplified) 2010-08-20 07:11:02 +02:00
Kimmo Varis
5a65f4d55d GUI: Prevent opening new files or directories when project file loaded. 2010-08-19 22:28:56 +03:00
Kimmo Varis
2da6a242d2 GUI: Set current directory when loading a project file. 2010-08-19 22:06:45 +03:00
Daniel Marjamäki
043ff6aab5 GUI: Added generated file online-help.qhc because it is not yet autogenerated when building 2010-08-19 19:21:39 +02:00
Daniel Marjamäki
c83461c858 GUI: added simple help file 2010-08-19 18:58:40 +02:00
Daniel Marjamäki
2fea5f01d6 GUI: quick fix for #1957 (Unable to compile gui.pro with Qt Creator in Windows) 2010-08-19 18:21:42 +02:00
Kimmo Varis
c8e073576c GUI: Add icon for Open Project and add it to toolbar. 2010-08-19 17:47:27 +03:00
Daniel Marjamäki
cfa7b4906e Symbol database: bug fixes. Ticket: #1895 2010-08-18 22:42:04 +02:00
Daniel Marjamäki
0934035fcf Fixed #1955 (cppcheck hangs with 100% cpu load) 2010-08-18 22:22:14 +02:00
Daniel Marjamäki
1fd773b245 Fixed #1944 (segfault in Tokenizer::simplifyLogicalOperator) 2010-08-17 20:06:20 +02:00
Daniel Marjamäki
aa00587fed #1943 (segmentation fault of cppcheck (= default)) 2010-08-17 19:50:21 +02:00
Daniel Marjamäki
1faaa5471c Fixed #1946 ('Dereferenced iterator erased' false positive) 2010-08-17 18:56:11 +02:00
Kimmo Varis
6a3bccae6f GUI: Add check paths field to Project File -dialog. 2010-08-17 19:32:29 +03:00
Robert Reif
86f1718b1c Symbol database: Fixed the error reporting so errors are shown in the gui. Ticket: #1895 2010-08-17 17:20:54 +02:00
Kimmo Varis
aef0aeb974 GUI: Set project filename to main window caption.
When project file is closed the caption is emptied.
2010-08-17 18:06:17 +03:00