[Qt-creator] Macro expansion claims error, but code compiles fine
André Pönitz
andre.poenitz at mathematik.tu-chemnitz.de
Mon May 28 13:59:11 CEST 2012
On Mon, May 28, 2012 at 07:37:10AM +0200, Geronimo Ma. Hernandez wrote:
> Hello,
>
> I just wanted to inform you, that all occurrences of this macro:
>
> #define isyslog(a ...) void((SysLogLevel > 1) ? syslog_with_tid(LOG_ERR,
> a) : void())
>
> where marked es faulty. Flyover help says: expected token ';' got ')'
> May be your parser needs a little finetuning, cause gcc does not vomit any
> warning.
Indeed. And this is known. Variadic macros are C99/C++11, whereas
Creator's parser is essentially C++03 plus a few C++11 additions.
Work in that area is ongoing.
Andre'
More information about the Qt-creator
mailing list