================ @@ -12,16 +12,25 @@ #include "clang/AST/Comment.h" #include "clang/Index/USRGeneration.h" #include "llvm/ADT/StringExtras.h" -#include "llvm/Support/Error.h" +#include "llvm/Support/Mutex.h" +#include <unordered_set> namespace clang { namespace doc { + +static std::unordered_set<std::string> USRVisited; + +static llvm::sys::Mutex USRVisitedGuard; + + + ---------------- ilovepi wrote:
nit: extra newlines https://github.com/llvm/llvm-project/pull/96809 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits