================ @@ -30,20 +30,35 @@ void ImplementationInNamespaceCheck::check( const auto *MatchedDecl = Result.Nodes.getNodeAs<Decl>("child_of_translation_unit"); const auto *NS = dyn_cast<NamespaceDecl>(MatchedDecl); + + // LLVM libc declarations should be inside of a non-anonymous namespace. if (NS == nullptr || NS->isAnonymousNamespace()) { ---------------- ilovepi wrote:
@PiotrZSL shouldn't his handle the anonymous namespace concern below? https://github.com/llvm/llvm-project/pull/98424 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits