forked from OSchip/llvm-project
parent
f928534ef2
commit
9012a09b1c
|
@ -853,12 +853,14 @@ public:
|
|||
assert(Other.Kind == IK_Identifier && "Cannot copy non-identifiers");
|
||||
}
|
||||
|
||||
/// \brief Destroy this unqualified-id.
|
||||
~UnqualifiedId() { clear(); }
|
||||
|
||||
/// \brief Clear out this unqualified-id, setting it to default (invalid)
|
||||
/// state.
|
||||
void clear();
|
||||
void clear() {
|
||||
Kind = IK_Identifier;
|
||||
Identifier = 0;
|
||||
StartLocation = SourceLocation();
|
||||
EndLocation = SourceLocation();
|
||||
}
|
||||
|
||||
/// \brief Determine whether this unqualified-id refers to a valid name.
|
||||
bool isValid() const { return StartLocation.isValid(); }
|
||||
|
|
|
@ -935,13 +935,6 @@ bool DeclSpec::isMissingDeclaratorOk() {
|
|||
StorageClassSpec != DeclSpec::SCS_typedef;
|
||||
}
|
||||
|
||||
void UnqualifiedId::clear() {
|
||||
Kind = IK_Identifier;
|
||||
Identifier = 0;
|
||||
StartLocation = SourceLocation();
|
||||
EndLocation = SourceLocation();
|
||||
}
|
||||
|
||||
void UnqualifiedId::setOperatorFunctionId(SourceLocation OperatorLoc,
|
||||
OverloadedOperatorKind Op,
|
||||
SourceLocation SymbolLocations[3]) {
|
||||
|
|
Loading…
Reference in New Issue