forked from qt-creator/qt-creator
Clang: add clang plugins checks to code model settings
Add UI controls to change settings and apply them together with warnings and command line options. Current settings are not very flexible but should be easy to test and use without reading tidy/clazy help. Change-Id: I1ca6b49a42a1169b34a703dd50de0bbc105df28f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -72,6 +72,12 @@ public:
|
||||
int indexerFileSizeLimitInMb() const;
|
||||
void setIndexerFileSizeLimitInMb(int sizeInMB);
|
||||
|
||||
QString tidyChecks() const;
|
||||
void setTidyChecks(QString checks);
|
||||
|
||||
QString clazyChecks() const;
|
||||
void setClazyChecks(QString checks);
|
||||
|
||||
public: // for tests
|
||||
void emitChanged();
|
||||
|
||||
@@ -86,6 +92,9 @@ private:
|
||||
int m_indexerFileSizeLimitInMB = 5;
|
||||
ClangDiagnosticConfigs m_clangCustomDiagnosticConfigs;
|
||||
Core::Id m_clangDiagnosticConfigId;
|
||||
|
||||
QString m_tidyChecks;
|
||||
QString m_clazyChecks;
|
||||
};
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
Reference in New Issue
Block a user