Skip to content

Instantly share code, notes, and snippets.

@smooker
Created September 28, 2021 15:08
Show Gist options
  • Save smooker/f8a1bce0c88ef9150de8dceb111b1138 to your computer and use it in GitHub Desktop.
Save smooker/f8a1bce0c88ef9150de8dceb111b1138 to your computer and use it in GitHub Desktop.
qtcreator clang
diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp
index a249327d0e..1908dca1c3 100644
--- a/src/plugins/clangformat/clangformatutils.cpp
+++ b/src/plugins/clangformat/clangformatutils.cpp
@@ -120,7 +120,7 @@ static clang::format::FormatStyle qtcStyle()
style.ExperimentalAutoDetectBinPacking = false;
style.FixNamespaceComments = true;
style.ForEachMacros = {"forever", "foreach", "Q_FOREACH", "BOOST_FOREACH"};
- style.IncludeStyle.IncludeCategories = {{"^<Q.*", 200, 200}};
+ style.IncludeStyle.IncludeCategories = {{"^<Q.*", 200}};
style.IncludeStyle.IncludeIsMainRegex = "(Test)?$";
style.IndentCaseLabels = false;
style.IndentWidth = 4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment