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 3823807 commit d4fe3e8Copy full SHA for d4fe3e8
clang-tools-extra/clang-doc/Mapper.cpp
@@ -43,11 +43,12 @@ template <typename T> bool MapASTVisitor::mapDecl(const T *D,
43
// Prevent Visiting USR twice
44
{
45
std::lock_guard<llvm::sys::Mutex> Guard(USRVisitedGuard);
46
- if (USRVisited.count(USR.str()))
+ StringRef Visited = USR.str();
47
+ if (USRVisited.count(Visited))
48
return true;
49
// We considered a USR to be visited only when its defined
50
if (IsDefinition)
- USRVisited.insert(USR.str());
51
+ USRVisited.insert(Visited);
52
}
53
54
bool IsFileInRootDir;
0 commit comments