forked from qt-creator/qt-creator
Clang: Allow to forward warnings flags from build system
Change-Id: I47ebb1ce4f3b5544408eb1d0f891ed5090394282 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -75,7 +75,8 @@ bool ClangDiagnosticConfig::operator==(const ClangDiagnosticConfig &other) const
|
||||
&& m_clangTidyMode == other.m_clangTidyMode
|
||||
&& m_clangTidyChecks == other.m_clangTidyChecks
|
||||
&& m_clazyChecks == other.m_clazyChecks
|
||||
&& m_isReadOnly == other.m_isReadOnly;
|
||||
&& m_isReadOnly == other.m_isReadOnly
|
||||
&& m_useBuildSystemWarnings == other.m_useBuildSystemWarnings;
|
||||
}
|
||||
|
||||
bool ClangDiagnosticConfig::operator!=(const ClangDiagnosticConfig &other) const
|
||||
@@ -83,6 +84,16 @@ bool ClangDiagnosticConfig::operator!=(const ClangDiagnosticConfig &other) const
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
bool ClangDiagnosticConfig::useBuildSystemWarnings() const
|
||||
{
|
||||
return m_useBuildSystemWarnings;
|
||||
}
|
||||
|
||||
void ClangDiagnosticConfig::setUseBuildSystemWarnings(bool useBuildSystemWarnings)
|
||||
{
|
||||
m_useBuildSystemWarnings = useBuildSystemWarnings;
|
||||
}
|
||||
|
||||
ClangDiagnosticConfig::TidyMode ClangDiagnosticConfig::clangTidyMode() const
|
||||
{
|
||||
return m_clangTidyMode;
|
||||
|
||||
Reference in New Issue
Block a user