Skip to content

Commit fbee2dd

Browse files
committed
[clang][nullability] Remove old overload for getNullability()
Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D140626
1 parent 86802fd commit fbee2dd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

clang/include/clang/AST/Type.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,8 +2548,6 @@ class alignas(8) Type : public ExtQualsTypeCommonBase {
25482548
/// system, not as part of the canonical type, so nullability will
25492549
/// be lost by canonicalization and desugaring.
25502550
Optional<NullabilityKind> getNullability() const;
2551-
// TODO: Remove overload.
2552-
Optional<NullabilityKind> getNullability(const ASTContext &) const;
25532551

25542552
/// Determine whether the given type can have a nullability
25552553
/// specifier applied to it, i.e., if it is any kind of pointer type.

clang/lib/AST/Type.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4157,10 +4157,6 @@ Optional<NullabilityKind> Type::getNullability() const {
41574157
}
41584158
return std::nullopt;
41594159
}
4160-
// TODO: Remove overload.
4161-
Optional<NullabilityKind> Type::getNullability(const ASTContext &) const {
4162-
return getNullability();
4163-
}
41644160

41654161
bool Type::canHaveNullability(bool ResultIfUnknown) const {
41664162
QualType type = getCanonicalTypeInternal();

0 commit comments

Comments
 (0)