diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-07 23:33:11 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-07 23:33:11 +0000 |
commit | a649eee9e877e690932c5b5c37b15f0668590feb (patch) | |
tree | 18d13e84b887e3e3894a495b28a22ddf54c5b32a /clang/test/Sema/warn-documentation.cpp | |
parent | 61e368182dcb5484109e338b0731ca3e30d4492a (diff) | |
download | bcm5719-llvm-a649eee9e877e690932c5b5c37b15f0668590feb.tar.gz bcm5719-llvm-a649eee9e877e690932c5b5c37b15f0668590feb.zip |
HeaderDoc: Support more of HeaderDoc documentation
commands; top level tags such as @interface and
their 2nd level tags such as @coclass, etc.
// rdar://12379114
llvm-svn: 176667
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index 32e43a77f98..0132ef280c4 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -922,3 +922,31 @@ int test_nocrash12(); // expected-warning@+1 {{empty paragraph passed to '@param' command}} ///@param x@param y int test_nocrash13(int x, int y); + +// rdar://12379114 +// expected-warning@+2 {{'@union' command should not be used in a comment attached to a non-union declaration}} +/*! + @union U This is new +*/ +struct U { int iS; }; + +/*! + @union U1 +*/ +union U1 {int i; }; + +// expected-warning@+2 {{'@struct' command should not be used in a comment attached to a non-struct declaration}} +/*! + @struct S2 +*/ +union S2 {}; + +/*! + @class C1 +*/ +class C1; + +/*! + @struct S3; +*/ +class S3; |