add .clang-format

This commit is contained in:
Xi Xu committed 2023-10-24 12:31:30 +08:00
1 parent 530baa5643
commit d0d1ebacda
3 files changed
+41

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
BasedOnStyle: LLVM
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
BreakBeforeBraces: Custom
ColumnLimit: 0
Cpp11BracedListStyle: false
FixNamespaceComments: false
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PointerAlignment: Right
SortIncludes: false
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: true
+1
View File
@@ -245,6 +245,7 @@
<ClInclude Include="TParseString.h" /> <ClInclude Include="TParseString.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include=".clang-format" />
<None Include="res\MicroClient.ico" /> <None Include="res\MicroClient.ico" />
<None Include="res\MicroClient.rc2" /> <None Include="res\MicroClient.rc2" />
<None Include="res\MicroClientDoc.ico" /> <None Include="res\MicroClientDoc.ico" />
+1
View File
@@ -103,5 +103,6 @@
<Filter>Resource Files</Filter> <Filter>Resource Files</Filter>
</None> </None>
<None Include="ReadMe.txt" /> <None Include="ReadMe.txt" />
<None Include=".clang-format" />
</ItemGroup> </ItemGroup>
</Project> </Project>