- enhancement: code completion suggestion for "__func__" variable
This commit is contained in:
parent
d5d0cec1b0
commit
e60b909294
5
NEWS.md
5
NEWS.md
|
@ -1,4 +1,7 @@
|
|||
Version 0.8.12 For Dev-C++ 7 Beta
|
||||
Version 0.9.1 For Dev-C++ 7 Beta
|
||||
- enhancement: code completion suggestion for "__func__" variable
|
||||
|
||||
Version 0.9.0 For Dev-C++ 7 Beta
|
||||
- fix: control keys in the numpad doesn't work in the editor
|
||||
- fix: project layout infos are wrongly saved to registry
|
||||
- fix: project layout infos are not correctly saved/loaded
|
||||
|
|
|
@ -2153,6 +2153,21 @@ void CppParser::handleMethod(const QString &sType, const QString &sName, const Q
|
|||
true,
|
||||
false);
|
||||
}
|
||||
// add "__func__ variable"
|
||||
addStatement(
|
||||
functionStatement,
|
||||
mCurrentFile,
|
||||
"", //dont override hint
|
||||
"static const char ",
|
||||
"__func__",
|
||||
"[]",
|
||||
"\""+scopelessName+"\"",
|
||||
startLine+1,
|
||||
StatementKind::skVariable,
|
||||
StatementScope::ssLocal,
|
||||
StatementClassScope::scsNone,
|
||||
true,
|
||||
false);
|
||||
} else {
|
||||
functionStatement = addStatement(
|
||||
functionClass,
|
||||
|
|
Loading…
Reference in New Issue