Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Adding flag to clang for detecting problems in code
fcarney last edited by
I want to add a flag to tell clang to complain about local variable shadowing. I thought clang also responded to flags set on the compiler such as:
QMAKE_CXXFLAGS += -Wshadow-all
I want the in editor warnings to complain about variable shadowing. I understand there is a version of clang that provides these kinds of warnings in the editor. I looked at the Options in Qt Creator under the Analyzer->Clang Tools tab. But I am unsure if this is the place to add flags like this.