Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
retrieve full comiler options in qmake
xylosper last edited by
I want to retrive full compiler option in qmake including all
$$join(DEFINES, " -D") $$join(INCLUDEPATH, " -I")but it doesn't contain Qt module informations such as
How can I get full compiler flags/options in qmake?
Out of curiosity, what is your use case for that information ?
xylosper last edited by xylosper
I need the information to run
clang-tidybecause it requires compile options to analyze source code.
For instance, without include path for QtCore headers, it prints some kind of erros similar with 'header file not found' whenever it sees
Although I can write it one by one, I'd like to make general method to run
clang-tidyfor my project.
You should check the qmake variable reference page. It contains all the variables that you likely need.