summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-decls.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-10 13:08:12 +0000
committerDaniel Jasper <djasper@google.com>2013-01-10 13:08:12 +0000
commitc1fa281325adac4ae55b765dd8de8045faec3bd3 (patch)
treed2177cbe0dc407c49301a892bb5a97c25a8b4ca1 /clang/test/Index/comment-cplus-decls.cpp
parent22c53df947f4e53ace08645f4b99a5ff6b815379 (diff)
downloadbcm5719-llvm-c1fa281325adac4ae55b765dd8de8045faec3bd3.tar.gz
bcm5719-llvm-c1fa281325adac4ae55b765dd8de8045faec3bd3.zip
Improvements to function type and ObjC block formatting.
Before: int (^myBlock) (int) = ^(int num) {} A<void ()>; int (*b)(int); After: int (^myBlock)(int) = ^(int num) {} A<void()>; int(*b)(int); For function types and function pointer types, this patch only makes the behavior consistent (for types that are keywords and other types). For the latter function pointer type declarations, we'll probably want to add a space after "int". Also added LangOpts.Bool = 1, so we handle "A<bool()>" appropriately Moved the LangOpts-settings to a public place for use by tests and clang-format binary. llvm-svn: 172065
Diffstat (limited to 'clang/test/Index/comment-cplus-decls.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud