[clang] fbee2dd - [clang][nullability] Remove old overload for getNullability()
Dani Ferreira Franco Moura via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 23 08:51:04 PST 2022
Author: Dani Ferreira Franco Moura
Date: 2022-12-23T16:50:58Z
New Revision: fbee2dd9a4ba226590d16546728e436ad9e5ed6c
URL: https://github.com/llvm/llvm-project/commit/fbee2dd9a4ba226590d16546728e436ad9e5ed6c
DIFF: https://github.com/llvm/llvm-project/commit/fbee2dd9a4ba226590d16546728e436ad9e5ed6c.diff
LOG: [clang][nullability] Remove old overload for getNullability()
Reviewed By: gribozavr2
Differential Revision: https://reviews.llvm.org/D140626
Added:
Modified:
clang/include/clang/AST/Type.h
clang/lib/AST/Type.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 2407400b31315..8f7a4836381ae 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -2548,8 +2548,6 @@ class alignas(8) Type : public ExtQualsTypeCommonBase {
/// 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.
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 0b551ae9af432..54bfb023237b0 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -4157,10 +4157,6 @@ Optional<NullabilityKind> Type::getNullability() const {
}
return std::nullopt;
}
-// TODO: Remove overload.
-Optional<NullabilityKind> Type::getNullability(const ASTContext &) const {
- return getNullability();
-}
bool Type::canHaveNullability(bool ResultIfUnknown) const {
QualType type = getCanonicalTypeInternal();
More information about the cfe-commits
mailing list