]> granicus.if.org Git - clang/commit
clang-format: Add more options to namespace indentation.
authorDaniel Jasper <djasper@google.com>
Wed, 31 Jul 2013 23:16:02 +0000 (23:16 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 31 Jul 2013 23:16:02 +0000 (23:16 +0000)
commiteff18b9b6f1218a6bbe4869989b08867823a4e75
treeb8ef93018738e4ea5f9a91bbbae50994950a1a8d
parent438292860a49f6998dff4db0b9ff04bcc0d5ae33
clang-format: Add more options to namespace indentation.

With this patch, clang-format can be configured to:
* not indent in namespace at all (former behavior).
* indent in namespace as in other blocks.
* indent only in inner namespaces (as required by WebKit style).

Also fix alignment of access specifiers in WebKit style.

Patch started by Marek Kurdej. Thank you!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187540 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.cpp
lib/Format/UnwrappedLineParser.h
unittests/Format/FormatTest.cpp