aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppcodestylesettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppcodestylesettings.h')
-rw-r--r--src/plugins/cpptools/cppcodestylesettings.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/plugins/cpptools/cppcodestylesettings.h b/src/plugins/cpptools/cppcodestylesettings.h
index 4e39e05afc..8b477be354 100644
--- a/src/plugins/cpptools/cppcodestylesettings.h
+++ b/src/plugins/cpptools/cppcodestylesettings.h
@@ -45,26 +45,26 @@ class CPPTOOLS_EXPORT CppCodeStyleSettings
public:
CppCodeStyleSettings();
- bool indentBlockBraces;
- bool indentBlockBody;
- bool indentClassBraces;
- bool indentEnumBraces;
- bool indentNamespaceBraces;
- bool indentNamespaceBody;
- bool indentAccessSpecifiers;
- bool indentDeclarationsRelativeToAccessSpecifiers;
- bool indentFunctionBody;
- bool indentFunctionBraces;
- bool indentSwitchLabels;
- bool indentStatementsRelativeToSwitchLabels;
- bool indentBlocksRelativeToSwitchLabels;
- bool indentControlFlowRelativeToSwitchLabels;
+ bool indentBlockBraces = false;
+ bool indentBlockBody = true;
+ bool indentClassBraces = false;
+ bool indentEnumBraces = false;
+ bool indentNamespaceBraces = false;
+ bool indentNamespaceBody = false;
+ bool indentAccessSpecifiers = false;
+ bool indentDeclarationsRelativeToAccessSpecifiers = true;
+ bool indentFunctionBody = true;
+ bool indentFunctionBraces = false;
+ bool indentSwitchLabels = false;
+ bool indentStatementsRelativeToSwitchLabels = true;
+ bool indentBlocksRelativeToSwitchLabels = false;
+ bool indentControlFlowRelativeToSwitchLabels = true;
// Formatting of pointer and reference declarations, see Overview::StarBindFlag.
- bool bindStarToIdentifier;
- bool bindStarToTypeName;
- bool bindStarToLeftSpecifier;
- bool bindStarToRightSpecifier;
+ bool bindStarToIdentifier = true;
+ bool bindStarToTypeName = false;
+ bool bindStarToLeftSpecifier = false;
+ bool bindStarToRightSpecifier = false;
// false: if (a &&
// b)
@@ -75,15 +75,15 @@ public:
// but always: while (a &&
// b)
// foo;
- bool extraPaddingForConditionsIfConfusingAlign;
+ bool extraPaddingForConditionsIfConfusingAlign = true;
// false: a = a +
// b;
// true: a = a +
// b
- bool alignAssignments;
+ bool alignAssignments = false;
- bool preferGetterNameWithoutGetPrefix;
+ bool preferGetterNameWithoutGetPrefix = true;
void toSettings(const QString &category, QSettings *s) const;
void fromSettings(const QString &category, const QSettings *s);