@@ -1731,7 +1731,7 @@ class ImplicitParamDecl : public VarDecl {
1731
1731
static ImplicitParamDecl *CreateDeserialized (ASTContext &C, unsigned ID);
1732
1732
1733
1733
ImplicitParamDecl (ASTContext &C, DeclContext *DC, SourceLocation IdLoc,
1734
- IdentifierInfo *Id, QualType Type,
1734
+ const IdentifierInfo *Id, QualType Type,
1735
1735
ImplicitParamKind ParamKind)
1736
1736
: VarDecl(ImplicitParam, C, DC, IdLoc, IdLoc, Id, Type,
1737
1737
/* TInfo=*/ nullptr , SC_None) {
@@ -1765,7 +1765,7 @@ class ParmVarDecl : public VarDecl {
1765
1765
1766
1766
protected:
1767
1767
ParmVarDecl (Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
1768
- SourceLocation IdLoc, IdentifierInfo *Id, QualType T,
1768
+ SourceLocation IdLoc, const IdentifierInfo *Id, QualType T,
1769
1769
TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg)
1770
1770
: VarDecl(DK, C, DC, StartLoc, IdLoc, Id, T, TInfo, S) {
1771
1771
assert (ParmVarDeclBits.HasInheritedDefaultArg == false );
@@ -1777,10 +1777,10 @@ class ParmVarDecl : public VarDecl {
1777
1777
1778
1778
public:
1779
1779
static ParmVarDecl *Create (ASTContext &C, DeclContext *DC,
1780
- SourceLocation StartLoc,
1781
- SourceLocation IdLoc, IdentifierInfo *Id,
1782
- QualType T, TypeSourceInfo *TInfo,
1783
- StorageClass S, Expr *DefArg);
1780
+ SourceLocation StartLoc, SourceLocation IdLoc,
1781
+ const IdentifierInfo *Id, QualType T ,
1782
+ TypeSourceInfo *TInfo, StorageClass S ,
1783
+ Expr *DefArg);
1784
1784
1785
1785
static ParmVarDecl *CreateDeserialized (ASTContext &C, unsigned ID);
1786
1786
@@ -3095,7 +3095,7 @@ class FieldDecl : public DeclaratorDecl, public Mergeable<FieldDecl> {
3095
3095
3096
3096
protected:
3097
3097
FieldDecl (Kind DK, DeclContext *DC, SourceLocation StartLoc,
3098
- SourceLocation IdLoc, IdentifierInfo *Id, QualType T,
3098
+ SourceLocation IdLoc, const IdentifierInfo *Id, QualType T,
3099
3099
TypeSourceInfo *TInfo, Expr *BW, bool Mutable,
3100
3100
InClassInitStyle InitStyle)
3101
3101
: DeclaratorDecl(DK, DC, IdLoc, Id, T, TInfo, StartLoc), BitField(false ),
@@ -3111,7 +3111,7 @@ class FieldDecl : public DeclaratorDecl, public Mergeable<FieldDecl> {
3111
3111
3112
3112
static FieldDecl *Create (const ASTContext &C, DeclContext *DC,
3113
3113
SourceLocation StartLoc, SourceLocation IdLoc,
3114
- IdentifierInfo *Id, QualType T,
3114
+ const IdentifierInfo *Id, QualType T,
3115
3115
TypeSourceInfo *TInfo, Expr *BW, bool Mutable,
3116
3116
InClassInitStyle InitStyle);
3117
3117
@@ -3332,8 +3332,9 @@ class IndirectFieldDecl : public ValueDecl,
3332
3332
friend class ASTDeclReader ;
3333
3333
3334
3334
static IndirectFieldDecl *Create (ASTContext &C, DeclContext *DC,
3335
- SourceLocation L, IdentifierInfo *Id,
3336
- QualType T, llvm::MutableArrayRef<NamedDecl *> CH);
3335
+ SourceLocation L, const IdentifierInfo *Id,
3336
+ QualType T,
3337
+ llvm::MutableArrayRef<NamedDecl *> CH);
3337
3338
3338
3339
static IndirectFieldDecl *CreateDeserialized (ASTContext &C, unsigned ID);
3339
3340
@@ -3381,9 +3382,9 @@ class TypeDecl : public NamedDecl {
3381
3382
void anchor () override ;
3382
3383
3383
3384
protected:
3384
- TypeDecl (Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
3385
+ TypeDecl (Kind DK, DeclContext *DC, SourceLocation L, const IdentifierInfo *Id,
3385
3386
SourceLocation StartL = SourceLocation())
3386
- : NamedDecl(DK, DC, L, Id), LocStart(StartL) {}
3387
+ : NamedDecl(DK, DC, L, Id), LocStart(StartL) {}
3387
3388
3388
3389
public:
3389
3390
// Low-level accessor. If you just want the type defined by this node,
@@ -3425,7 +3426,7 @@ class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3425
3426
protected:
3426
3427
TypedefNameDecl (Kind DK, ASTContext &C, DeclContext *DC,
3427
3428
SourceLocation StartLoc, SourceLocation IdLoc,
3428
- IdentifierInfo *Id, TypeSourceInfo *TInfo)
3429
+ const IdentifierInfo *Id, TypeSourceInfo *TInfo)
3429
3430
: TypeDecl(DK, DC, IdLoc, Id, StartLoc), redeclarable_base(C),
3430
3431
MaybeModedTInfo (TInfo, 0 ) {}
3431
3432
@@ -3512,13 +3513,14 @@ class TypedefNameDecl : public TypeDecl, public Redeclarable<TypedefNameDecl> {
3512
3513
// / type specifier.
3513
3514
class TypedefDecl : public TypedefNameDecl {
3514
3515
TypedefDecl (ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
3515
- SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo)
3516
+ SourceLocation IdLoc, const IdentifierInfo *Id,
3517
+ TypeSourceInfo *TInfo)
3516
3518
: TypedefNameDecl(Typedef, C, DC, StartLoc, IdLoc, Id, TInfo) {}
3517
3519
3518
3520
public:
3519
3521
static TypedefDecl *Create (ASTContext &C, DeclContext *DC,
3520
3522
SourceLocation StartLoc, SourceLocation IdLoc,
3521
- IdentifierInfo *Id, TypeSourceInfo *TInfo);
3523
+ const IdentifierInfo *Id, TypeSourceInfo *TInfo);
3522
3524
static TypedefDecl *CreateDeserialized (ASTContext &C, unsigned ID);
3523
3525
3524
3526
SourceRange getSourceRange () const override LLVM_READONLY;
@@ -3535,14 +3537,15 @@ class TypeAliasDecl : public TypedefNameDecl {
3535
3537
TypeAliasTemplateDecl *Template;
3536
3538
3537
3539
TypeAliasDecl (ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
3538
- SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo)
3540
+ SourceLocation IdLoc, const IdentifierInfo *Id,
3541
+ TypeSourceInfo *TInfo)
3539
3542
: TypedefNameDecl(TypeAlias, C, DC, StartLoc, IdLoc, Id, TInfo),
3540
3543
Template (nullptr ) {}
3541
3544
3542
3545
public:
3543
3546
static TypeAliasDecl *Create (ASTContext &C, DeclContext *DC,
3544
3547
SourceLocation StartLoc, SourceLocation IdLoc,
3545
- IdentifierInfo *Id, TypeSourceInfo *TInfo);
3548
+ const IdentifierInfo *Id, TypeSourceInfo *TInfo);
3546
3549
static TypeAliasDecl *CreateDeserialized (ASTContext &C, unsigned ID);
3547
3550
3548
3551
SourceRange getSourceRange () const override LLVM_READONLY;
0 commit comments