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/GlobalNamespace/index.yaml | FileCheck %s --check-prefix=CHECK
7 // RUN: rm -rf %t
8 
9 void function(int x);
10 
function(int x)11 void function(int x) {}
12 
13 // CHECK: ---
14 // CHECK-NEXT: USR:             '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}'
15 // CHECK-NEXT: ChildFunctions:
16 // CHECK-NEXT:   - USR:             '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}'
17 // CHECK-NEXT:    Name:            'function'
18 // CHECK-NEXT:    DefLocation:
19 // CHECK-NEXT:      LineNumber:      [[@LINE-8]]
20 // CHECK-NEXT:      Filename:        '{{.*}}
21 // CHECK-NEXT:    Location:
22 // CHECK-NEXT:      - LineNumber:      [[@LINE-13]]
23 // CHECK-NEXT:        Filename:        '{{.*}}'
24 // CHECK-NEXT:    Params:
25 // CHECK-NEXT:      - Type:
26 // CHECK-NEXT:          Name:            'int'
27 // CHECK-NEXT:        Name:            'x'
28 // CHECK-NEXT:    ReturnType:
29 // CHECK-NEXT:      Type:
30 // CHECK-NEXT:        Name:            'void'
31 // CHECK-NEXT:...
32