Skip to content

Commit

Permalink
Add a .clang-format file to give us local control over Chromium style.
Browse files Browse the repository at this point in the history
This also makes editor integration somewhat easier by letting editors pass just
"-style=file -assume-filename=<filename>" to clang-format instead of needing to
guess the desired style based on the path.

We could name this file _clang-format instead, if that's easier for Windows.

Review URL: https://codereview.chromium.org/52093012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232271 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jyasskin@chromium.org committed Nov 1, 2013
1 parent a35dd8a commit 452ed0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium

0 comments on commit 452ed0e

Please sign in to comment.