[clangd][NFC] Add traces for PreamblePatch::create

This commit is contained in:
Kadir Cetinkaya 2020-05-29 12:31:35 +02:00
parent aa93659c9f
commit 20b2af3e55
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6
1 changed files with 2 additions and 0 deletions

View File

@ -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,