Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions clang-tools-extra/test/clang-doc/single-file-public.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: rm -rf %t && mkdir -p %t
// RUN: echo "" > %t/compile_flags.txt
// RUN: cp "%s" "%t/test.cpp"
// RUN: clang-doc --doxygen --public --executor=standalone -p %t %t/test.cpp -output=%t/docs
// This produces two files, index.yaml and one for the record named by its USR
// (which we don't know in advance). This checks the record file by searching
// for a name with a 40-char USR name.
// RUN: find %t/docs -regex ".*/[0-9A-F]*.yaml" -exec cat {} ";" | FileCheck %s --check-prefix=CHECK
// RUN: rm -rf %t

class Record {
private:
Expand All @@ -30,7 +28,7 @@ void Record::function_public() {}
// CHECK-NEXT: Name: 'GlobalNamespace'
// CHECK-NEXT: QualName: 'GlobalNamespace'
// CHECK-NEXT: DefLocation:
// CHECK-NEXT: LineNumber: 12
// CHECK-NEXT: LineNumber: 10
// CHECK-NEXT: Filename: '{{.*}}'
// CHECK-NEXT: TagType: Class
// CHECK-NEXT: ChildFunctions:
Expand All @@ -45,10 +43,10 @@ void Record::function_public() {}
// CHECK-NEXT: Name: 'GlobalNamespace'
// CHECK-NEXT: QualName: 'GlobalNamespace'
// CHECK-NEXT: DefLocation:
// CHECK-NEXT: LineNumber: 22
// CHECK-NEXT: LineNumber: 20
// CHECK-NEXT: Filename: '{{.*}}'
// CHECK-NEXT: Location:
// CHECK-NEXT: - LineNumber: 17
// CHECK-NEXT: - LineNumber: 15
// CHECK-NEXT: Filename: '{{.*}}'
// CHECK-NEXT: IsMethod: true
// CHECK-NEXT: Parent:
Expand Down
10 changes: 4 additions & 6 deletions clang-tools-extra/test/clang-doc/single-file.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: rm -rf %t && mkdir -p %t
// RUN: echo "" > %t/compile_flags.txt
// RUN: cp "%s" "%t/test.cpp"
// RUN: clang-doc --doxygen --executor=standalone -p %t %t/test.cpp -output=%t/docs
// RUN: cat %t/docs/index.yaml | FileCheck %s --check-prefix=CHECK
// RUN: rm -rf %t
// RUN: FileCheck %s -input-file=%t/docs/index.yaml --check-prefix=CHECK

void function(int x);

Expand All @@ -16,10 +14,10 @@ void function(int x) {}
// CHECK-NEXT: - USR: '{{([0-9A-F]{40})}}'
// CHECK-NEXT: Name: 'function'
// CHECK-NEXT: DefLocation:
// CHECK-NEXT: LineNumber: 11
// CHECK-NEXT: LineNumber: 9
// CHECK-NEXT: Filename: '{{.*}}
// CHECK-NEXT: Location:
// CHECK-NEXT: - LineNumber: 9
// CHECK-NEXT: - LineNumber: 7
// CHECK-NEXT: Filename: '{{.*}}'
// CHECK-NEXT: Params:
// CHECK-NEXT: - Type:
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/test/clang-doc/test-path-abs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir %t
// RUN: rm -rf %t && mkdir -p %t
// RUN: clang-doc --format=html --executor=standalone %s --output=%t
// RUN: FileCheck %s -input-file=%t/index_json.js -check-prefix=JSON-INDEX
// RUN: rm -rf %t

// JSON-INDEX: var RootPath = "{{.*}}test-path-abs.cpp.tmp";
// JSON-INDEX: var RootPath = "{{.*}}test-path-abs.cpp.tmp";

Loading