diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-07 17:54:38 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-07 17:54:38 +0000 |
commit | 740c0fbe0e025c4ae3ac4e08917816b96b8dbe32 (patch) | |
tree | fd44d0115efe8ba4daff6ee6ef03bb6dcdd9a53b /clang/test/Sema/warn-documentation.cpp | |
parent | af9aec0cd7a1339785423607b5b36ddca7d58d94 (diff) | |
download | bcm5719-llvm-740c0fbe0e025c4ae3ac4e08917816b96b8dbe32.tar.gz bcm5719-llvm-740c0fbe0e025c4ae3ac4e08917816b96b8dbe32.zip |
libclang API for comment-to-xml conversion.
The implementation also includes a Relax NG schema and tests for the schema
itself. The schema is used in c-index-test to verify that XML documents we
produce are valid. In order to do the validation, we add an optional libxml2
dependency for c-index-test.
Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric
Christopher. Thanks!
llvm-svn: 161431
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index c6ba0151b91..d116c3f8cae 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -1,5 +1,9 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wdocumentation -Wdocumentation-pedantic -verify %s +// This file contains lots of corner cases, so ensure that XML we generate is not invalid. +// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s | FileCheck %s -check-prefix=WRONG +// WRONG-NOT: CommentXMLInvalid + // expected-warning@+1 {{expected quoted string after equals sign}} /// <a href=> int test_html1(int); |