mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 06:36:43 +00:00

The immediate goal is to start producing an HTML report to debug and explain include-cleaner recommendations. For now, this includes only the lowest-level piece: a list of the references found in the source code. How this fits into future ideas: - under refs we can also show the headers providing the symbol, which includes match those headers etc - we can also annotate the #include lines with which symbols they cover, and add whichever includes we're suggesting too - the include-cleaner tool will likely have modes where it emits diagnostics and/or applies edits, so the HTML report is behind a flag Differential Revision: https://reviews.llvm.org/D135956
7 lines
192 B
C++
7 lines
192 B
C++
// RUN: clang-include-cleaner -html=- %s -- -I %S/Inputs | FileCheck %s
|
|
#include "bar.h"
|
|
#include "foo.h"
|
|
|
|
int n = foo();
|
|
// CHECK: <span class='ref sel' data-hover='t{{[0-9]+}}'>foo</span>()
|