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 | d36ef5e40c81e84159dedfd225f4a0ab3811136a (patch) | |
tree | ff07e4067588934cec1d75ced9b66f4a6a8ff964 /clang/unittests/Format/FormatTest.cpp | |
parent | 2f4d7ba6669c5b1e049aa4cf18cdf29c96b44797 (diff) | |
download | bcm5719-llvm-d36ef5e40c81e84159dedfd225f4a0ab3811136a.tar.gz bcm5719-llvm-d36ef5e40c81e84159dedfd225f4a0ab3811136a.zip |
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 ..
llvm-svn: 173690
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 6b9b84de269..bdc5f9a5c55 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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) { |