1// RUN: rm -rf %t
2// RUN: mkdir %t
3// RUN: echo "" > %t/compile_flags.txt
4// RUN: cp "%s" "%t/test.cpp"
5// RUN: clang-doc --doxygen --executor=standalone -p %t %t/test.cpp -output=%t/docs
6// RUN: cat %t/docs/index.yaml | FileCheck %s --check-prefix=CHECK
7// RUN: rm -rf %t
8
9void function(int x);
10
11void function(int x) {}
12
13// CHECK: ---
14// CHECK-NEXT: USR: '{{([0-9A-F]{40})}}'
15// CHECK-NEXT: ChildFunctions:
16// CHECK-NEXT: - USR: '{{([0-9A-F]{40})}}'
17// CHECK-NEXT: Name: 'function'
18// CHECK-NEXT: DefLocation:
19// CHECK-NEXT: LineNumber: 11
20// CHECK-NEXT: Filename: '{{.*}}
21// CHECK-NEXT: Location:
22// CHECK-NEXT: - LineNumber: 9
23// CHECK-NEXT: Filename: '{{.*}}'
24// CHECK-NEXT: Params:
25// CHECK-NEXT: - Type:
26// CHECK-NEXT: Name: 'int'
27// CHECK-NEXT: QualName: 'int'
28// CHECK-NEXT: Name: 'x'
29// CHECK-NEXT: ReturnType:
30// CHECK-NEXT: Type:
31// CHECK-NEXT: Name: 'void'
32// CHECK-NEXT: QualName: 'void'
33// CHECK-NEXT:...
34

source code of clang-tools-extra/test/clang-doc/single-file.cpp