================ @@ -38,10 +38,22 @@ namespace clang { namespace dataflow { -static bool isTopLevelNamespaceWithName(const NamespaceDecl &NS, - llvm::StringRef Name) { - return NS.getDeclName().isIdentifier() && NS.getName() == Name && - NS.getParent() != nullptr && NS.getParent()->isTranslationUnit(); +template <class... NameTypes> +static bool hasNestedNamespace(const NamespaceDecl &NS, llvm::StringRef Name, ---------------- ccotter wrote:
Good point, thanks! Updated. https://github.com/llvm/llvm-project/pull/101450 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits