================
@@ -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;
----------------
ilovepi wrote:
Typically we prefer other set like containers over `unordered_set` (See
https://llvm.org/docs/ProgrammersManual.html#other-set-like-container-options).
https://llvm.org/docs/ProgrammersManual.html#set-like-containers-std-set-smallset-setvector-etc
also lists some other alternatives, but likely you want `StringSet`.
https://github.com/llvm/llvm-project/pull/96809
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits