/external/clang/include/clang/Lex/ |
D | PPCallbacks.h | 49 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, 156 virtual void Ident(SourceLocation Loc, const std::string &str) { in Ident() argument 160 virtual void PragmaDirective(SourceLocation Loc, in PragmaDirective() argument 165 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, in PragmaComment() argument 171 virtual void PragmaDetectMismatch(SourceLocation Loc, in PragmaDetectMismatch() argument 179 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { in PragmaDebug() argument 199 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace, in PragmaMessage() argument 205 virtual void PragmaDiagnosticPush(SourceLocation Loc, in PragmaDiagnosticPush() argument 211 virtual void PragmaDiagnosticPop(SourceLocation Loc, in PragmaDiagnosticPop() argument 216 virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, in PragmaDiagnostic() argument [all …]
|
D | PPConditionalDirectiveRecord.h | 32 SourceLocation Loc; variable 36 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) in CondDirectiveLoc() argument 37 : Loc(Loc), RegionLoc(RegionLoc) {} in CondDirectiveLoc() 39 SourceLocation getLoc() const { return Loc; } in getLoc() 86 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const; 89 void If(SourceLocation Loc, SourceRange ConditionRange, 91 void Elif(SourceLocation Loc, SourceRange ConditionRange, 93 void Ifdef(SourceLocation Loc, const Token &MacroNameTok, 95 void Ifndef(SourceLocation Loc, const Token &MacroNameTok, 97 void Else(SourceLocation Loc, SourceLocation IfLoc) override; [all …]
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_handlers.cc | 31 Location Loc = Data->Loc.acquire(); in handleTypeMismatchImpl() local 34 if (Loc.getSourceLocation().isDisabled()) in handleTypeMismatchImpl() 36 if (Data->Loc.isInvalid()) in handleTypeMismatchImpl() 37 Loc = FallbackLoc; in handleTypeMismatchImpl() 40 Diag(Loc, DL_Error, "%0 null pointer of type %1") in handleTypeMismatchImpl() 43 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl() 48 Diag(Loc, DL_Error, "%0 address %1 with insufficient space " in handleTypeMismatchImpl() 69 SourceLocation Loc = Data->Loc.acquire(); in HandleIntegerOverflow() local 70 if (Loc.isDisabled()) in HandleIntegerOverflow() 73 Diag(Loc, DL_Error, "%0 integer overflow: " in HandleIntegerOverflow() [all …]
|
D | ubsan_diag.cc | 56 uptr Loc = StackTrace::GetPreviousInstructionPc(CallerLoc); in getCallerLocation() local 57 return getFunctionLocation(Loc, 0); in getCallerLocation() 60 Location __ubsan::getFunctionLocation(uptr Loc, const char **FName) { in getFunctionLocation() argument 61 if (!Loc) in getFunctionLocation() 66 if (!Symbolizer::GetOrInit()->SymbolizePC(Loc, &Info, 1) || in getFunctionLocation() 68 return Location(Loc); in getFunctionLocation() 108 static void renderLocation(Location Loc) { in renderLocation() argument 110 switch (Loc.getKind()) { in renderLocation() 112 SourceLocation SLoc = Loc.getSourceLocation(); in renderLocation() 121 PrintModuleAndOffset(&LocBuffer, Loc.getModuleLocation().getModuleName(), in renderLocation() [all …]
|
D | ubsan_diag.h | 52 Location(SourceLocation Loc) : in Location() argument 53 Kind(LK_Source), SourceLoc(Loc) {} in Location() 54 Location(ModuleLocation Loc) : in Location() argument 55 Kind(LK_Module), ModuleLoc(Loc) {} in Location() 56 Location(MemoryLocation Loc) : in Location() argument 57 Kind(LK_Memory), MemoryLoc(Loc) {} in Location() 87 Location getFunctionLocation(uptr Loc, const char **FName); 124 Location Loc; variable 193 Diag(Location Loc, DiagLevel Level, const char *Message) in Diag() argument 194 : Loc(Loc), Level(Level), Message(Message), NumArgs(0), NumRanges(0) {} in Diag()
|
/external/clang/include/clang/AST/ |
D | TypeLoc.h | 159 void initialize(ASTContext &Context, SourceLocation Loc) const { in initialize() argument 160 initializeImpl(Context, *this, Loc); in initialize() 194 SourceLocation Loc); 248 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 279 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) in getUnqualifiedLoc() local 280 return Loc.getUnqualifiedLoc(); in getUnqualifiedLoc() 463 void setNameLoc(SourceLocation Loc) { in setNameLoc() argument 464 this->getLocalData()->NameLoc = Loc; in setNameLoc() 469 void initializeLocal(ASTContext &Context, SourceLocation Loc) { in initializeLocal() argument 470 setNameLoc(Loc); in initializeLocal() [all …]
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 42 static StringRef getImmediateMacroName(SourceLocation Loc, in getImmediateMacroName() argument 45 assert(Loc.isMacroID() && "Only reasonble to call this on macros"); in getImmediateMacroName() 47 while (SM.isMacroArgExpansion(Loc)) in getImmediateMacroName() 48 Loc = SM.getImmediateExpansionRange(Loc).first; in getImmediateMacroName() 52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc)))) in getImmediateMacroName() 58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first); in getImmediateMacroName() 62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroName() 63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, SM, LangOpts); in getImmediateMacroName() 123 void DiagnosticRenderer::emitDiagnostic(SourceLocation Loc, in emitDiagnostic() argument 130 assert(SM || Loc.isInvalid()); in emitDiagnostic() [all …]
|
D | PrintPreprocessedOutput.cpp | 127 void FileChanged(SourceLocation Loc, FileChangeReason Reason, 135 void Ident(SourceLocation Loc, const std::string &str) override; 136 void PragmaMessage(SourceLocation Loc, StringRef Namespace, 138 void PragmaDebug(SourceLocation Loc, StringRef DebugType) override; 139 void PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) override; 140 void PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) override; 141 void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, 143 void PragmaWarning(SourceLocation Loc, StringRef WarningSpec, 145 void PragmaWarningPush(SourceLocation Loc, int Level) override; 146 void PragmaWarningPop(SourceLocation Loc) override; [all …]
|
/external/clang/lib/Lex/ |
D | PPConditionalDirectiveRecord.cpp | 49 SourceLocation Loc) const { in findConditionalDirectiveRegionLoc() 50 if (Loc.isInvalid()) in findConditionalDirectiveRegionLoc() 56 Loc)) in findConditionalDirectiveRegionLoc() 61 Loc, CondDirectiveLoc::Comp(SourceMgr)); in findConditionalDirectiveRegionLoc() 78 void PPConditionalDirectiveRecord::If(SourceLocation Loc, in If() argument 81 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in If() 82 CondDirectiveStack.push_back(Loc); in If() 85 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, in Ifdef() argument 88 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Ifdef() 89 CondDirectiveStack.push_back(Loc); in Ifdef() [all …]
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 31 ArrayRef<SMLoc> Loc) override { in apply() 32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc); in apply() 39 ArrayRef<SMLoc> Loc) override { in apply() 41 PrintFatalError(Loc, "Set difference needs at least two arguments: " + in apply() 44 ST.evaluate(*Expr->arg_begin(), Add, Loc); in apply() 45 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc); in apply() 55 ArrayRef<SMLoc> Loc) override { in apply() 57 PrintFatalError(Loc, "Set intersection requires two arguments: " + in apply() 60 ST.evaluate(Expr->arg_begin()[0], S1, Loc); in apply() 61 ST.evaluate(Expr->arg_begin()[1], S2, Loc); in apply() [all …]
|
D | Error.cpp | 25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage() argument 33 if (Loc.empty()) in PrintMessage() 34 Loc = NullLoc; in PrintMessage() 35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage() 36 for (unsigned i = 1; i < Loc.size(); ++i) in PrintMessage() 37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage() 45 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning() argument 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning() 57 void PrintError(const char *Loc, const Twine &Msg) { in PrintError() argument 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
|
/external/clang/include/clang/Sema/ |
D | TemplateDeduction.h | 38 SourceLocation Loc; variable 51 TemplateDeductionInfo(SourceLocation Loc) in TemplateDeductionInfo() argument 52 : Deduced(nullptr), Loc(Loc), HasSFINAEDiagnostic(false), in TemplateDeductionInfo() 58 return Loc; in getLocation() 89 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { in addSFINAEDiagnostic() argument 95 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic())); in addSFINAEDiagnostic() 101 void addSuppressedDiagnostic(SourceLocation Loc, in addSuppressedDiagnostic() argument 106 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic())); in addSuppressedDiagnostic() 252 SourceLocation Loc; variable 261 TemplateSpecCandidateSet(SourceLocation Loc) : Loc(Loc) {} in TemplateSpecCandidateSet() argument [all …]
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 187 SourceLocation Loc = SourceLocation(), 803 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc, 810 SourceLocation createExpansionLoc(SourceLocation Loc, 872 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, 883 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc, 1020 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument 1021 FileID FID = getFileID(Loc); in getModuleImportLoc() 1033 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument 1036 if (Loc.isFileID()) return Loc; in getExpansionLoc() 1037 return getExpansionLocSlowCase(Loc); in getExpansionLoc() [all …]
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 87 virtual void emitCodeContext(SourceLocation Loc, 93 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 95 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, 98 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, 110 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, 112 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM); 113 void emitImportStack(SourceLocation Loc, const SourceManager &SM); 114 void emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName, [all …]
|
D | TextDiagnostic.h | 78 void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc, 85 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 90 void emitCodeContext(SourceLocation Loc, in emitCodeContext() argument 95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext() 98 void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 101 void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, 105 void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, 110 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
|
/external/llvm/lib/DebugInfo/ |
D | DWARFDebugLoc.cpp | 30 for (unsigned char Loc : E.Loc) { in dump() local 31 OS << format("%2.2x ", Loc); in dump() 42 LocationList &Loc = Locations.back(); in parse() local 43 Loc.Offset = Offset; in parse() 70 E.Loc.reserve(str.size()); in parse() 71 std::copy(str.begin(), str.end(), std::back_inserter(E.Loc)); in parse() 72 Loc.Entries.push_back(std::move(E)); in parse() 83 LocationList &Loc = Locations.back(); in parse() local 84 Loc.Offset = Offset; in parse() 104 E.Loc.resize(str.size()); in parse() [all …]
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 86 SourceLocation Loc, in getBuffer() argument 125 Diag.Report(Loc, diag::err_cannot_open_file) in getBuffer() 141 Diag.Report(Loc, diag::err_file_modified) in getBuffer() 167 Diag.Report(Loc, diag::err_unsupported_bom) in getBuffer() 296 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 298 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 316 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 325 return AddLineNote(Loc, LineNo, FilenameID); in AddLineNote() 328 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote() 898 getExpansionLocSlowCase(SourceLocation Loc) const { in getExpansionLocSlowCase() [all …]
|
/external/clang/lib/AST/ |
D | TypeLoc.cpp | 111 SourceLocation Loc) { in initializeImpl() argument 118 TLCasted.initializeLocal(Context, Loc); \ in initializeImpl() 316 SourceLocation Loc) { in initializeLocal() argument 317 setElaboratedKeywordLoc(Loc); in initializeLocal() 319 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); in initializeLocal() 324 SourceLocation Loc) { in initializeLocal() argument 325 setElaboratedKeywordLoc(Loc); in initializeLocal() 327 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc); in initializeLocal() 329 setNameLoc(Loc); in initializeLocal() 334 SourceLocation Loc) { in initializeLocal() argument [all …]
|
/external/clang/lib/Sema/ |
D | DeclSpec.cpp | 34 static DiagnosticBuilder Diag(DiagnosticsEngine &D, SourceLocation Loc, in Diag() argument 36 return D.Report(Loc, DiagID); in Diag() 179 I.Loc = LocalRangeBegin; in getFunction() 469 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec() argument 507 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy); in SetStorageClassSpec() 525 StorageClassSpecLoc = Loc; in SetStorageClassSpec() 530 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread() argument 537 ThreadStorageClassSpecLoc = Loc; in SetStorageClassSpecThread() 544 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, in SetTypeSpecWidth() argument 551 TSWLoc = Loc; in SetTypeSpecWidth() [all …]
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-anyregcc.ll | 41 ; Loc 0: Register 46 ; Loc 1: Register 51 ; Loc 2: Constant 3 67 ; Loc 0: Register <-- this is the return register 72 ; Loc 1: Register 89 ; Loc 0: Register <-- this is the return register 94 ; Loc 1: Register 112 ; Loc 0: Register <-- this is the return register 117 ; Loc 1: Direct FP - 8 135 ; Loc 0: Register <-- this is the return register [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLParser.h | 61 LLLexer::LocTy Loc; member 106 SMLoc Loc; member 158 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc); 159 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc); 163 Comdat *getComdat(const std::string &N, LocTy Loc); 188 LocTy *Loc = nullptr) { 192 if (Loc) 193 *Loc = Lex.getLoc(); 201 bool ParseUInt32(unsigned &Val, LocTy &Loc) { in ParseUInt32() argument 202 Loc = Lex.getLoc(); in ParseUInt32() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 33 if (Loc::isLocType(type)) in makeZeroVal() 50 assert(!Loc::isLocType(type)); in makeNonLoc() 58 assert(!Loc::isLocType(type)); in makeNonLoc() 65 assert(!Loc::isLocType(type)); in makeNonLoc() 72 assert(!Loc::isLocType(toTy)); in makeNonLoc() 103 if (Loc::isLocType(T)) in getRegionValueSymbolVal() 134 if (Loc::isLocType(type)) in conjureSymbolVal() 150 if (Loc::isLocType(type)) in conjureSymbolVal() 161 assert(Loc::isLocType(T)); in getConjuredHeapSymbolVal() 177 if (Loc::isLocType(type)) in getMetadataSymbolVal() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 216 virtual bool pointsToConstantMemory(const Location &Loc, 362 const Location &Loc) { in getModRefInfo() argument 364 case Instruction::VAArg: return getModRefInfo((const VAArgInst*)I, Loc); in getModRefInfo() 365 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc); in getModRefInfo() 366 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc); in getModRefInfo() 367 case Instruction::Fence: return getModRefInfo((const FenceInst*)I, Loc); in getModRefInfo() 369 return getModRefInfo((const AtomicCmpXchgInst*)I, Loc); in getModRefInfo() 371 return getModRefInfo((const AtomicRMWInst*)I, Loc); in getModRefInfo() 372 case Instruction::Call: return getModRefInfo((const CallInst*)I, Loc); in getModRefInfo() 373 case Instruction::Invoke: return getModRefInfo((const InvokeInst*)I,Loc); in getModRefInfo() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransGCAttrs.cpp | 87 SourceLocation Loc = TL.getAttrNameLoc(); in handleAttr() local 88 unsigned RawLoc = Loc.getRawEncoding(); in handleAttr() 94 if (Loc.isMacroID()) in handleAttr() 95 Loc = SM.getImmediateExpansionRange(Loc).first; in handleAttr() 116 Attr.Loc = Loc; in handleAttr() 173 bool isInMainFile(SourceLocation Loc) { in isInMainFile() argument 174 if (Loc.isInvalid()) in isInMainFile() 178 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile() 194 Attr.Loc); in errorForGCAttrsOnNonObjC() 212 if (!MigrateCtx.RemovedAttrSet.count(Attr.Loc.getRawEncoding())) in checkWeakGCAttrs() [all …]
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.cpp | 212 const SourceLocation Loc = in clang_Location_isInSystemHeader() local 214 if (Loc.isInvalid()) in clang_Location_isInSystemHeader() 219 return SM.isInSystemHeader(Loc); in clang_Location_isInSystemHeader() 223 const SourceLocation Loc = in clang_Location_isFromMainFile() local 225 if (Loc.isInvalid()) in clang_Location_isFromMainFile() 230 return SM.isWrittenInMainFile(Loc); in clang_Location_isFromMainFile() 244 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getExpansionLocation() local 246 if (!location.ptr_data[0] || Loc.isInvalid()) { in clang_getExpansionLocation() 253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation() 287 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getPresumedLocation() local [all …]
|