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
7class Foo {
8 void getFoo();
9};
10
11int 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

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of clang-tools-extra/test/clang-doc/DR-131697.cpp