Skip to content

Commit dd2a256

Browse files
committed
Remove the unused function declaration and minor tweaks
1 parent 17ef365 commit dd2a256

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,15 +1977,6 @@ class ASTContext : public RefCountedBase<ASTContext> {
19771977
/// the integer type corresponding to size_t.
19781978
QualType getSignedSizeType() const;
19791979

1980-
/// Return the unique type for "ptrdiff_t" (C99 7.17) defined in
1981-
/// <stddef.h>. Pointer - pointer requires this (C99 6.5.6p9).
1982-
QualType getPointerDiffType() const;
1983-
1984-
/// Return the unique unsigned counterpart of "ptrdiff_t"
1985-
/// integer type. The standard (C11 7.21.6.1p7) refers to this type
1986-
/// in the definition of %tu format specifier.
1987-
QualType getUnsignedPointerDiffType() const;
1988-
19891980
/// Return the unique type for "intmax_t" (C99 7.18.1.5), defined in
19901981
/// <stdint.h>.
19911982
CanQualType getIntMaxType() const;
@@ -2025,6 +2016,15 @@ class ASTContext : public RefCountedBase<ASTContext> {
20252016
/// as defined by the target.
20262017
QualType getUIntPtrType() const;
20272018

2019+
/// Return the unique type for "ptrdiff_t" (C99 7.17) defined in
2020+
/// <stddef.h>. Pointer - pointer requires this (C99 6.5.6p9).
2021+
QualType getPointerDiffType() const;
2022+
2023+
/// Return the unique unsigned counterpart of "ptrdiff_t"
2024+
/// integer type. The standard (C11 7.21.6.1p7) refers to this type
2025+
/// in the definition of %tu format specifier.
2026+
QualType getUnsignedPointerDiffType() const;
2027+
20282028
/// Return the unique type for "pid_t" defined in
20292029
/// <sys/types.h>. We need this to compute the correct type for vfork().
20302030
QualType getProcessIDType() const;

clang/include/clang/AST/Type.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8092,16 +8092,15 @@ class PredefinedSugarType final : public Type {
80928092

80938093
public:
80948094
bool isSugared() const { return true; }
8095+
80958096
QualType desugar() const { return getCanonicalTypeInternal(); }
8097+
80968098
PredefinedSugarKind getKind() const {
80978099
return PredefinedSugarKind(PredefinedSugarTypeBits.Kind);
80988100
}
80998101

81008102
StringRef getName() const;
81018103

8102-
static QualType makePredefinedSugarType(ASTContext &Ctx,
8103-
PredefinedSugarKind KD);
8104-
81058104
static bool classof(const Type *T) {
81068105
return T->getTypeClass() == PredefinedSugar;
81078106
}

clang/include/clang/AST/TypeProperties.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,10 @@ let Class = DependentBitIntType in {
10301030
}
10311031

10321032
let Class = PredefinedSugarType in {
1033-
def : Property<"k", UInt32> {
1033+
def : Property<"kind", UInt32> {
10341034
let Read = [{ static_cast<uint32_t>(node->getKind()) }];
10351035
}
10361036
def : Creator<[{
1037-
return ctx.getPredefinedSugarType(k);
1037+
return ctx.getPredefinedSugarType(kind);
10381038
}]>;
10391039
}

0 commit comments

Comments
 (0)