Bug #18535 2012-03-16 12:08

agetian

__MINGW_NOTHROW like macro cause parsing error

In SVN 7789 (the latest SVN posted on the boards at this moment), the return value of the functions is not shown for many functions, both from the standard C library and custom-made.

The test was made on Windows Vista 32-bit using MinGW GCC 4.6.1 as the compiler toolchain. I'm not sure if the same behavior happens with other toolchains and on other operating systems.

For example:

#include <stdio.h>

int main(void)

{

printf()

}

In this case, CodeBlocks shows the code hint for the function as "__MINGW_NOTHROW printf(const char*, ...)", omitting the return type of the function (int) and the other information specified in stdio.h.

This is a regression. In the previous nightly (SVN 7671), the same code shows the correct hint "_CRTIMP int __cdecl __MINGW_NOTHROW printf(const char *, ...)".

Category
Plugin::CodeCompletion
Group
Platform:Windows
Status
Open
Close date
 
Assigned to
ollydbg
agetian 2012-03-16 12:41
ollydbg 2012-05-18 00:36

I change the title, this is because the macro expansion is not correctly.