Set the end range location of a FunctionDecl to the right paren.

llvm-svn: 74195
This commit is contained in:
Argyrios Kyrtzidis 2009-06-25 18:22:24 +00:00
parent 0e5ecbda69
commit 16eecc4245
1 changed files with 3 additions and 0 deletions

View File

@ -2385,6 +2385,9 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
&& !NewFD->isInvalidDecl())
RegisterLocallyScopedExternCDecl(NewFD, PrevDecl, S);
// Set this FunctionDecl's range up to the right paren.
NewFD->setLocEnd(D.getSourceRange().getEnd());
return NewFD;
}