forked from qt-creator/qt-creator
CppEditor: Apply 'static pattern' to CppToolsSettings
Change-Id: I1632787e1a1ebf60427c92b302b25a1a2550853f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -565,7 +565,7 @@ Utils::EditOperations ClangFormatBaseIndenter::format(const TextEditor::RangesIn
|
||||
{
|
||||
bool doFormatting = mode == FormattingMode::Forced || formatCodeInsteadOfIndent();
|
||||
#ifdef WITH_TESTS
|
||||
doFormatting = doFormatting || CppEditor::CppToolsSettings::instance()->cppCodeStyle()
|
||||
doFormatting = doFormatting || CppEditor::CppToolsSettings::cppCodeStyle()
|
||||
->codeStyleSettings().forceFormatting;
|
||||
#endif
|
||||
if (!doFormatting)
|
||||
|
||||
Reference in New Issue
Block a user