diff --git a/src/plugins/clangformat/clangformatplugin.cpp b/src/plugins/clangformat/clangformatplugin.cpp index 02f107f40c3..0c51a5ed2c6 100644 --- a/src/plugins/clangformat/clangformatplugin.cpp +++ b/src/plugins/clangformat/clangformatplugin.cpp @@ -99,6 +99,7 @@ private: ClangFormatPlugin::ClangFormatPlugin() = default; ClangFormatPlugin::~ClangFormatPlugin() = default; +#ifdef KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED static void disableCppCodeStyle() { using namespace TextEditor; @@ -116,6 +117,7 @@ static void disableCppCodeStyle() page->deleteLater(); } } +#endif bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorString) {