diff options
author | Daniel Jasper <djasper@google.com> | 2012-12-07 09:52:15 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-12-07 09:52:15 +0000 |
commit | c74e2794bebaab41213f23b27c09c21cb1e1f81b (patch) | |
tree | 9002493cec366836fdec32c87809cef5c6a0011a /unittests/Format/FormatTest.cpp | |
parent | bf25fb1e2eaea0eadb90d1a9ce91e7d510c8972a (diff) |
Small tweaks to clang-format.
Now not joining keywords with '::' and not putting a space between
a pointer pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index c8416cb352..d00da7ffee 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -277,6 +277,8 @@ TEST_F(FormatTest, UnderstandsAccessSpecifiers) { TEST_F(FormatTest, FormatsDerivedClass) { verifyFormat("class A : public B {\n" "};"); + verifyFormat("class A : public ::B {\n" + "};"); } TEST_F(FormatTest, FormatsEnum) { @@ -474,6 +476,9 @@ TEST_F(FormatTest, UnderstandsUsesOfStar) { verifyFormat("int a = *b;"); verifyFormat("int a = *b * c;"); verifyFormat("int a = b * *c;"); + verifyFormat("int main(int argc, char **argv) {\n}"); + + verifyGoogleFormat("int main(int argc, char** argv) {\n}"); } TEST_F(FormatTest, LineStartsWithSpecialCharacter) { |