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

Bernhard Lindner private at bernhard-lindner.de
Thu Dec 20 15:28:40 CET 2018


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 (<experimental/source_location>) that introduces three
intrinsics that are unknown to clang:


As a result, the clang code analysis fails (indicated above the editor as a yellow warning

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?

Best Regards
Bernhard Lindner

More information about the Interest mailing list