[clang-tools-extra] r325260 - [clangd] Create trace::Span when running ASTCallback
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 08:24:34 PST 2018
Author: ibiryukov
Date: Thu Feb 15 08:24:34 2018
New Revision: 325260
URL: http://llvm.org/viewvc/llvm-project?rev=325260&view=rev
Log:
[clangd] Create trace::Span when running ASTCallback
Modified:
clang-tools-extra/trunk/clangd/ClangdUnit.cpp
Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.cpp?rev=325260&r1=325259&r2=325260&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Thu Feb 15 08:24:34 2018
@@ -439,8 +439,10 @@ CppFile::rebuild(ParseInputs &&Inputs) {
Diagnostics.insert(Diagnostics.end(), NewAST->getDiagnostics().begin(),
NewAST->getDiagnostics().end());
}
- if (ASTCallback && NewAST)
+ if (ASTCallback && NewAST) {
+ trace::Span Tracer("Running ASTCallback");
ASTCallback(FileName, NewAST.getPointer());
+ }
// Write the results of rebuild into class fields.
Preamble = std::move(NewPreamble);
More information about the cfe-commits
mailing list