diff options
| author | Daniel Jasper <djasper@google.com> | 2013-07-11 13:48:16 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-07-11 13:48:16 +0000 |
| commit | 185de2499b9ff5cf0fa9df3010565373a4089cb8 (patch) | |
| tree | 1c0bbea8da39f9c8000d235d5087568278801f68 /clang/unittests/Format/FormatTest.cpp | |
| parent | a7f6913c08bd9a2639da2273428feae04e04063f (diff) | |
| download | bcm5719-llvm-185de2499b9ff5cf0fa9df3010565373a4089cb8.tar.gz bcm5719-llvm-185de2499b9ff5cf0fa9df3010565373a4089cb8.zip | |
Fix indentation problem for comments in call chains
Before:
SomeObject
// Calling someFunction on SomeObject
.someFunction();
After:
SomeObject
// Calling someFunction on SomeObject
.someFunction();
llvm-svn: 186085
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 8435c94a0fe..42cd89cc8b7 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -576,6 +576,9 @@ TEST_F(FormatTest, UnderstandsSingleLineComments) { verifyFormat("void f() {\n" " // Doesn't do anything\n" "}"); + verifyFormat("SomeObject\n" + " // Calling someFunction on SomeObject\n" + " .someFunction();"); verifyFormat("void f(int i, // some comment (probably for i)\n" " int j, // some comment (probably for j)\n" " int k); // some comment (probably for k)"); |

