• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:DC

95       const Decl *DC = cast_or_null<Decl>(S.getCurObjCLexicalContext());
96 if (DC && !DC->hasAttr<UnusedAttr>())
2086 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr;
2087 while (DC) {
2088 if (isa<CXXRecordDecl>(DC)) {
2089 LookupQualifiedName(R, DC);
2105 DC == CurMethod->getParent() && !isDefaultArgument;
2140 DC = DC->getLookupParent();
2350 if (DeclContext *DC = computeDeclContext(SS, false)) {
2351 if (RequireCompleteDeclContext(SS, DC))
2561 DeclContext *DC = computeDeclContext(SS, false);
2562 if (!DC)
2566 if (RequireCompleteDeclContext(SS, DC))
2570 LookupQualifiedName(R, DC);
2581 << NameInfo.getName() << DC << SS.getRange();
3103 ValueDecl *var, DeclContext *DC);
4395 DeclContext *DC = nullptr;
4397 DC = LSI->CallOperator;
4399 DC = CRSI->TheCapturedDecl;
4401 DC = BSI->TheDecl;
4402 if (DC) {
4403 if (DC->containsDecl(TT->getDecl()))
5536 DeclContext *DC = nullptr;
5538 DC = LSI->CallOperator;
5540 DC = CRSI->TheCapturedDecl;
5542 DC = BSI->TheDecl;
5543 if (DC) {
5544 if (DC->containsDecl(TT->getDecl()))
6196 const DeclContext *const DC = S.getFunctionLevelDeclContext();
6197 if (!DC || !DC->getParent())
6202 if (const auto *MD = dyn_cast<CXXMethodDecl>(DC))
6206 if (const auto *RD = dyn_cast<CXXRecordDecl>(DC))
11645 DeclContext *DC = CurContext;
11646 if (isa<FunctionDecl>(DC))
11647 DC = DC->getParent();
11648 if (auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(DC)) {
12325 DeclContext *DC = S.CurContext, *Prev = nullptr;
12327 while (DC) {
12330 if (auto *FD = dyn_cast<FunctionDecl>(DC))
12334 if (DC == var->getDeclContext())
12336 Prev = DC;
12337 DC = DC->getParent();
12341 DC = Prev;
12342 return (isa<BlockDecl>(DC) ? NCCK_Block : NCCK_Lambda);
12464 if (const DeclContext *DC = S.getFunctionLevelDeclContext()) {
12465 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(DC)) {
16818 ValueDecl *var, DeclContext *DC) {
16890 static DeclContext *getParentOfCapturingContextOrNull(DeclContext *DC, VarDecl *Var,
16893 if (isa<BlockDecl>(DC) || isa<CapturedDecl>(DC) || isLambdaCallOperator(DC))
16894 return getLambdaAwareParentOfDeclContext(DC);
16897 diagnoseUncapturableValueReference(S, Loc, Var, DC);
17192 // declaration, but its parent DC is the lambda class.
17197 DeclContext *DC = CurContext;
17205 DC = getLambdaAwareParentOfDeclContext(DC);
17213 if (VarDC == DC) return true;
17228 // (the DC) and ensure that all intervening capturing-entities
17240 DeclContext *ParentDC = getParentOfCapturingContextOrNull(DC, Var,
17269 if (isGenericLambdaCallOperatorSpecialization(DC)) {
17278 diagnoseUncapturableValueReference(*this, ExprLoc, Var, DC);
17371 DC = ParentDC;
17373 } while (!VarDC->Equals(DC));