/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFLocationExpression.cpp | 16 const DWARFLocationExpression &Loc) { 17 return OS << Loc.Range << ": " 18 << formatv("{0}", make_range(Loc.Expr.begin(), Loc.Expr.end())); 15 operator <<(raw_ostream &OS, const DWARFLocationExpression &Loc) argument
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | DataCollection.cpp | 19 ASTContext &Context, SourceLocation Loc) { 20 MacroStack << Lexer::getImmediateMacroName(Loc, Context.getSourceManager(), 33 std::string getMacroStack(SourceLocation Loc, ASTContext &Context) { argument 39 while (Loc.isMacroID()) { 41 printMacroName(MacroStackStream, Context, Loc); 42 Loc = SM.getImmediateMacroCallerLoc(Loc); 18 printMacroName(llvm::raw_string_ostream &MacroStack, ASTContext &Context, SourceLocation Loc) argument
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPConditionalDirectiveRecord.cpp | 47 SourceLocation Loc) const { 48 if (Loc.isInvalid()) 54 Loc)) 58 CondDirectiveLocs, Loc, CondDirectiveLoc::Comp(SourceMgr)); 75 void PPConditionalDirectiveRecord::If(SourceLocation Loc, argument 78 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); 79 CondDirectiveStack.push_back(Loc); 82 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, argument 85 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); 86 CondDirectiveStack.push_back(Loc); 89 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 96 Elif(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument 104 Else(SourceLocation Loc, SourceLocation IfLoc) argument 110 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | ByteCodeGenError.h | 23 ByteCodeGenError(SourceLocation Loc) : Loc(Loc) {} argument 29 const SourceLocation &getLoc() const { return Loc; } 35 SourceLocation Loc; member in struct:clang::interp::ByteCodeGenError
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-mca/ |
H A D | CodeRegion.cpp | 24 bool CodeRegion::isLocInRange(SMLoc Loc) const { 25 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) 27 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) 32 void CodeRegions::beginRegion(StringRef Description, SMLoc Loc) { argument 39 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); 47 SM.PrintMessage(Loc, SourceMgr::DK_Error, 55 SM.PrintMessage(Loc, SourceMgr::DK_Error, 65 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); 69 void CodeRegions::endRegion(StringRef Description, SMLoc Loc) { argument 77 Regions[It->second]->setEndLocation(Loc); 110 SMLoc Loc = Instruction.getLoc(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 45 /// \param Loc Indicates the new location. 47 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 178 /// \param Loc The location of the directive. 181 virtual void Ident(SourceLocation Loc, StringRef str) { argument 185 virtual void PragmaDirective(SourceLocation Loc, argument 190 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 196 virtual void PragmaDetectMismatch(SourceLocation Loc, StringRef Name, argument 201 /// \param Loc The location of the debug directive. 203 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { argument 219 /// \param Loc Th 223 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument 229 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 235 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 240 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Severity mapping, StringRef Str) argument 251 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument 256 PragmaWarningPush(SourceLocation Loc, int Level) argument 260 PragmaWarningPop(SourceLocation Loc) argument 265 PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) argument 269 PragmaExecCharsetPop(SourceLocation Loc) argument 273 PragmaAssumeNonNullBegin(SourceLocation Loc) argument 277 PragmaAssumeNonNullEnd(SourceLocation Loc) argument 309 HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled, Optional<FileEntryRef> File, SrcMgr::CharacteristicKind FileType) argument 332 If(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue) argument 342 Elif(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument 350 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 358 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 365 Else(SourceLocation Loc, SourceLocation IfLoc) argument 371 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
H A D | PPConditionalDirectiveRecord.h | 31 SourceLocation Loc; member in class:clang::PPConditionalDirectiveRecord::CondDirectiveLoc 35 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) argument 36 : Loc(Loc), RegionLoc(RegionLoc) {} 38 SourceLocation getLoc() const { return Loc; } 85 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const; 88 void If(SourceLocation Loc, SourceRange ConditionRange, 90 void Elif(SourceLocation Loc, SourceRange ConditionRange, 92 void Ifdef(SourceLocation Loc, const Token &MacroNameTok, 94 void Ifndef(SourceLocation Loc, cons [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | PrettyDeclStackTrace.h | 33 SourceLocation Loc; member in class:clang::PrettyDeclStackTraceEntry 37 PrettyDeclStackTraceEntry(ASTContext &Ctx, Decl *D, SourceLocation Loc, argument 39 : Context(Ctx), TheDecl(D), Loc(Loc), Message(Msg) {}
|
H A D | TypeLoc.h | 196 void initialize(ASTContext &Context, SourceLocation Loc) const { 197 initializeImpl(Context, *this, Loc); 237 SourceLocation Loc); 291 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 327 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) 328 return Loc.getUnqualifiedLoc(); 527 void setNameLoc(SourceLocation Loc) { argument 528 this->getLocalData()->NameLoc = Loc; 535 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 536 setNameLoc(Loc); 559 setBuiltinLoc(SourceLocation Loc) argument 657 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 764 setNameLoc(SourceLocation Loc) argument 774 setProtocolLAngleLoc(SourceLocation Loc) argument 784 setProtocolRAngleLoc(SourceLocation Loc) argument 928 setTypeArgsLAngleLoc(SourceLocation Loc) argument 936 setTypeArgsRAngleLoc(SourceLocation Loc) argument [all...] |
H A D | CommentBriefParser.h | 38 SourceLocation Loc = Tok.getLocation(); local 40 return Loc;
|
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/ |
H A D | CodeExpander.h | 35 const ArrayRef<SMLoc> &Loc; member in class:llvm::CodeExpander 41 const ArrayRef<SMLoc> &Loc, bool ShowExpansions, 43 : Code(Code), Expansions(Expansions), Loc(Loc), 40 CodeExpander(StringRef Code, const CodeExpansions &Expansions, const ArrayRef<SMLoc> &Loc, bool ShowExpansions, StringRef Indent = �) argument
|
H A D | CodeExpander.cpp | 63 Loc.size() > 0 && Loc[0].isValid() 64 ? SMLoc::getFromPointer(Loc[0].getPointer() + LocOffset) 72 PrintError(Loc.size() > 0 && Loc[0].isValid() 73 ? SMLoc::getFromPointer(Loc[0].getPointer() + LocOffset) 86 PrintWarning(Loc.size() > 0 && Loc[0].isValid() 87 ? SMLoc::getFromPointer(Loc[0].getPointer() + LocOffset)
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | StackMapPrinter.h | 45 for (const auto &Loc : R.locations()) { 48 switch (Loc.getKind()) { 50 OS << "Register R#" << Loc.getDwarfRegNum(); 53 OS << "Direct R#" << Loc.getDwarfRegNum() << " + " << Loc.getOffset(); 56 OS << "Indirect [R#" << Loc.getDwarfRegNum() << " + " << Loc.getOffset() 60 OS << "Constant " << Loc.getSmallConstant(); 63 OS << "ConstantIndex #" << Loc.getConstantIndex() << " (" 64 << SMP.getConstant(Loc [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | PrettyStackTrace.h | 28 SourceLocation Loc; member in class:clang::PrettyStackTraceLoc 32 : SM(sm), Loc(L), Message(Msg) {}
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_monitor.h | 23 Location &Loc; member in struct:__ubsan::UndefinedBehaviorReport 26 UndefinedBehaviorReport(const char *IssueKind, Location &Loc,
|
H A D | ubsan_monitor.cpp | 18 Location &Loc, 20 : IssueKind(IssueKind), Loc(Loc), Buffer(Msg.length() + 1) { 61 if (!CurrentUBR->Loc.isSourceLocation()) { 65 SourceLocation SL = CurrentUBR->Loc.getSourceLocation(); 71 if (CurrentUBR->Loc.isMemoryLocation()) 72 *OutMemoryAddr = (char *)CurrentUBR->Loc.getMemoryLocation(); 17 UndefinedBehaviorReport(const char *IssueKind, Location &Loc, InternalScopedString &Msg) argument
|
H A D | ubsan_handlers.h | 20 SourceLocation Loc; member in struct:__ubsan::TypeMismatchData 42 SourceLocation Loc; member in struct:__ubsan::AlignmentAssumptionData 53 SourceLocation Loc; member in struct:__ubsan::OverflowData 74 SourceLocation Loc; member in struct:__ubsan::ShiftOutOfBoundsData 85 SourceLocation Loc; member in struct:__ubsan::OutOfBoundsData 94 SourceLocation Loc; member in struct:__ubsan::UnreachableData 103 SourceLocation Loc; member in struct:__ubsan::VLABoundData 118 SourceLocation Loc; member in struct:__ubsan::FloatCastOverflowDataV2 128 SourceLocation Loc; member in struct:__ubsan::InvalidValueData 146 SourceLocation Loc; member in struct:__ubsan::ImplicitConversionData 164 SourceLocation Loc; member in struct:__ubsan::InvalidBuiltinData 181 SourceLocation Loc; member in struct:__ubsan::NonNullArgData 192 SourceLocation Loc; member in struct:__ubsan::PointerOverflowData 212 SourceLocation Loc; member in struct:__ubsan::CFICheckFailData [all...] |
H A D | ubsan_handlers.cpp | 48 Location Loc = Data->Loc.acquire(); local 61 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) 65 if (Data->Loc.isInvalid()) { 67 Loc = FallbackLoc; 70 ScopedReport R(Opts, Loc, ET); 74 Diag(Loc, DL_Error, ET, "%0 null pointer of type %1") 78 Diag(Loc, DL_Error, ET, "%0 misaligned address %1 for type %3, " 84 Diag(Loc, DL_Error, ET, "%0 address %1 with insufficient space " 113 Location Loc local 169 SourceLocation Loc = Data->Loc.acquire(); local 208 SourceLocation Loc = Data->Loc.acquire(); local 245 SourceLocation Loc = Data->Loc.acquire(); local 290 SourceLocation Loc = Data->Loc.acquire(); local 340 SourceLocation Loc = Data->Loc.acquire(); local 395 SourceLocation Loc = Data->Loc.acquire(); local 441 Location Loc; local 481 SourceLocation Loc = Data->Loc.acquire(); local 514 SourceLocation Loc = Data->Loc.acquire(); local 578 SourceLocation Loc = Data->Loc.acquire(); local 606 SourceLocation Loc = LocPtr->acquire(); local 650 SourceLocation Loc = Data->Loc.acquire(); local 693 SourceLocation Loc = Data->Loc.acquire(); local 756 SourceLocation Loc = Data->Loc.acquire(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DebugLoc.h | 34 TrackingMDNodeRef Loc; member in class:llvm::DebugLoc 63 /// the conversion to \c DILocation, this doesn't require that \c Loc is of 66 explicit operator bool() const { return Loc; } 69 bool hasTrivialDestructor() const { return Loc.hasTrivialDestructor(); } 113 MDNode *getAsMDNode() const { return Loc; } 119 bool operator==(const DebugLoc &DL) const { return Loc == DL.Loc; } 120 bool operator!=(const DebugLoc &DL) const { return Loc != DL.Loc; }
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
H A D | SymbolOccurrences.cpp | 31 for (const auto &Loc : llvm::enumerate(Locations)) { 32 MultipleRanges[Loc.index()] = SourceRange( 33 Loc.value(), 34 Loc.value().getLocWithOffset(NamePieces[Loc.index()].size()));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Error.cpp | 26 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, argument 34 if (Loc.empty()) 35 Loc = NullLoc; 36 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); 37 for (unsigned i = 1; i < Loc.size(); ++i) 38 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, 52 void PrintWarning(const char *Loc, const Twine &Msg) { argument 53 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 62 void PrintError(const char *Loc, const Twine &Msg) { argument 63 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMg [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | TemplateDeduction.h | 48 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo 65 TemplateDeductionInfo(SourceLocation Loc, unsigned DeducedDepth = 0) argument 66 : Loc(Loc), DeducedDepth(DeducedDepth) {} 74 : Deduced(Info.Deduced), Loc(Info.Loc), DeducedDepth(Info.DeducedDepth), 80 return Loc; 140 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument 145 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); 150 void addSuppressedDiagnostic(SourceLocation Loc, argument 318 SourceLocation Loc; member in class:clang::TemplateSpecCandidateSet 328 TemplateSpecCandidateSet(SourceLocation Loc, bool ForTakingAddress = false) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 87 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, argument 93 assert(Loc.hasManager() || Loc.isInvalid()); 97 if (!Loc.isValid()) 99 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); 107 mergeFixits(FixItHints, Loc.getManager(), LangOpts, MergedFixits); 115 FullSourceLoc UnexpandedLoc = Loc; 118 Loc = Loc.getFileLoc(); 120 PresumedLoc PLoc = Loc 165 emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level) argument 190 emitIncludeStackRecursively(FullSourceLoc Loc) argument 219 emitImportStack(FullSourceLoc Loc) argument 231 emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName) argument 261 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, FileID CaretFileID, const SmallVectorImpl<FileID> &CommonArgExpansions, bool IsBegin, const SourceManager *SM, bool &IsTokenRange) argument 316 getMacroArgExpansionFileIDs(SourceLocation Loc, SmallVectorImpl<FileID> &IDs, bool IsBegin, const SourceManager *SM) argument 417 emitCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints) argument 428 emitSingleMacroExpansion( FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges) argument 455 checkLocForMacroArgExpansion(SourceLocation Loc, const SourceManager &SM, SourceLocation ArgumentLoc) argument 483 checkRangesForMacroArgExpansion(FullSourceLoc Loc, ArrayRef<CharSourceRange> Ranges) argument 525 emitMacroExpansions(FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints) argument 592 emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) argument 602 emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument 616 emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 76 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 86 virtual void emitCodeContext(FullSourceLoc Loc, 91 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 92 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 94 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 104 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 106 void emitIncludeStackRecursively(FullSourceLoc Loc); 107 void emitImportStack(FullSourceLoc Loc); 108 void emitImportStackRecursively(FullSourceLoc Loc, StringRe [all...] |
H A D | TextDiagnostic.h | 77 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 86 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 89 emitSnippetAndCaret(Loc, Level, Ranges, Hints); 92 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 94 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 97 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 103 void emitSnippetAndCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level,
|