forked from OSchip/llvm-project
parent
9fb93576e6
commit
6a6ff05b57
|
@ -1624,7 +1624,7 @@ ClangASTType::GetFunctionReturnType () const
|
|||
QualType qual_type(GetCanonicalQualType());
|
||||
const FunctionProtoType* func = dyn_cast<FunctionProtoType>(qual_type.getTypePtr());
|
||||
if (func)
|
||||
return ClangASTType(m_ast, func->getResultType());
|
||||
return ClangASTType(m_ast, func->getReturnType());
|
||||
}
|
||||
return ClangASTType();
|
||||
}
|
||||
|
@ -4714,7 +4714,7 @@ ClangASTType::AddMethodToCXXRecordType (const char *name,
|
|||
cxx_method_decl = CXXConversionDecl::Create (*m_ast,
|
||||
cxx_record_decl,
|
||||
SourceLocation(),
|
||||
DeclarationNameInfo (m_ast->DeclarationNames.getCXXConversionFunctionName (m_ast->getCanonicalType (function_type->getResultType())), SourceLocation()),
|
||||
DeclarationNameInfo (m_ast->DeclarationNames.getCXXConversionFunctionName (m_ast->getCanonicalType (function_type->getReturnType())), SourceLocation()),
|
||||
method_qual_type,
|
||||
NULL, // TypeSourceInfo *
|
||||
is_inline,
|
||||
|
@ -5142,7 +5142,7 @@ ClangASTType::AddMethodToObjCObjectType (const char *name, // the full symbol n
|
|||
SourceLocation(), // beginLoc,
|
||||
SourceLocation(), // endLoc,
|
||||
method_selector,
|
||||
method_function_prototype->getResultType(),
|
||||
method_function_prototype->getReturnType(),
|
||||
NULL, // TypeSourceInfo *ResultTInfo,
|
||||
GetDeclContextForType (),
|
||||
name[0] == '-',
|
||||
|
|
Loading…
Reference in New Issue