[clang] [clang-tools-extra] [clang-tidy] Add support for bsl::optional (PR #101450)
Chris Cotter via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 9 21:55:46 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list