diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-21 14:32:05 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-21 14:32:05 +0000 |
commit | ae610d173dee8a17b5a4c7c0029d05e6105dfd62 (patch) | |
tree | c456c9671bbc2d006a983f6290b860bb2b1544bb /clang/unittests/Format/FormatTest.cpp | |
parent | b670018c9fdfd2d6df489c4e478dbee6889e2bae (diff) | |
download | bcm5719-llvm-ae610d173dee8a17b5a4c7c0029d05e6105dfd62.tar.gz bcm5719-llvm-ae610d173dee8a17b5a4c7c0029d05e6105dfd62.zip |
Fixes indent in linkage specification blocks.
We now indent:
extern "C" {
int a;
}
without additional indent inside the extern "C" block.
llvm-svn: 173045
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index f8c454b7bc6..f67cd8c222d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -526,6 +526,10 @@ TEST_F(FormatTest, FormatsNamespaces) { "void f() { f(); }"); } +TEST_F(FormatTest, FormatsExternC) { + verifyFormat("extern \"C\" {\nint a;"); +} + TEST_F(FormatTest, FormatTryCatch) { // FIXME: Handle try-catch explicitly in the UnwrappedLineParser, then we'll // also not create single-line-blocks. |