
The tests all remove the directory at test start, and it only prevents inspecting the test artifacts to remove them at the end of the test run.
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
// 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: FileCheck %s -input-file=%t/docs/index.yaml --check-prefix=CHECK
|
|
|
|
void function(int x);
|
|
|
|
void function(int x) {}
|
|
|
|
// CHECK: ---
|
|
// CHECK-NEXT: USR: '{{([0-9A-F]{40})}}'
|
|
// CHECK-NEXT: ChildFunctions:
|
|
// CHECK-NEXT: - USR: '{{([0-9A-F]{40})}}'
|
|
// CHECK-NEXT: Name: 'function'
|
|
// CHECK-NEXT: DefLocation:
|
|
// CHECK-NEXT: LineNumber: 9
|
|
// CHECK-NEXT: Filename: '{{.*}}
|
|
// CHECK-NEXT: Location:
|
|
// CHECK-NEXT: - LineNumber: 7
|
|
// CHECK-NEXT: Filename: '{{.*}}'
|
|
// CHECK-NEXT: Params:
|
|
// CHECK-NEXT: - Type:
|
|
// CHECK-NEXT: Name: 'int'
|
|
// CHECK-NEXT: QualName: 'int'
|
|
// CHECK-NEXT: Name: 'x'
|
|
// CHECK-NEXT: ReturnType:
|
|
// CHECK-NEXT: Type:
|
|
// CHECK-NEXT: Name: 'void'
|
|
// CHECK-NEXT: QualName: 'void'
|
|
// CHECK-NEXT:...
|