forked from OSchip/llvm-project
[clangd][NFC] Add traces for PreamblePatch::create
This commit is contained in:
parent
aa93659c9f
commit
20b2af3e55
|
@ -385,6 +385,8 @@ void escapeBackslashAndQuotes(llvm::StringRef Text, llvm::raw_ostream &OS) {
|
|||
PreamblePatch PreamblePatch::create(llvm::StringRef FileName,
|
||||
const ParseInputs &Modified,
|
||||
const PreambleData &Baseline) {
|
||||
trace::Span Tracer("CreatePreamblePatch");
|
||||
SPAN_ATTACH(Tracer, "File", FileName);
|
||||
assert(llvm::sys::path::is_absolute(FileName) && "relative FileName!");
|
||||
// First scan preprocessor directives in Baseline and Modified. These will be
|
||||
// used to figure out newly added directives in Modified. Scanning can fail,
|
||||
|
|
Loading…
Reference in New Issue