Add a .clang-format file to enhance formatting experience with clang-format
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 24 Jul 2014 00:26:04 +0000 (00:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 24 Jul 2014 00:26:04 +0000 (00:26 +0000)
clang-format is a handy tool that formats code very intelligently.  I'd
like to use it with LLDB but it requires a .clang-format file to inform
it about LLDB-specific formatting rules.

More information on these rules are here:
http://clang.llvm.org/docs/ClangFormatStyleOptions.html

Differential Revision: http://reviews.llvm.org/D4630

llvm-svn: 213823

lldb/.clang-format [new file with mode: 0644]

diff --git a/lldb/.clang-format b/lldb/.clang-format
new file mode 100644 (file)
index 0000000..7bb4a26
--- /dev/null
@@ -0,0 +1,4 @@
+BasedOnStyle: LLVM
+IndentWidth:     4
+ColumnLimit:     120
+BreakBeforeBraces: Allman