Skip to content

Commit

Permalink
Add JavaScript configuration to clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Sep 26, 2024
1 parent e874ee1 commit 7692264
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
---
BasedOnStyle: Google

AlignConsecutiveMacros: AcrossEmptyLines
AlignOperands: DontAlign
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
ColumnLimit: 120
DerivePointerAlignment: false
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 4
PPIndentWidth: 2
PointerAlignment: Right
SortIncludes: Never
---
BasedOnStyle: Google

AlignConsecutiveMacros: AcrossEmptyLines
AlignOperands: DontAlign
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
ColumnLimit: 120
DerivePointerAlignment: false
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 4
PPIndentWidth: 2
PointerAlignment: Right
SortIncludes: Never
---
Language: JavaScript
AllowShortCaseLabelsOnASingleLine: true
ContinuationIndentWidth: 2
IndentWidth: 2
JavaScriptQuotes: Double

0 comments on commit 7692264

Please sign in to comment.