summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-21 14:32:05 +0000
committerManuel Klimek <klimek@google.com>2013-01-21 14:32:05 +0000
commitae610d173dee8a17b5a4c7c0029d05e6105dfd62 (patch)
treec456c9671bbc2d006a983f6290b860bb2b1544bb /clang/unittests/Format/FormatTest.cpp
parentb670018c9fdfd2d6df489c4e478dbee6889e2bae (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud