Paul Kirth c1ed4f6423
[clang-doc] Format test files (#132428)
Many of the test files had an inconsistent formatting. This patch ran
clang-format over them using the project's .clang-format file, with
column limit = 0, to prevent test directives from being split over
multiple lines.
2025-03-24 17:27:16 -07:00

21 lines
318 B
C++

// RUN: rm -rf %t && mkdir -p %t
// RUN: split-file %s %t
// RUN: clang-doc -format=html %t/compile_commands.json %t/main.cpp
//--- main.cpp
class Foo {
void getFoo();
};
int main() {
return 0;
}
//--- compile_commands.json
[{
"directory" : "foo",
"file" : "main.cpp",
"command" : "clang main.cpp -c"
}]