Re: [Interest] Qt Creator, Clang Code Model, supplying specific GCC symbols

2018-12-22 Thread Bernhard Lindner
> > What is the best/designated way to supply relacement macros for those > > symbols so the clang analysis succeeds? Is there some configuration/setting > > in Qt Creator? Should I patch the code? Should I pass this to clang as > > command line arguments? > > You should contribute the

Re: [Interest] Qt Creator, Clang Code Model, supplying specific GCC symbols

2018-12-22 Thread Bernhard Lindner
Sorry for asking again... I have not found a solution yet. I tried to define the macros using #ifdef __clang__ / #endif but it seems __clang__ is not defined during code model parser run. Also all GCC smybols are defined so I can not disinguish clang from GCC. I also tried to add a -D argument

[Interest] Qt Creator, Clang Code Model, supplying specific GCC symbols

2018-12-20 Thread Bernhard Lindner
Hi! I am using the new Clang Code Model in Qt Creator to highlight violations. Recently I introduced some experimental C++20 functions in my code. These functions are integrated using a GCC header () that introduces three intrinsics that are unknown to clang: __builtin_FILE()