From 1dd0da3ff9fc2864b8ef3e19278281afff81d377 Mon Sep 17 00:00:00 2001 From: Argiris Kirtzidis Date: Thu, 25 Jun 2009 18:22:24 +0000 Subject: [PATCH] Set the end range location of a FunctionDecl to the right paren. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74195 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index c319f7f96..d4b1566d5 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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; } -- 2.11.4.GIT