During parsing, update the range of the Declarator to include the identifier.
llvm-svn: 208011
This commit is contained in:
parent
fbed044fa3
commit
2664dc184e
|
@ -4785,6 +4785,7 @@ void Parser::ParseDirectDeclarator(Declarator &D) {
|
|||
"There's a C++-specific check for tok::identifier above");
|
||||
assert(Tok.getIdentifierInfo() && "Not an identifier?");
|
||||
D.SetIdentifier(Tok.getIdentifierInfo(), Tok.getLocation());
|
||||
D.SetRangeEnd(Tok.getLocation());
|
||||
ConsumeToken();
|
||||
goto PastIdentifier;
|
||||
} else if (Tok.is(tok::identifier) && D.diagnoseIdentifier()) {
|
||||
|
|
Loading…
Reference in New Issue