projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa93659
)
[clangd][NFC] Add traces for PreamblePatch::create
author
Kadir Cetinkaya
<kadircet@google.com>
Fri, 29 May 2020 10:31:35 +0000
(12:31 +0200)
committer
Kadir Cetinkaya
<kadircet@google.com>
Fri, 29 May 2020 12:00:08 +0000
(14:00 +0200)
clang-tools-extra/clangd/Preamble.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/Preamble.cpp
b/clang-tools-extra/clangd/Preamble.cpp
index
667fa04
..
d02685f
100644
(file)
--- a/
clang-tools-extra/clangd/Preamble.cpp
+++ b/
clang-tools-extra/clangd/Preamble.cpp
@@
-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,