Searched defs:Ctx (Results 251 - 275 of 286) sorted by relevance

<<1112

/external/clang/include/clang/AST/
H A DDeclObjC.h49 void set(void *const* InList, unsigned Elts, ASTContext &Ctx);
60 void set(T* const* InList, unsigned Elts, ASTContext &Ctx) { argument
61 ObjCListBase::set(reinterpret_cast<void*const*>(InList), Elts, Ctx); local
89 const SourceLocation *Locs, ASTContext &Ctx);
2341 IdentifierInfo *getDefaultSynthIvarName(ASTContext &Ctx) const;
H A DExpr.h235 ASTContext &Ctx) const;
268 LValueClassification ClassifyLValue(ASTContext &Ctx) const;
297 isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc = nullptr) const;
374 Classification Classify(ASTContext &Ctx) const {
375 return ClassifyImpl(Ctx, nullptr);
386 Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{ argument
387 return ClassifyImpl(Ctx, &Loc);
425 Classification ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const;
485 bool isIntegerConstantExpr(llvm::APSInt &Result, const ASTContext &Ctx,
488 bool isIntegerConstantExpr(const ASTContext &Ctx,
3484 getShuffleMaskIdx(const ASTContext &Ctx, unsigned N) const argument
[all...]
/external/clang/lib/AST/
H A DDecl.cpp1343 const DeclContext *Ctx = getDeclContext(); local
1345 if (Ctx->isFunctionOrMethod()) {
1354 while (Ctx && isa<NamedDecl>(Ctx)) {
1355 Contexts.push_back(Ctx);
1356 Ctx = Ctx->getParent();
2426 ASTContext &Ctx = getASTContext(); local
2427 if (Ctx.getLangOpts().SizedDeallocation &&
2428 Ctx
2441 ASTContext &Ctx = getASTContext(); local
[all...]
H A DExpr.cpp213 static void computeDeclRefDependence(const ASTContext &Ctx, NamedDecl *D, argument
270 if ((Ctx.getLangOpts().CPlusPlus11 ?
271 Var->getType()->isLiteralType(Ctx) :
306 void DeclRefExpr::computeDependence(const ASTContext &Ctx) { argument
310 computeDeclRefDependence(Ctx, getDecl(), getType(), TypeDependent,
340 DeclRefExpr::DeclRefExpr(const ASTContext &Ctx, argument
374 computeDependence(Ctx);
548 const DeclContext *Ctx = FD->getDeclContext(); local
549 while (Ctx && isa<NamedDecl>(Ctx)) {
2504 IgnoreParenNoopCasts(ASTContext &Ctx) argument
2672 isConstantInitializer(ASTContext &Ctx, bool IsForRef, const Expr **Culprit) const argument
3087 hasNonTrivialCall(ASTContext &Ctx) argument
3099 isNullPointerConstant(ASTContext &Ctx, NullPointerConstantValueDependence NPC) const argument
[all...]
/external/clang/lib/Analysis/
H A DCFG.cpp1696 static bool CanThrow(Expr *E, ASTContext &Ctx) { argument
1707 Proto->isNothrow(Ctx))
3013 ASTContext &Ctx) {
3022 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx);
3032 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx);
3010 shouldAddCase(bool &switchExclusivelyCovered, const Expr::EvalResult *switchCond, const CaseStmt *CS, ASTContext &Ctx) argument
H A DThreadSafety.cpp953 Context Ctx; // The map with which Exp should be interpreted. member in struct:LocalVariableMap::VarDefinition
960 : Dec(D), Exp(E), Ref(0), Ctx(C)
965 : Dec(D), Exp(nullptr), Ref(R), Ctx(C)
982 const VarDefinition* lookup(const NamedDecl *D, Context Ctx) { argument
983 const unsigned *i = Ctx.lookup(D);
992 /// modifies Ctx to hold the context of the return Expr.
993 const Expr* lookupExpr(const NamedDecl *D, Context &Ctx) {
994 const unsigned *P = Ctx.lookup(D);
1001 Ctx = VarDefinitions[i].Ctx;
1080 addDefinition(const NamedDecl *D, const Expr *Exp, Context Ctx) argument
1089 addReference(const NamedDecl *D, unsigned i, Context Ctx) argument
1098 updateDefinition(const NamedDecl *D, Expr *Exp, Context Ctx) argument
1111 clearDefinition(const NamedDecl *D, Context Ctx) argument
1121 removeDefinition(const NamedDecl *D, Context Ctx) argument
1147 LocalVariableMap::Context Ctx; member in class:VarMapBuilder
[all...]
/external/clang/lib/CodeGen/
H A DCGDebugInfo.cpp608 llvm::DIDescriptor Ctx) {
629 Tag, RDName, Ctx, DefUnit, Line, 0, 0, 0, FullName);
607 getOrCreateRecordFwdDecl(const RecordType *Ty, llvm::DIDescriptor Ctx) argument
H A DCGExpr.cpp1641 static void setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E, argument
1644 if (Ctx.getLangOpts().getGC() == LangOptions::NonGC)
1678 setObjCGCLValueClass(Ctx, Exp->getSubExpr(), LV, IsMemberAccess);
1683 setObjCGCLValueClass(Ctx, Exp->getSubExpr(), LV, IsMemberAccess);
1697 setObjCGCLValueClass(Ctx, Exp->getResultExpr(), LV);
1702 setObjCGCLValueClass(Ctx, Exp->getSubExpr(), LV, IsMemberAccess);
1707 setObjCGCLValueClass(Ctx, Exp->getSubExpr(), LV, IsMemberAccess);
1712 setObjCGCLValueClass(Ctx, Exp->getSubExpr(), LV, IsMemberAccess);
1717 setObjCGCLValueClass(Ctx, Exp->getBase(), LV);
1730 setObjCGCLValueClass(Ctx, Ex
[all...]
H A DCodeGenModule.cpp3329 llvm::LLVMContext &Ctx = TheModule.getContext(); local
3332 llvm::MDString::get(Ctx, Version)
3334 IdentMetadata->addOperand(llvm::MDNode::get(Ctx, IdentNode));
3349 llvm::LLVMContext &Ctx = TheModule.getContext(); local
3351 llvm::MDString::get(Ctx, getCodeGenOpts().CoverageFile);
3355 llvm::MDNode *N = llvm::MDNode::get(Ctx, node);
H A DItaniumCXXABI.cpp1459 ASTContext &Ctx = getContext(); local
1460 QualType SizeTy = Ctx.getSizeType();
1461 CharUnits SizeSize = Ctx.getTypeSizeInChars(SizeTy);
1465 std::max(SizeSize, Ctx.getTypeAlignInChars(ElementType));
H A DMicrosoftCXXABI.cpp1671 ASTContext &Ctx = getContext(); local
1672 return std::max(Ctx.getTypeSizeInChars(Ctx.getSizeType()),
1673 Ctx.getTypeAlignInChars(type));
H A DTargetInfo.cpp3547 auto &Ctx = CGF.getContext(); local
3589 if (AllocatedGPR && !IsIndirect && Ctx.getTypeAlign(Ty) > 64) {
3590 int Align = Ctx.getTypeAlign(Ty) / 8;
3638 bool IsHFA = isHomogeneousAggregate(Ty, Base, Ctx, &NumMembers);
3650 if (CGF.CGM.getDataLayout().isBigEndian() && Ctx.getTypeSize(Base) < 128)
3651 Offset = 16 - Ctx.getTypeSize(Base) / 8;
3670 Ctx.getTypeSize(Ty) < (BeAlign * 8)) {
3671 int Offset = BeAlign - Ctx.getTypeSize(Ty) / 8;
3696 if (!IsIndirect && Ctx.getTypeAlign(Ty) > 64) {
3697 int Align = Ctx
4772 llvm::LLVMContext &Ctx = M->getContext(); local
6207 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); local
[all...]
H A DCGObjCMac.cpp199 ASTContext &Ctx = CGM.getContext(); local
200 llvm::Type *T = Types.ConvertType(Ctx.getObjCProtoType());
237 ASTContext &Ctx = CGM.getContext(); local
240 CanQualType IdType = Ctx.getCanonicalParamType(Ctx.getObjCIdType());
241 CanQualType SelType = Ctx.getCanonicalParamType(Ctx.getObjCSelType());
244 Params.push_back(Ctx.getPointerDiffType()->getCanonicalTypeUnqualified());
245 Params.push_back(Ctx.BoolTy);
255 ASTContext &Ctx local
276 ASTContext &Ctx = CGM.getContext(); local
313 ASTContext &Ctx = CGM.getContext(); local
335 ASTContext &Ctx = CGM.getContext(); local
351 ASTContext &Ctx = CGM.getContext(); local
1919 GetGCAttrTypeForType(ASTContext &Ctx, QualType FQT) argument
5018 ASTContext &Ctx = CGM.getContext(); local
5424 ASTContext &Ctx = CGM.getContext(); local
[all...]
/external/clang/lib/Sema/
H A DSemaCodeComplete.cpp911 const DeclContext *Ctx = R.Declaration->getDeclContext(); local
912 if (const NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(Ctx))
915 else if (const TagDecl *Tag = dyn_cast<TagDecl>(Ctx))
977 const DeclContext *Ctx = R.Declaration->getDeclContext(); local
978 if (const NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(Ctx))
981 else if (const TagDecl *Tag = dyn_cast<TagDecl>(Ctx))
1259 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
1262 if (Ctx)
1263 Accessible = Results.getSema().IsSimplyAccessible(ND, Ctx);
2528 CodeCompletionResult::CreateCodeCompletionString(ASTContext &Ctx, argument
5692 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
5757 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
[all...]
H A DSemaDeclAttr.cpp114 static inline bool isNSStringType(QualType T, ASTContext &Ctx) { argument
126 return ClsName == &Ctx.Idents.get("NSString") ||
127 ClsName == &Ctx.Idents.get("NSMutableString");
130 static inline bool isCFStringType(QualType T, ASTContext &Ctx) { argument
143 return RD->getIdentifier() == &Ctx.Idents.get("__CFString");
1330 const DeclContext *Ctx = D->getDeclContext()->getRedeclContext(); local
1331 if (!Ctx->isFileContext()) {
4856 Decl *Ctx,
4876 if (isDeclDeprecated(Ctx))
4887 if (isDeclUnavailable(Ctx))
4854 DoEmitAvailabilityWarning(Sema &S, DelayedDiagnostic::DDKind K, Decl *Ctx, const NamedDecl *D, StringRef Message, SourceLocation Loc, const ObjCInterfaceDecl *UnknownObjCClass, const ObjCPropertyDecl *ObjCProperty, bool ObjCPropertyAccess) argument
4921 HandleDelayedAvailabilityCheck(DelayedDiagnostic &DD, Decl *Ctx) argument
4950 Decl *Ctx = cast<Decl>(getCurLexicalContext()); local
[all...]
H A DSemaExprCXX.cpp223 if (DeclContext *Ctx = computeDeclContext(SS, EnteringContext)) {
225 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(Ctx))
311 const DeclContext *Ctx = S->getEntity(); local
312 if (const CXXRecordDecl *Class = dyn_cast_or_null<CXXRecordDecl>(Ctx))
1844 /// \param Ctx The scope in which we should search; either a class scope or the
1855 DeclContext *Ctx,
1859 LookupQualifiedName(R, Ctx);
1853 FindAllocationOverload(SourceLocation StartLoc, SourceRange Range, DeclarationName Name, MultiExprArg Args, DeclContext *Ctx, bool AllowMissing, FunctionDecl *&Operator, bool Diagnose) argument
H A DSemaLookup.cpp113 DeclContext *Ctx = S->getEntity(); local
114 if (Ctx && Ctx->isFileContext()) {
115 visit(Ctx, Ctx);
116 } else if (!Ctx || Ctx->isFunctionOrMethod()) {
782 if (DeclContext *Ctx = S->getEntity())
783 return Ctx->isFileContext();
925 DeclContext *Ctx local
1110 DeclContext *Ctx = S->getEntity(); local
1931 CollectEnclosingNamespace(Sema::AssociatedNamespaceSet &Namespaces, DeclContext *Ctx) argument
1975 DeclContext *Ctx = ClassTemplate->getDeclContext(); local
2047 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); local
2167 DeclContext *Ctx = Enum->getDeclContext(); local
2892 visitedContext(DeclContext *Ctx) argument
2896 alreadyVisitedContext(DeclContext *Ctx) argument
2974 LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, bool QualifiedNameLookup, bool InBaseClass, VisibleDeclConsumer &Consumer, VisibleDeclsRecord &Visited) argument
3218 LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, VisibleDeclConsumer &Consumer, bool IncludeGlobalScope) argument
3475 FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, bool InBaseClass) argument
3671 DeclContext *Ctx = NSI.DeclCtx; local
3821 addNameSpecifier( DeclContext *Ctx) argument
[all...]
H A DSemaStmt.cpp677 static bool ShouldDiagnoseSwitchCaseNotInEnum(const ASTContext &Ctx, argument
690 QualType EnumType = Ctx.getTypeDeclType(ED);
691 if (Ctx.hasSameUnqualifiedType(EnumType, VarType))
H A DSemaTemplate.cpp2086 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) {
2088 if (Ctx->isFileContext()) break;
2091 CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(Ctx);
5570 DeclContext *Ctx = S->getEntity(); local
5571 if (Ctx && Ctx->isExternCContext())
5575 while (Ctx
7875 DeclContext *Ctx = computeDeclContext(SS); local
7963 Diag(IILoc, DiagID) << FullRange << Name << Ctx; local
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DRetainCountChecker.cpp572 /// Ctx - The ASTContext object for the analyzed ASTs.
573 ASTContext &Ctx; member in class:__anon18230::RetainSummaryManager
666 IdentifierInfo* ClsII = &Ctx.Idents.get(Cls);
667 Selector S = isNullary ? GetNullarySelector(name, Ctx)
668 : GetUnarySelector(name, Ctx);
674 IdentifierInfo* ClsII = &Ctx.Idents.get(Cls);
675 Selector S = GetNullarySelector(nullaryName, Ctx);
681 Selector S = getKeywordSelector(Ctx, argp);
688 addMethodSummary(&Ctx.Idents.get(Cls), ObjCMethodSummaries, Summ, argp);
695 addMethodSummary(&Ctx
2315 CFRefLeakReport(CFRefBug &D, const LangOptions &LOpts, bool GCEnabled, const SummaryLogTy &Log, ExplodedNode *n, SymbolRef sym, CheckerContext &Ctx, bool IncludeAllocationLine) argument
2524 getSummaryManager(ASTContext &Ctx, bool GCEnabled) const argument
2811 GetReturnType(const Expr *RetE, ASTContext &Ctx) argument
3579 handleAutoreleaseCounts(ProgramStateRef state, ExplodedNode *Pred, const ProgramPointTag *Tag, CheckerContext &Ctx, SymbolRef Sym, RefVal V) const argument
3659 processLeaks(ProgramStateRef state, SmallVectorImpl<SymbolRef> &Leaked, CheckerContext &Ctx, ExplodedNode *Pred) const argument
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp1031 LLVMContext &Ctx = *DAG.getContext(); local
1033 Ctx, EVT::getIntegerVT(
1034 Ctx, SrcVT.getVectorElementType().getSizeInBits() * 2),
1037 EVT::getVectorVT(Ctx, SrcVT.getVectorElementType(), NumElements / 2);
/external/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp253 MCContext &Ctx; member in class:__anon25952::AArch64Operand
257 : MCParsedAsmOperand(), Kind(K), Ctx(_Ctx) {}
259 AArch64Operand(const AArch64Operand &o) : MCParsedAsmOperand(), Ctx(o.Ctx) {
1132 const MCRegisterInfo *RI = Ctx.getRegisterInfo();
1577 CreateToken(StringRef Str, bool IsSuffix, SMLoc S, MCContext &Ctx) { argument
1578 auto Op = make_unique<AArch64Operand>(k_Token, Ctx);
1588 CreateReg(unsigned RegNum, bool isVector, SMLoc S, SMLoc E, MCContext &Ctx) { argument
1589 auto Op = make_unique<AArch64Operand>(k_Register, Ctx);
1599 char ElementKind, SMLoc S, SMLoc E, MCContext &Ctx) {
1598 CreateVectorList(unsigned RegNum, unsigned Count, unsigned NumElements, char ElementKind, SMLoc S, SMLoc E, MCContext &Ctx) argument
1611 CreateVectorIndex(unsigned Idx, SMLoc S, SMLoc E, MCContext &Ctx) argument
1619 CreateImm(const MCExpr *Val, SMLoc S, SMLoc E, MCContext &Ctx) argument
1628 CreateShiftedImm(const MCExpr *Val, unsigned ShiftAmount, SMLoc S, SMLoc E, MCContext &Ctx) argument
1641 CreateCondCode(AArch64CC::CondCode Code, SMLoc S, SMLoc E, MCContext &Ctx) argument
1649 CreateFPImm(unsigned Val, SMLoc S, MCContext &Ctx) argument
1658 CreateBarrier(unsigned Val, SMLoc S, MCContext &Ctx) argument
1668 CreateSysReg(StringRef Str, SMLoc S, uint64_t FeatureBits, MCContext &Ctx) argument
1678 CreateSysCR(unsigned Val, SMLoc S, SMLoc E, MCContext &Ctx) argument
1687 CreatePrefetch(unsigned Val, SMLoc S, MCContext &Ctx) argument
1697 CreateShiftExtend(AArch64_AM::ShiftExtendType ShOp, unsigned Val, bool HasExplicitAmount, SMLoc S, SMLoc E, MCContext &Ctx) argument
2932 MCContext &Ctx = getContext(); local
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp499 CStyleCastExpr* NoTypeInfoCStyleCastExpr(ASTContext *Ctx, QualType Ty, argument
501 TypeSourceInfo *TInfo = Ctx->getTrivialTypeSourceInfo(Ty, SourceLocation());
502 return CStyleCastExpr::Create(*Ctx, Ty, VK_RValue, Kind, E, nullptr,
/external/clang/tools/c-index-test/
H A Dc-index-test.c362 static void DumpCXCommentInternal(struct CommentASTDumpingContext *Ctx, argument
368 Ctx->IndentLevel++;
369 for (i = 0, e = Ctx->IndentLevel; i != e; ++i)
530 DumpCXCommentInternal(Ctx, clang_Comment_getChild(Comment, i));
534 Ctx->IndentLevel--;
538 struct CommentASTDumpingContext Ctx; local
539 Ctx.IndentLevel = 1;
541 DumpCXCommentInternal(&Ctx, Comment);
/external/llvm/lib/MC/MCParser/
H A DAsmParser.cpp126 MCContext &Ctx; member in class:__anon25885::AsmParser
184 AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
201 MCContext &getContext() override { return Ctx; }
493 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
801 MCSymbol *Sym = Ctx.CreateTempSymbol();
896 Ctx.GetDirectionalLocalSymbol(IntVal, IDVal == "b");
917 MCSymbol *Sym = Ctx.CreateTempSymbol();
962 const MCExpr *NewE = getTargetParser().applyModifierToExpr(E, Variant, Ctx);
1304 Sym = Ctx.CreateDirectionalLocalSymbol(LocalLabelVal);

Completed in 3313 milliseconds

<<1112