diff options
| author | Richard Trieu <rtrieu@google.com> | 2014-05-05 22:06:50 +0000 | 
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2014-05-05 22:06:50 +0000 | 
| commit | 2664dc184ea1f26f1f58f13f07b444abb242f9a4 (patch) | |
| tree | a1ef02dee12f452189493f55cff74ec0465d0249 | |
| parent | fbed044fa3873199bc91f30a4619ec22a8ddf781 (diff) | |
| download | bcm5719-llvm-2664dc184ea1f26f1f58f13f07b444abb242f9a4.tar.gz bcm5719-llvm-2664dc184ea1f26f1f58f13f07b444abb242f9a4.zip  | |
During parsing, update the range of the Declarator to include the identifier.
llvm-svn: 208011
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 51b99060a14..42369bfbc92 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -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()) {  | 

