Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/ASTContext.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 11,955 Lines • ▼ Show 20 Lines | void ASTContext::forEachMultiversionedFunctionVersion( | ||||
FD = FD->getMostRecentDecl(); | FD = FD->getMostRecentDecl(); | ||||
// FIXME: The order of traversal here matters and depends on the order of | // FIXME: The order of traversal here matters and depends on the order of | ||||
// lookup results, which happens to be (mostly) oldest-to-newest, but we | // lookup results, which happens to be (mostly) oldest-to-newest, but we | ||||
// shouldn't rely on that. | // shouldn't rely on that. | ||||
for (auto *CurDecl : | for (auto *CurDecl : | ||||
FD->getDeclContext()->getRedeclContext()->lookup(FD->getDeclName())) { | FD->getDeclContext()->getRedeclContext()->lookup(FD->getDeclName())) { | ||||
FunctionDecl *CurFD = CurDecl->getAsFunction()->getMostRecentDecl(); | FunctionDecl *CurFD = CurDecl->getAsFunction()->getMostRecentDecl(); | ||||
if (CurFD && hasSameType(CurFD->getType(), FD->getType()) && | if (CurFD && hasSameType(CurFD->getType(), FD->getType()) && | ||||
!llvm::is_contained(SeenDecls, CurFD)) { | !SeenDecls.contains(CurFD)) { | ||||
SeenDecls.insert(CurFD); | SeenDecls.insert(CurFD); | ||||
Pred(CurFD); | Pred(CurFD); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
CallingConv ASTContext::getDefaultCallingConvention(bool IsVariadic, | CallingConv ASTContext::getDefaultCallingConvention(bool IsVariadic, | ||||
bool IsCXXMethod, | bool IsCXXMethod, | ||||
▲ Show 20 Lines • Show All 1,629 Lines • Show Last 20 Lines |