diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-31 23:12:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-31 23:12:39 +0000 |
commit | f843a580c4a54ca147f22422ee8ccfd2347784fc (patch) | |
tree | 03d1aa2095d446d3b4a7142b5314788c145efbab /test/Sema/warn-documentation.cpp | |
parent | 0217b1d045ea99fe792e83ed1a785816289dd53c (diff) |
[Comment parsing] Add support for recognizing
\headerfile command and representing it in an xml
document. Patch reviewed by Dmitri Gribenko.
// rdar://12397511
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 9845f58780..e2e49e59bf 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -887,3 +887,11 @@ int test_nocrash12(); ///@param x@param y int test_nocrash13(int x, int y); +// rdar://12397511 + +// expected-note@+2 {{previous command '\headerfile' here}} +// expected-warning@+2 {{duplicated command '\headerfile'}} +/// \headerfile "" +/// \headerfile foo.h +int test_duplicate_headerfile1(int); + |