Skip to content

Commit fdcc1b3

Browse files
authored
[clang] NFC: fix and add some comments missing from #147835 (#154395)
1 parent 86e23af commit fdcc1b3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ class TypeDecl : public NamedDecl {
35263526
public:
35273527
// Low-level accessor. If you just want the type defined by this node,
35283528
// check out ASTContext::getTypeDeclType or one of
3529-
// ASTContext::getTypedefType, ASTContext::getRecordType, etc. if you
3529+
// ASTContext::getTypedefType, ASTContext::getTagType, etc. if you
35303530
// already know the specific kind of node this is.
35313531
const Type *getTypeForDecl() const {
35323532
assert(!isa<TagDecl>(this));

clang/include/clang/AST/Type.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6401,6 +6401,9 @@ class TagType : public TypeWithKeyword {
64016401
bool IsInjected, const Type *CanonicalType);
64026402

64036403
public:
6404+
// FIXME: Temporarily renamed from `getDecl` in order to facilitate
6405+
// rebasing, due to change in behaviour. This should be renamed back
6406+
// to `getDecl` once the change is settled.
64046407
TagDecl *getOriginalDecl() const { return decl; }
64056408

64066409
NestedNameSpecifier getQualifier() const;
@@ -6466,6 +6469,9 @@ class RecordType final : public TagType {
64666469
using TagType::TagType;
64676470

64686471
public:
6472+
// FIXME: Temporarily renamed from `getDecl` in order to facilitate
6473+
// rebasing, due to change in behaviour. This should be renamed back
6474+
// to `getDecl` once the change is settled.
64696475
RecordDecl *getOriginalDecl() const {
64706476
return reinterpret_cast<RecordDecl *>(TagType::getOriginalDecl());
64716477
}
@@ -6483,6 +6489,9 @@ class EnumType final : public TagType {
64836489
using TagType::TagType;
64846490

64856491
public:
6492+
// FIXME: Temporarily renamed from `getDecl` in order to facilitate
6493+
// rebasing, due to change in behaviour. This should be renamed back
6494+
// to `getDecl` once the change is settled.
64866495
EnumDecl *getOriginalDecl() const {
64876496
return reinterpret_cast<EnumDecl *>(TagType::getOriginalDecl());
64886497
}
@@ -6515,6 +6524,9 @@ class InjectedClassNameType final : public TagType {
65156524
bool IsInjected, const Type *CanonicalType);
65166525

65176526
public:
6527+
// FIXME: Temporarily renamed from `getDecl` in order to facilitate
6528+
// rebasing, due to change in behaviour. This should be renamed back
6529+
// to `getDecl` once the change is settled.
65186530
CXXRecordDecl *getOriginalDecl() const {
65196531
return reinterpret_cast<CXXRecordDecl *>(TagType::getOriginalDecl());
65206532
}

0 commit comments

Comments
 (0)