diff options
| author | Julie Hockett <juliehockett@google.com> | 2018-10-16 23:07:37 +0000 |
|---|---|---|
| committer | Julie Hockett <juliehockett@google.com> | 2018-10-16 23:07:37 +0000 |
| commit | 229c63b02127e0168da02f0214dd4f35220499ee (patch) | |
| tree | 812c3445f7d8119eb4447a9c10b3aad0fada0a7c /clang-tools-extra/test/clang-doc/md-namespace.cpp | |
| parent | 7f87ca62a27e724a99a3b1ea5933ea62f98b959f (diff) | |
| download | bcm5719-llvm-229c63b02127e0168da02f0214dd4f35220499ee.tar.gz bcm5719-llvm-229c63b02127e0168da02f0214dd4f35220499ee.zip | |
[clang-doc] Limit integration tests
Now that the clang-doc libraries are covered by unit tests, we don't
need to have extensive (and unmaintainable) integration tests. This
replaces the integration test suite with a smaller one that just tests
the tool itself and removes extraneous dumping logic from the tool
itself.
Includes tests that cover the parse->serialize->merge->generate
pipeline, as well as tests for the --public, --format, --doxygen, and
--output flags.
Differential Revision: https://reviews.llvm.org/D53150
llvm-svn: 344655
Diffstat (limited to 'clang-tools-extra/test/clang-doc/md-namespace.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-doc/md-namespace.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/clang-tools-extra/test/clang-doc/md-namespace.cpp b/clang-tools-extra/test/clang-doc/md-namespace.cpp deleted file mode 100644 index bbe26c61aea..00000000000 --- a/clang-tools-extra/test/clang-doc/md-namespace.cpp +++ /dev/null @@ -1,48 +0,0 @@ -// THIS IS A GENERATED TEST. DO NOT EDIT. -// To regenerate, see clang-doc/gen_test.py docstring. -// -// RUN: rm -rf %t -// RUN: mkdir %t -// RUN: echo "" > %t/compile_flags.txt -// RUN: cp "%s" "%t/test.cpp" - -namespace A { - -void f(); - -} // namespace A - -namespace A { - -void f(){}; - -namespace B { - -enum E { X }; - -E func(int i) { return X; } - -} // namespace B -} // namespace A - -// RUN: clang-doc --format=md --doxygen --public --extra-arg=-fmodules-ts -p %t %t/test.cpp -output=%t/docs - - -// RUN: cat %t/docs/./A.md | FileCheck %s --check-prefix CHECK-0 -// CHECK-0: # namespace A -// CHECK-0: ## Functions -// CHECK-0: ### f -// CHECK-0: *void f()* -// CHECK-0: *Defined at line 17 of {{.*}}* - -// RUN: cat %t/docs/A/B.md | FileCheck %s --check-prefix CHECK-1 -// CHECK-1: # namespace B -// CHECK-1: ## Functions -// CHECK-1: ### func -// CHECK-1: *enum A::B::E func(int i)* -// CHECK-1: *Defined at line 23 of {{.*}}* -// CHECK-1: ## Enums -// CHECK-1: | enum E | -// CHECK-1: -- -// CHECK-1: | X | -// CHECK-1: *Defined at line 21 of {{.*}}* |

