summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-09-27 16:40:11 +0000
committerAlexander Kornienko <alexfh@google.com>2013-09-27 16:40:11 +0000
commit45dc1b2fd3432610668025c59441f59460349144 (patch)
tree9877f8964f94f6d3ad5c57060cf4f1b87efe4dd4 /clang/unittests/Format/FormatTest.cpp
parent8ba68f6802de2f83e2f68e3ab884376986b521aa (diff)
downloadbcm5719-llvm-45dc1b2fd3432610668025c59441f59460349144.tar.gz
bcm5719-llvm-45dc1b2fd3432610668025c59441f59460349144.zip
Added a comment and another test for the UT_ForIndentation option
llvm-svn: 191530
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 4c7399113d4..08b5643ac08 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5932,7 +5932,19 @@ TEST_F(FormatTest, ConfigurableUseOfTab) {
"\t/*\n"
"\n"
"\t*/\n"
- "}", Tab));
+ "}",
+ Tab));
+ EXPECT_EQ("{\n"
+ "\t/*\n"
+ " asdf\n"
+ "\t*/\n"
+ "}",
+ format("{\n"
+ "\t/*\n"
+ " asdf\n"
+ "\t*/\n"
+ "}",
+ Tab));
Tab.UseTab = FormatStyle::UT_Never;
EXPECT_EQ("/*\n"
OpenPOWER on IntegriCloud