diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 18:22:24 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 18:22:24 +0000 |
commit | 16eecc4245fefcb3f45ebb1dcaae29f024ce5d07 (patch) | |
tree | 042aedc2380dc6b73ba848b5527a9e79c8154d28 | |
parent | 0e5ecbda6992001f6506dfe42a60695d06750863 (diff) | |
download | bcm5719-llvm-16eecc4245fefcb3f45ebb1dcaae29f024ce5d07.tar.gz bcm5719-llvm-16eecc4245fefcb3f45ebb1dcaae29f024ce5d07.zip |
Set the end range location of a FunctionDecl to the right paren.
llvm-svn: 74195
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index c319f7f9698..d4b1566d51b 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -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; } |