In particular macros that are only checked for definition or are
expanded during the evaluation of an #if or #elif directive are now also
added to the list available through Document::macroUses().
The names of undefined macros that are interesting (because they're used
in an #ifdef or a defined(...)) are now available through
Document::undefinedMacroUses().
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Some macros are defined not by cl.exe purely, but are pretty standard.
We add those manually anyway. Also, remove compiler-specific macro
definitions from the model manager. They should be provided by the tool
chains only.
No empty entries should be added to the completion list, but it seems
like this is what is happening. Maybe this warning will give some more
information about the problem.
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
sessionUnloaded was sometimes emitted when the session manager was in
an unsafe state (between delete m_file and m_file = new ...) leading
to crashes when slots connected to the signal accessed the sessionmanager
again. This patch moves the signal emission before delete m_file.
Reviewed-by: dt
Things you mustn't do:
1) end an enum with a comma
2) #include <cxxxx> and not use std::
3) use anonymous structures
All three things are invalid C++. Anonymous structures inside
anonymous unions are allowed by GCC, but that doesn't mean it's valid.
The completion for the directory wasn't triggered because one of the
items matched the typed string, so the list of completion wasn't empty
and no new trigger was allowed.
By not matching items when a trailing slash is typed, the list is
allowed to trigger again from the new location.
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
When a closing character is already there, it shouldn't be appended.
Done by generalizing the same code for automatically inserted brackets
after C++ symbols.
Bad idea to hardcode the background color. Now using the style directly
to draw a fake tooltip as background for the function argument hint.
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>