/external/clang/lib/AST/ |
D | NSAPI.cpp | 16 : Ctx(ctx), ClassIds() { in NSAPI() 31 return (ClassIds[K] = &Ctx.Idents.get(ClassName[K])); in getNSClassId() 41 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithString")); in getNSStringSelector() 44 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("initWithString")); in getNSStringSelector() 58 Sel = Ctx.Selectors.getNullarySelector(&Ctx.Idents.get("array")); in getNSArraySelector() 61 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("arrayWithArray")); in getNSArraySelector() 64 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("arrayWithObject")); in getNSArraySelector() 67 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("arrayWithObjects")); in getNSArraySelector() 71 &Ctx.Idents.get("arrayWithObjects"), in getNSArraySelector() 72 &Ctx.Idents.get("count") in getNSArraySelector() [all …]
|
D | ExprClassification.cpp | 26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E); 27 static Cl::Kinds ClassifyDecl(ASTContext &Ctx, const Decl *D); 28 static Cl::Kinds ClassifyUnnamed(ASTContext &Ctx, QualType T); 29 static Cl::Kinds ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E); 30 static Cl::Kinds ClassifyBinaryOp(ASTContext &Ctx, const BinaryOperator *E); 31 static Cl::Kinds ClassifyConditional(ASTContext &Ctx, 34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, 52 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl() argument 55 Cl::Kinds kind = ClassifyInternal(Ctx, this); in ClassifyImpl() 58 if (!Ctx.getLangOpts().CPlusPlus) { in ClassifyImpl() [all …]
|
D | ItaniumCXXABI.cpp | 34 ItaniumCXXABI(ASTContext &Ctx) : Context(Ctx) { } in ItaniumCXXABI() argument 63 ARMCXXABI(ASTContext &Ctx) : ItaniumCXXABI(Ctx) { } in ARMCXXABI() argument 67 CXXABI *clang::CreateItaniumCXXABI(ASTContext &Ctx) { in CreateItaniumCXXABI() argument 68 return new ItaniumCXXABI(Ctx); in CreateItaniumCXXABI() 71 CXXABI *clang::CreateARMCXXABI(ASTContext &Ctx) { in CreateARMCXXABI() argument 72 return new ARMCXXABI(Ctx); in CreateARMCXXABI()
|
D | RecordLayout.cpp | 20 void ASTRecordLayout::Destroy(ASTContext &Ctx) { in Destroy() argument 22 Ctx.Deallocate(FieldOffsets); in Destroy() 24 Ctx.Deallocate(CXXInfo); in Destroy() 28 Ctx.Deallocate(this); in Destroy() 31 ASTRecordLayout::ASTRecordLayout(const ASTContext &Ctx, CharUnits size, in ASTRecordLayout() argument 38 FieldOffsets = new (Ctx) uint64_t[FieldCount]; in ASTRecordLayout() 44 ASTRecordLayout::ASTRecordLayout(const ASTContext &Ctx, in ASTRecordLayout() argument 58 FieldCount(fieldcount), CXXInfo(new (Ctx) CXXRecordLayoutInfo) in ASTRecordLayout() 61 FieldOffsets = new (Ctx) uint64_t[FieldCount]; in ASTRecordLayout() 79 if (Ctx.getTargetInfo().getCXXABI() != CXXABI_Microsoft) { in ASTRecordLayout()
|
/external/llvm/lib/MC/ |
D | MCObjectFileInfo.cpp | 35 = Ctx->getMachOSection("__TEXT", "__text", in InitMachOMCObjectFileInfo() 39 = Ctx->getMachOSection("__DATA", "__data", 0, in InitMachOMCObjectFileInfo() 43 = Ctx->getMachOSection("__DATA", "__thread_data", in InitMachOMCObjectFileInfo() 47 = Ctx->getMachOSection("__DATA", "__thread_bss", in InitMachOMCObjectFileInfo() 53 = Ctx->getMachOSection("__DATA", "__thread_vars", in InitMachOMCObjectFileInfo() 58 = Ctx->getMachOSection("__DATA", "__thread_init", in InitMachOMCObjectFileInfo() 63 = Ctx->getMachOSection("__TEXT", "__cstring", in InitMachOMCObjectFileInfo() 67 = Ctx->getMachOSection("__TEXT","__ustring", 0, in InitMachOMCObjectFileInfo() 70 = Ctx->getMachOSection("__TEXT", "__literal4", in InitMachOMCObjectFileInfo() 74 = Ctx->getMachOSection("__TEXT", "__literal8", in InitMachOMCObjectFileInfo() [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCExpr.h | 122 static const MCConstantExpr *Create(int64_t Value, MCContext &Ctx); 216 static const MCSymbolRefExpr *Create(const MCSymbol *Symbol, MCContext &Ctx) { in Create() argument 217 return MCSymbolRefExpr::Create(Symbol, VK_None, Ctx); in Create() 221 MCContext &Ctx); 223 MCContext &Ctx); 271 MCContext &Ctx); 272 static const MCUnaryExpr *CreateLNot(const MCExpr *Expr, MCContext &Ctx) { in CreateLNot() argument 273 return Create(LNot, Expr, Ctx); in CreateLNot() 275 static const MCUnaryExpr *CreateMinus(const MCExpr *Expr, MCContext &Ctx) { in CreateMinus() argument 276 return Create(Minus, Expr, Ctx); in CreateMinus() [all …]
|
/external/llvm/lib/VMCore/ |
D | DebugLoc.cpp | 19 MDNode *DebugLoc::getScope(const LLVMContext &Ctx) const { in getScope() 25 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScope() 27 return Ctx.pImpl->ScopeRecords[ScopeIdx-1].get(); in getScope() 31 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getScope() 33 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get(); in getScope() 36 MDNode *DebugLoc::getInlinedAt(const LLVMContext &Ctx) const { in getInlinedAt() 42 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getInlinedAt() 44 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get(); in getInlinedAt() 49 const LLVMContext &Ctx) const { in getScopeAndInlinedAt() 58 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScopeAndInlinedAt() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransEmptyStatementsAndDealloc.cpp | 33 ASTContext &Ctx) { in isEmptyARCMTMacroStatement() argument 44 SourceManager &SM = Ctx.getSourceManager(); in isEmptyARCMTMacroStatement() 69 SourceLocation AfterMacroSemiLoc = findSemiAfterLocation(AfterMacroLoc, Ctx); in isEmptyARCMTMacroStatement() 78 ASTContext &Ctx; member in __anon4207eef40111::EmptyChecker 83 : Ctx(ctx), MacroLocs(macroLocs) { } in EmptyChecker() 86 return isEmptyARCMTMacroStatement(S, MacroLocs, Ctx); in VisitNullStmt() 103 if (hasSideEffects(condE, Ctx)) in VisitIfStmt() 117 if (hasSideEffects(condE, Ctx)) in VisitWhileStmt() 127 if (hasSideEffects(condE, Ctx)) in VisitDoStmt() 137 if (hasSideEffects(Exp, Ctx)) in VisitObjCForCollectionStmt() [all …]
|
D | Transforms.cpp | 31 bool trans::canApplyWeak(ASTContext &Ctx, QualType type, in canApplyWeak() argument 33 if (!Ctx.getLangOpts().ObjCRuntimeHasWeak) in canApplyWeak() 41 if (Ctx.getTargetInfo().getTriple().getOS() == llvm::Triple::IOS) in canApplyWeak() 64 ASTContext &Ctx) { in findLocationAfterSemi() argument 65 SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx); in findLocationAfterSemi() 76 ASTContext &Ctx) { in findSemiAfterLocation() argument 77 SourceManager &SM = Ctx.getSourceManager(); in findSemiAfterLocation() 79 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) in findSemiAfterLocation() 82 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); in findSemiAfterLocation() 97 Ctx.getLangOpts(), in findSemiAfterLocation() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | BasicObjCFoundationChecks.cpp | 199 static Optional<uint64_t> GetCFNumberSize(ASTContext &Ctx, uint64_t i) { in GetCFNumberSize() argument 208 case kCFNumberCharType: T = Ctx.CharTy; break; in GetCFNumberSize() 209 case kCFNumberShortType: T = Ctx.ShortTy; break; in GetCFNumberSize() 210 case kCFNumberIntType: T = Ctx.IntTy; break; in GetCFNumberSize() 211 case kCFNumberLongType: T = Ctx.LongTy; break; in GetCFNumberSize() 212 case kCFNumberLongLongType: T = Ctx.LongLongTy; break; in GetCFNumberSize() 213 case kCFNumberFloatType: T = Ctx.FloatTy; break; in GetCFNumberSize() 214 case kCFNumberDoubleType: T = Ctx.DoubleTy; break; in GetCFNumberSize() 223 return Ctx.getTypeSize(T); in GetCFNumberSize() 258 ASTContext &Ctx = C.getASTContext(); in checkPreStmt() local [all …]
|
D | CheckObjCDealloc.cpp | 55 ASTContext &Ctx) { in scan_ivar_release() argument 74 ME->getArg(0)->isNullPointerConstant(Ctx, in scan_ivar_release() 84 if (BO->getRHS()->isNullPointerConstant(Ctx, in scan_ivar_release() 93 if (*I && scan_ivar_release(*I, ID, PD, Release, SelfII, Ctx)) in scan_ivar_release() 104 ASTContext &Ctx = BR.getContext(); in checkObjCDealloc() local 133 IdentifierInfo* NSObjectII = &Ctx.Idents.get("NSObject"); in checkObjCDealloc() 134 IdentifierInfo* SenTestCaseII = &Ctx.Idents.get("SenTestCase"); in checkObjCDealloc() 155 IdentifierInfo* II = &Ctx.Idents.get("dealloc"); in checkObjCDealloc() 156 Selector S = Ctx.Selectors.getSelector(0, &II); in checkObjCDealloc() 206 IdentifierInfo* RII = &Ctx.Idents.get("release"); in checkObjCDealloc() [all …]
|
D | UndefBranchChecker.cpp | 56 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const; 62 CheckerContext &Ctx) const { in checkBranchCondition() 63 SVal X = Ctx.getState()->getSVal(Condition, Ctx.getLocationContext()); in checkBranchCondition() 67 ExplodedNode *N = Ctx.generateSink(); in checkBranchCondition() 97 FindUndefExpr FindIt(St, Ctx.getLocationContext()); in checkBranchCondition() 105 Ctx.EmitReport(R); in checkBranchCondition()
|
D | CallAndMessageChecker.cpp | 328 ASTContext &Ctx = C.getASTContext(); in HandleNilReceiver() local 332 QualType RetTy = msg.getType(Ctx); in HandleNilReceiver() 333 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy); in HandleNilReceiver() 338 SVal V = C.getSValBuilder().makeZeroVal(msg.getType(Ctx)); in HandleNilReceiver() 344 if (CanRetTy != Ctx.VoidTy && C.getLocationContext()->getParentMap() in HandleNilReceiver() 347 const uint64_t voidPtrSize = Ctx.getTypeSize(Ctx.VoidPtrTy); in HandleNilReceiver() 348 const uint64_t returnTypeSize = Ctx.getTypeSize(CanRetTy); in HandleNilReceiver() 351 !(supportsNilWithFloatRet(Ctx.getTargetInfo().getTriple()) && in HandleNilReceiver() 352 (Ctx.FloatTy == CanRetTy || in HandleNilReceiver() 353 Ctx.DoubleTy == CanRetTy || in HandleNilReceiver() [all …]
|
D | StackAddrEscapeChecker.cpp | 34 void checkEndPath(CheckerContext &Ctx) const; 147 void StackAddrEscapeChecker::checkEndPath(CheckerContext &Ctx) const { in checkEndPath() 148 ProgramStateRef state = Ctx.getState(); in checkEndPath() 154 CheckerContext &Ctx; in checkEndPath() member in StackAddrEscapeChecker::checkEndPath::CallBack 160 Ctx(CC), in checkEndPath() 176 if (Ctx.getASTContext().getLangOpts().ObjCAutoRefCount && in checkEndPath() 192 CallBack cb(Ctx); in checkEndPath() 199 ExplodedNode *N = Ctx.addTransition(state); in checkEndPath() 215 Ctx.getSourceManager()); in checkEndPath() 224 Ctx.EmitReport(report); in checkEndPath()
|
D | StreamChecker.cpp | 78 void checkEndPath(CheckerContext &Ctx) const; 122 ASTContext &Ctx = C.getASTContext(); in evalCall() local 124 II_fopen = &Ctx.Idents.get("fopen"); in evalCall() 126 II_tmpfile = &Ctx.Idents.get("tmpfile"); in evalCall() 128 II_fclose = &Ctx.Idents.get("fclose"); in evalCall() 130 II_fread = &Ctx.Idents.get("fread"); in evalCall() 132 II_fwrite = &Ctx.Idents.get("fwrite"); in evalCall() 134 II_fseek = &Ctx.Idents.get("fseek"); in evalCall() 136 II_ftell = &Ctx.Idents.get("ftell"); in evalCall() 138 II_rewind = &Ctx.Idents.get("rewind"); in evalCall() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreTargetObjectFile.cpp | 19 void XCoreTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){ in Initialize() argument 20 TargetLoweringObjectFileELF::Initialize(Ctx, TM); in Initialize() 23 Ctx.getELFSection(".dp.data", ELF::SHT_PROGBITS, in Initialize() 28 Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, in Initialize() 34 Ctx.getELFSection(".cp.rodata.cst4", ELF::SHT_PROGBITS, in Initialize() 39 Ctx.getELFSection(".cp.rodata.cst8", ELF::SHT_PROGBITS, in Initialize() 44 Ctx.getELFSection(".cp.rodata.cst16", ELF::SHT_PROGBITS, in Initialize() 56 Ctx.getELFSection(".cp.rodata", ELF::SHT_PROGBITS, in Initialize()
|
/external/clang/lib/Analysis/ |
D | PrintfFormatString.cpp | 244 ArgTypeResult PrintfSpecifier::getArgType(ASTContext &Ctx, in getArgType() argument 253 case LengthModifier::None: return Ctx.IntTy; in getArgType() 264 return Ctx.LongLongTy; in getArgType() 265 case LengthModifier::None: return Ctx.IntTy; in getArgType() 267 case LengthModifier::AsShort: return Ctx.ShortTy; in getArgType() 268 case LengthModifier::AsLong: return Ctx.LongTy; in getArgType() 271 return Ctx.LongLongTy; in getArgType() 273 return ArgTypeResult(Ctx.getIntMaxType(), "intmax_t"); in getArgType() 278 return ArgTypeResult(Ctx.getPointerDiffType(), "ptrdiff_t"); in getArgType() 288 return Ctx.UnsignedLongLongTy; in getArgType() [all …]
|
D | ScanfFormatString.cpp | 197 ScanfArgTypeResult ScanfSpecifier::getArgType(ASTContext &Ctx) const { in getArgType() 208 case LengthModifier::None: return ArgTypeResult(Ctx.IntTy); in getArgType() 211 case LengthModifier::AsShort: return ArgTypeResult(Ctx.ShortTy); in getArgType() 212 case LengthModifier::AsLong: return ArgTypeResult(Ctx.LongTy); in getArgType() 215 return ArgTypeResult(Ctx.LongLongTy); in getArgType() 217 return ScanfArgTypeResult(Ctx.getIntMaxType(), "intmax_t *"); in getArgType() 222 return ScanfArgTypeResult(Ctx.getPointerDiffType(), "ptrdiff_t *"); in getArgType() 225 return ArgTypeResult(Ctx.LongLongTy); in getArgType() 236 case LengthModifier::None: return ArgTypeResult(Ctx.UnsignedIntTy); in getArgType() 237 case LengthModifier::AsChar: return ArgTypeResult(Ctx.UnsignedCharTy); in getArgType() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | Store.cpp | 24 MRMgr(svalBuilder.getRegionManager()), Ctx(stateMgr.getContext()) {} in StoreManager() 39 static bool IsCompleteType(ASTContext &Ctx, QualType Ty) { in IsCompleteType() argument 57 return MRMgr.getElementRegion(T, idx, R, Ctx); in GetElementZeroRegion() 62 ASTContext &Ctx = StateMgr.getContext(); in castRegion() local 84 QualType CanonPointeeTy = Ctx.getCanonicalType(PointeeTy); in castRegion() 87 if (CanonPointeeTy.getLocalUnqualifiedType() == Ctx.VoidTy) in castRegion() 93 QualType ObjTy = Ctx.getCanonicalType(TR->getValueType()); in castRegion() 165 QualType ObjTy = Ctx.getCanonicalType(TR->getValueType()); in castRegion() 166 QualType CanonPointeeTy = Ctx.getCanonicalType(PointeeTy); in castRegion() 186 if (IsCompleteType(Ctx, PointeeTy)) { in castRegion() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | BasicValueFactory.h | 64 ASTContext &Ctx; variable 77 : Ctx(ctx), BPAlloc(Alloc), PersistentSVals(0), PersistentSValPairs(0), in BasicValueFactory() 82 ASTContext &getContext() const { return Ctx; } in getContext() 103 unsigned bitwidth = Ctx.getTypeSize(T); in Convert() 114 QualType T = isUnsigned ? Ctx.UnsignedIntTy : Ctx.IntTy; in getIntValue() 130 return getValue(llvm::APSInt::getMaxValue(Ctx.getTypeSize(T), isUnsigned)); in getMaxValue() 137 return getValue(llvm::APSInt::getMinValue(Ctx.getTypeSize(T), isUnsigned)); in getMinValue() 153 return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); 157 return getValue(X, Ctx.getTypeSize(Ctx.VoidPtrTy), isUnsigned); in getIntWithPtrWidth() 161 return getValue(b ? 1 : 0, Ctx.getTypeSize(T), false); in getTruthValue() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCMCInstLower.cpp | 32 MCContext &Ctx = AP.OutContext; in GetSymbolFromOperand() local 53 MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name.str()); in GetSymbolFromOperand() 68 StubValueTy(Ctx.GetOrCreateSymbol(Name.str()), false); in GetSymbolFromOperand() 77 MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name.str()); in GetSymbolFromOperand() 94 return Ctx.GetOrCreateSymbol(Name.str()); in GetSymbolFromOperand() 99 MCContext &Ctx = Printer.OutContext; in GetSymbolRef() local 112 const MCExpr *Expr = MCSymbolRefExpr::Create(Symbol, RefKind, Ctx); in GetSymbolRef() 116 MCConstantExpr::Create(MO.getOffset(), Ctx), in GetSymbolRef() 117 Ctx); in GetSymbolRef() 123 const MCExpr *PB = MCSymbolRefExpr::Create(MF->getPICBaseSymbol(), Ctx); in GetSymbolRef() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | FoldingSet.h | 242 template<typename T, typename Ctx> struct ContextualFoldingSetTrait; 246 template<typename T, typename Ctx> 248 static void Profile(T &X, FoldingSetNodeID &ID, Ctx Context) { in Profile() 252 FoldingSetNodeID &TempID, Ctx Context); 254 Ctx Context); 259 template<typename T, typename Ctx> struct ContextualFoldingSetTrait 260 : public DefaultContextualFoldingSetTrait<T, Ctx> {}; 356 template<typename T, typename Ctx> 358 DefaultContextualFoldingSetTrait<T, Ctx>::Equals(T &X, in Equals() 362 Ctx Context) { in Equals() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | GCOVProfiling.cpp | 102 LLVMContext *Ctx; member in __anone44600900111::GCOVProfiler 354 Ctx = &M.getContext(); in runOnModule() 406 if (SP != getDISubprogram(Loc.getScope(*Ctx))) continue; in emitGCNO() 444 ArrayType::get(Type::getInt64Ty(*Ctx), Edges); in emitProfileArcs() 467 ConstantInt::get(Type::getInt64Ty(*Ctx),1)); in emitProfileArcs() 472 ConstantInt::get(Type::getInt64Ty(*Ctx), Edge), in emitProfileArcs() 473 ConstantInt::get(Type::getInt64Ty(*Ctx), Edge + 1)); in emitProfileArcs() 475 Idx.push_back(Constant::getNullValue(Type::getInt64Ty(*Ctx))); in emitProfileArcs() 480 ConstantInt::get(Type::getInt64Ty(*Ctx),1)); in emitProfileArcs() 497 Type *Int32Ty = Type::getInt32Ty(*Ctx); in emitProfileArcs() [all …]
|
/external/clang/tools/arcmt-test/ |
D | arcmt-test.cpp | 71 static void printSourceLocation(SourceLocation loc, ASTContext &Ctx, 73 static void printSourceRange(CharSourceRange range, ASTContext &Ctx, 79 ASTContext *Ctx; member in __anona1b55a510111::PrintTransforms 84 : Ctx(0), OS(OS) { } in PrintTransforms() 86 virtual void start(ASTContext &ctx) { Ctx = &ctx; } in start() 87 virtual void finish() { Ctx = 0; } in finish() 90 assert(Ctx); in insert() 92 printSourceLocation(loc, *Ctx, OS); in insert() 97 assert(Ctx); in remove() 99 printSourceRange(range, *Ctx, OS); in remove() [all …]
|
/external/clang/lib/CodeGen/ |
D | ModuleBuilder.cpp | 32 ASTContext *Ctx; member in __anon8ccbf8710111::CodeGeneratorImpl 53 Ctx = &Context; in Initialize() 55 M->setTargetTriple(Ctx->getTargetInfo().getTriple().getTriple()); in Initialize() 56 M->setDataLayout(Ctx->getTargetInfo().getTargetDescription()); in Initialize() 57 TD.reset(new llvm::TargetData(Ctx->getTargetInfo().getTargetDescription())); in Initialize() 82 if (Ctx->getLangOpts().CPlusPlus && !D->isDependentContext()) { in HandleTagDeclDefinition() 94 virtual void HandleTranslationUnit(ASTContext &Ctx) { in HandleTranslationUnit() argument
|