forked from qt-creator/qt-creator
CppTools: Predefine __func__ and friends
...so the built-in parser can handle them. Change-Id: Iff69638f8939c3c4dced99699a3357dd94b23c71 Task-number: QTCREATORBUG-15431 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -190,6 +190,12 @@ const char pp_configuration[] =
|
||||
|
||||
"#define _Pragma(x)\n" // C99 _Pragma operator
|
||||
|
||||
"#define __func__ \"\"\n"
|
||||
|
||||
// ### add macros for gcc
|
||||
"#define __PRETTY_FUNCTION__ \"\"\n"
|
||||
"#define __FUNCTION__ \"\"\n"
|
||||
|
||||
// ### add macros for win32
|
||||
"#define __cdecl\n"
|
||||
"#define __stdcall\n"
|
||||
|
||||
Reference in New Issue
Block a user