diff mbox

[2/3] add ./clang-format

Message ID 1440001229-22483-2-git-send-email-mike.holmes@linaro.org
State New
Headers show

Commit Message

Mike Holmes Aug. 19, 2015, 4:20 p.m. UTC
The odp_format tool uses clang-format and this definition generates
output that matches the odp checkpatch rules

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 .clang-format | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 .clang-format

Comments

Maxim Uvarov Aug. 24, 2015, 11:13 a.m. UTC | #1
On 08/19/15 19:20, Mike Holmes wrote:
> The odp_format tool uses clang-format and this definition generates
> output that matches the odp checkpatch rules
>
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   .clang-format | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>   create mode 100644 .clang-format
>
> diff --git a/.clang-format b/.clang-format
> new file mode 100644
> index 0000000..c9fad75
> --- /dev/null
> +++ b/.clang-format
> @@ -0,0 +1,11 @@
> +BasedOnStyle: LLVM
> +IndentWidth: 8
> +UseTab: Always
> +BreakBeforeBraces: Linux
> +AllowShortIfStatementsOnASingleLine: false
> +IndentCaseLabels: false
> +ColumnLimit: 80
> +UseTab: Always
UseTab listed twice.

Maxim.
> +PointerAlignment: Right
> +Cpp11BracedListStyle: true
> +Standard: Cpp11
diff mbox

Patch

diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..c9fad75
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,11 @@ 
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+ColumnLimit: 80
+UseTab: Always
+PointerAlignment: Right
+Cpp11BracedListStyle: true
+Standard: Cpp11