We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb8482 commit 6de47d3Copy full SHA for 6de47d3
clang-tools-extra/clang-doc/Mapper.cpp
@@ -46,7 +46,6 @@ bool MapASTVisitor::mapDecl(const T *D, bool IsDefinition) {
46
// If there is an error generating a USR for the decl, skip this decl.
47
if (index::generateUSRForDecl(D, USR))
48
return true;
49
-
50
// Prevent Visiting USR twice
51
{
52
std::lock_guard<llvm::sys::Mutex> Guard(USRVisitedGuard);
@@ -57,7 +56,6 @@ bool MapASTVisitor::mapDecl(const T *D, bool IsDefinition) {
57
56
if (IsDefinition)
58
USRVisited.insert(Visited);
59
}
60
61
bool IsFileInRootDir;
62
llvm::SmallString<128> File =
63
getFile(D, D->getASTContext(), CDCtx.SourceRoot, IsFileInRootDir);
@@ -145,5 +143,7 @@ llvm::SmallString<128> MapASTVisitor::getFile(const NamedDecl *D,
145
143
return File;
146
144
147
+
148
} // namespace doc
149
} // namespace clang
0 commit comments