@@ -52,8 +52,7 @@ class NestedNameSpecifier : public llvm::FoldingSetNode {
52
52
enum StoredSpecifierKind {
53
53
StoredIdentifier = 0 ,
54
54
StoredDecl = 1 ,
55
- StoredTypeSpec = 2 ,
56
- StoredTypeSpecWithTemplate = 3
55
+ StoredTypeSpec = 2
57
56
};
58
57
59
58
// / The nested name specifier that precedes this nested name
@@ -89,10 +88,6 @@ class NestedNameSpecifier : public llvm::FoldingSetNode {
89
88
// / A type, stored as a Type*.
90
89
TypeSpec,
91
90
92
- // / A type that was preceded by the 'template' keyword,
93
- // / stored as a Type*.
94
- TypeSpecWithTemplate,
95
-
96
91
// / The global specifier '::'. There is no stored value.
97
92
Global,
98
93
@@ -137,9 +132,8 @@ class NestedNameSpecifier : public llvm::FoldingSetNode {
137
132
const NamespaceAliasDecl *Alias);
138
133
139
134
// / Builds a nested name specifier that names a type.
140
- static NestedNameSpecifier *Create (const ASTContext &Context,
141
- NestedNameSpecifier *Prefix,
142
- bool Template, const Type *T);
135
+ static NestedNameSpecifier *
136
+ Create (const ASTContext &Context, NestedNameSpecifier *Prefix, const Type *T);
143
137
144
138
// / Builds a specifier that consists of just an identifier.
145
139
// /
@@ -194,8 +188,7 @@ class NestedNameSpecifier : public llvm::FoldingSetNode {
194
188
195
189
// / Retrieve the type stored in this nested name specifier.
196
190
const Type *getAsType () const {
197
- if (Prefix.getInt () == StoredTypeSpec ||
198
- Prefix.getInt () == StoredTypeSpecWithTemplate)
191
+ if (Prefix.getInt () == StoredTypeSpec)
199
192
return (const Type *)Specifier;
200
193
201
194
return nullptr ;
@@ -401,13 +394,10 @@ class NestedNameSpecifierLocBuilder {
401
394
// / \param Context The AST context in which this nested-name-specifier
402
395
// / resides.
403
396
// /
404
- // / \param TemplateKWLoc The location of the 'template' keyword, if present.
405
- // /
406
397
// / \param TL The TypeLoc that describes the type preceding the '::'.
407
398
// /
408
399
// / \param ColonColonLoc The location of the trailing '::'.
409
- void Extend (ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
410
- SourceLocation ColonColonLoc);
400
+ void Extend (ASTContext &Context, TypeLoc TL, SourceLocation ColonColonLoc);
411
401
412
402
// / Extend the current nested-name-specifier by another
413
403
// / nested-name-specifier component of the form 'identifier::'.
0 commit comments