From 1e5cac14b014099869e7270c60837033006efef3 Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Sat, 11 Jan 2020 22:02:06 +0000 Subject: [PATCH] issue #169 apply fixes from MIR project --- mir/.clang-format | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mir/.clang-format diff --git a/mir/.clang-format b/mir/.clang-format new file mode 100644 index 0000000..23f5787 --- /dev/null +++ b/mir/.clang-format @@ -0,0 +1,20 @@ +BasedOnStyle: google +SpaceBeforeParens: Always +IndentCaseLabels: false +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +SpaceAfterCStyleCast: true +PointerAlignment: Right +BreakBeforeBinaryOperators: All +ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 +ContinuationIndentWidth: 2 +PenaltyBreakBeforeFirstCallParameter: 10000 +SortIncludes: false +BreakStringLiterals: true +BreakBeforeTernaryOperators: true +AllowShortCaseLabelsOnASingleLine: true +ColumnLimit: 100 +MaxEmptyLinesToKeep: 1 +#StatementMacros: [ 'REP2', 'REP3', 'REP4', 'REP5', 'REP6', 'REP7', 'REP8' ] +#TypenameMacros: [ 'VARR', 'DLIST', 'HTAB' ]