- enhancement: code completion suggestion for "__func__" variable

This commit is contained in:
royqh1979@gmail.com 2021-11-17 17:18:02 +08:00
parent d5d0cec1b0
commit e60b909294
2 changed files with 19 additions and 1 deletions

View File

@ -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: 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 wrongly saved to registry
- fix: project layout infos are not correctly saved/loaded - fix: project layout infos are not correctly saved/loaded

View File

@ -2153,6 +2153,21 @@ void CppParser::handleMethod(const QString &sType, const QString &sName, const Q
true, true,
false); 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 { } else {
functionStatement = addStatement( functionStatement = addStatement(
functionClass, functionClass,