diff options
author | Daniel Jasper <djasper@google.com> | 2014-12-05 10:42:21 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-12-05 10:42:21 +0000 |
commit | 31f6c54733031ce9f6a05444d0ef10eec481d729 (patch) | |
tree | 47e77b4bd9afe3ddf66c1d66d1950b523dea2410 /clang/unittests/Format/FormatTest.cpp | |
parent | bf253a3d3fa11b1a2b11c310bebc7bfa918ec64f (diff) | |
download | bcm5719-llvm-31f6c54733031ce9f6a05444d0ef10eec481d729.tar.gz bcm5719-llvm-31f6c54733031ce9f6a05444d0ef10eec481d729.zip |
clang-format: Support NS_OPTIONS, CF_ENUM and CF_OPTIONS.
This fixes llvm.org/PR21756.
llvm-svn: 223458
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 6481a3122f6..cf2d8097f7b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -2069,6 +2069,21 @@ TEST_F(FormatTest, FormatsNSEnums) { " // Information about aThirdDecentlyLongValue.\n" " aThirdDecentlyLongValue\n" "};"); + verifyGoogleFormat("typedef NS_OPTIONS(NSInteger, MyType) {\n" + " a = 1,\n" + " b = 2,\n" + " c = 3,\n" + "};"); + verifyGoogleFormat("typedef CF_ENUM(NSInteger, MyType) {\n" + " a = 1,\n" + " b = 2,\n" + " c = 3,\n" + "};"); + verifyGoogleFormat("typedef CF_OPTIONS(NSInteger, MyType) {\n" + " a = 1,\n" + " b = 2,\n" + " c = 3,\n" + "};"); } TEST_F(FormatTest, FormatsBitfields) { |