From 16eecc4245fefcb3f45ebb1dcaae29f024ce5d07 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 25 Jun 2009 18:22:24 +0000 Subject: [PATCH] Set the end range location of a FunctionDecl to the right paren. llvm-svn: 74195 --- clang/lib/Sema/SemaDecl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index c319f7f9698d..d4b1566d51bb 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; }