| commit | 16eecc4245fefcb3f45ebb1dcaae29f024ce5d07 | [log] [tgz] |
|---|---|---|
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Jun 25 18:22:24 2009 +0000 |
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Jun 25 18:22:24 2009 +0000 |
| tree | 042aedc2380dc6b73ba848b5527a9e79c8154d28 | |
| parent | 0e5ecbda6992001f6506dfe42a60695d06750863 [diff] [blame] |
Set the end range location of a FunctionDecl to the right paren. llvm-svn: 74195
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index c319f7f..d4b1566 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2385,6 +2385,9 @@ && !NewFD->isInvalidDecl()) RegisterLocallyScopedExternCDecl(NewFD, PrevDecl, S); + // Set this FunctionDecl's range up to the right paren. + NewFD->setLocEnd(D.getSourceRange().getEnd()); + return NewFD; }