This revision was automatically updated to reflect the committed changes. Closed by commit rGfbee2dd9a4ba: [clang][nullability] Remove old overload for getNullability() (authored by merrymeerkat).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D140626/new/ https://reviews.llvm.org/D140626 Files: clang/include/clang/AST/Type.h clang/lib/AST/Type.cpp Index: clang/lib/AST/Type.cpp =================================================================== --- clang/lib/AST/Type.cpp +++ clang/lib/AST/Type.cpp @@ -4157,10 +4157,6 @@ } return std::nullopt; } -// TODO: Remove overload. -Optional<NullabilityKind> Type::getNullability(const ASTContext &) const { - return getNullability(); -} bool Type::canHaveNullability(bool ResultIfUnknown) const { QualType type = getCanonicalTypeInternal(); Index: clang/include/clang/AST/Type.h =================================================================== --- clang/include/clang/AST/Type.h +++ clang/include/clang/AST/Type.h @@ -2548,8 +2548,6 @@ /// system, not as part of the canonical type, so nullability will /// be lost by canonicalization and desugaring. Optional<NullabilityKind> getNullability() const; - // TODO: Remove overload. - Optional<NullabilityKind> getNullability(const ASTContext &) const; /// Determine whether the given type can have a nullability /// specifier applied to it, i.e., if it is any kind of pointer type.
Index: clang/lib/AST/Type.cpp =================================================================== --- clang/lib/AST/Type.cpp +++ clang/lib/AST/Type.cpp @@ -4157,10 +4157,6 @@ } return std::nullopt; } -// TODO: Remove overload. -Optional<NullabilityKind> Type::getNullability(const ASTContext &) const { - return getNullability(); -} bool Type::canHaveNullability(bool ResultIfUnknown) const { QualType type = getCanonicalTypeInternal(); Index: clang/include/clang/AST/Type.h =================================================================== --- clang/include/clang/AST/Type.h +++ clang/include/clang/AST/Type.h @@ -2548,8 +2548,6 @@ /// system, not as part of the canonical type, so nullability will /// be lost by canonicalization and desugaring. Optional<NullabilityKind> getNullability() const; - // TODO: Remove overload. - Optional<NullabilityKind> getNullability(const ASTContext &) const; /// Determine whether the given type can have a nullability /// specifier applied to it, i.e., if it is any kind of pointer type.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits