diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-28 15:40:20 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-28 15:40:20 +0000 |
commit | d75ff6496bfb599a9edde41681873919d4d44152 (patch) | |
tree | b04a8d7e2691bc7ebf85803d5123a65b8489c787 /unittests/Format/FormatTest.cpp | |
parent | b7551f71a4c5a901bbae72b0a80af3745b7a0c0d (diff) |
Don't put a function's return type on its own line in Google style.
This would be against the style guide:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Function_Declarations_and_Definitions#Function_Declarations_and_Definitions
Not sure what to do as a last resort if the function signature does not
fit onto a single line in Google style ..
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 6b9b84de26..bdc5f9a5c5 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1511,6 +1511,9 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { "TypeSpecDecl *\n" "TypeSpecDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,\n" " IdentifierIn *II, Type *T) {\n}"); + verifyGoogleFormat( + "TypeSpecDecl* TypeSpecDecl::Create(\n" + " ASTContext& C, DeclContext* DC, SourceLocation L) {\n}"); } TEST_F(FormatTest, LineStartsWithSpecialCharacter) { |