зеркало из https://github.com/microsoft/clang-1.git
Set proper location info on objc method arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f97e8fa296
Коммит
7db638d122
|
@ -1431,8 +1431,7 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration(
|
|||
|
||||
llvm::SmallVector<ParmVarDecl*, 16> Params;
|
||||
|
||||
for (unsigned i = 0; i < Sel.getNumArgs(); i++) {
|
||||
// FIXME: arg->AttrList must be stored too!
|
||||
for (unsigned i = 0, e = Sel.getNumArgs(); i != e; ++i) {
|
||||
QualType ArgType, UnpromotedArgType;
|
||||
|
||||
if (ArgInfo[i].Type == 0) {
|
||||
|
@ -1445,13 +1444,12 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration(
|
|||
|
||||
ParmVarDecl* Param;
|
||||
if (ArgType == UnpromotedArgType)
|
||||
Param = ParmVarDecl::Create(Context, ObjCMethod,
|
||||
SourceLocation(/*FIXME*/),
|
||||
Param = ParmVarDecl::Create(Context, ObjCMethod, ArgInfo[i].NameLoc,
|
||||
ArgInfo[i].Name, ArgType,
|
||||
VarDecl::None, 0);
|
||||
else
|
||||
Param = OriginalParmVarDecl::Create(Context, ObjCMethod,
|
||||
SourceLocation(/*FIXME*/),
|
||||
ArgInfo[i].NameLoc,
|
||||
ArgInfo[i].Name, ArgType,
|
||||
UnpromotedArgType,
|
||||
VarDecl::None, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче