forked from OSchip/llvm-project
Set the end range location of a FunctionDecl to the right paren.
llvm-svn: 74195
This commit is contained in:
parent
0e5ecbda69
commit
16eecc4245
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue