Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Sema/SemaLookup.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
if (II) { | if (II) { | ||||
if (getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { | if (getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { | ||||
if (II == getASTContext().getMakeIntegerSeqName()) { | if (II == getASTContext().getMakeIntegerSeqName()) { | ||||
R.addDecl(getASTContext().getMakeIntegerSeqDecl()); | R.addDecl(getASTContext().getMakeIntegerSeqDecl()); | ||||
return true; | return true; | ||||
} else if (II == getASTContext().getTypePackElementName()) { | } else if (II == getASTContext().getTypePackElementName()) { | ||||
R.addDecl(getASTContext().getTypePackElementDecl()); | R.addDecl(getASTContext().getTypePackElementDecl()); | ||||
return true; | return true; | ||||
} else if (II == getASTContext().getDecayName()) { | |||||
R.addDecl(getASTContext().getDecayDecl()); | |||||
return true; | |||||
} | } | ||||
} | } | ||||
// Check if this is an OpenCL Builtin, and if so, insert its overloads. | // Check if this is an OpenCL Builtin, and if so, insert its overloads. | ||||
if (getLangOpts().OpenCL && getLangOpts().DeclareOpenCLBuiltins) { | if (getLangOpts().OpenCL && getLangOpts().DeclareOpenCLBuiltins) { | ||||
auto Index = isOpenCLBuiltin(II->getName()); | auto Index = isOpenCLBuiltin(II->getName()); | ||||
if (Index.first) { | if (Index.first) { | ||||
InsertOCLBuiltinDeclarationsFromTable(*this, R, II, Index.first - 1, | InsertOCLBuiltinDeclarationsFromTable(*this, R, II, Index.first - 1, | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |