diff --git a/clang_format.py b/clang_format.py index 4a17856..39b4188 100644 --- a/clang_format.py +++ b/clang_format.py @@ -129,6 +129,8 @@ def dic_to_yaml_simple(d): output += ": " if type(d[k]) is bool: output += str(d[k]).lower() + elif type(d[k]) is dict: + output += "{" + dic_to_yaml_simple(d[k]) + "}" else: output += str(d[k]) n -= 1 diff --git a/clang_format_custom.sublime-settings b/clang_format_custom.sublime-settings index 4ce1896..beab7ac 100644 --- a/clang_format_custom.sublime-settings +++ b/clang_format_custom.sublime-settings @@ -135,7 +135,25 @@ // bool BeforeCatch Wrap before catch. // bool BeforeElse Wrap before else. // bool IndentBraces Indent the wrapped braces themselves. -// "BraceWrapping": "IndentBraces", + // bool SplitEmptyFunction If false, empty function body can be put on a single line. + // bool SplitEmptyRecord If false, empty record (e.g. class, struct or union) body can be put on a single line. + // bool SplitEmptyNamespace If false, empty namespace body can be put on a single line. + "BraceWrapping":{ +// "AfterClass": false, +// "AfterControlStatement": false, +// "AfterEnum": false, +// "AfterFunction": false, +// "AfterNamespace": false, +// "AfterObjCDeclaration": false, +// "AfterStruct": false, +// "AfterUnion": false, +// "BeforeCatch": false, +// "BeforeElse": false, +// "IndentBraces": false, +// "SplitEmptyFunction:" true, +// "SplitEmptyRecord": true, +// "SplitEmptyNamespace": true + }, // Break after each annotation on a field in Java files. // "BreakAfterJavaFieldAnnotations": true,