aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-10 23:11:41 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-10 23:11:41 +0000
commit9efe291fa874cda376d60aef47373e83b3a862f1 (patch)
treee66e6763bf8a3c8d34058c8d63e23318b946a0eb /clang/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
parente46e8225f4c1bf172fa1d89a72ffe02607d1efe7 (diff)
downloadllvm-9efe291fa874cda376d60aef47373e83b3a862f1.zip
llvm-9efe291fa874cda376d60aef47373e83b3a862f1.tar.gz
llvm-9efe291fa874cda376d60aef47373e83b3a862f1.tar.bz2
Formatter: Put spaces in ObjC method decls in the right place for Google style.
Objective-C method declarations look like this: - (returntype)name:(type)argname anothername:(type)arg2name; In google style, there's no space after the leading '-' but one after "(returntype)" instead (but none after the argument types), see http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml#Method_Declarations_and_Definitions Not inserting the space after '-' is easy, but to insert the space after the return type, the formatter needs to know that a closing parenthesis ends the return type. To do this, I tweaked the code in parse() to check for this, which in turn required moving detection of TT_ObjCMethodSpecifier from annotate() to parse(), because parse() runs before annotate(). (To keep things interesting, the return type is optional, but it's almost always there in practice.) http://llvm-reviews.chandlerc.com/D280 llvm-svn: 172140
Diffstat (limited to 'clang/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp')
0 files changed, 0 insertions, 0 deletions