| 1 | // RUN: rm -rf %t && mkdir -p %t |
|---|---|
| 2 | // RUN: split-file %s %t |
| 3 | // RUN: clang-doc -format=html %t/compile_commands.json %t/main.cpp |
| 4 | |
| 5 | //--- main.cpp |
| 6 | |
| 7 | class Foo { |
| 8 | void getFoo(); |
| 9 | }; |
| 10 | |
| 11 | int main() { |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | //--- compile_commands.json |
| 16 | [{ |
| 17 | "directory": "foo", |
| 18 | "file": "main.cpp", |
| 19 | "command": "clang main.cpp -c" |
| 20 | }] |
| 21 |
