/freebsd-current/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-current/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-current/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 Elifdef(SourceLocation Loc, const Token &, const MacroDefinition &) argument 109 Elifdef(SourceLocation Loc, SourceRange, SourceLocation) argument 115 Elifndef(SourceLocation Loc, const Token &, const MacroDefinition &) argument 120 Elifndef(SourceLocation Loc, SourceRange, SourceLocation) argument 126 Else(SourceLocation Loc, SourceLocation IfLoc) argument 132 Endif(SourceLocation Loc, SourceLocation IfLoc) argument [all...] |
H A D | PPCallbacks.cpp | 17 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, argument 24 void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, argument 27 First->HasInclude(Loc, FileName, IsAngled, File, FileType); 28 Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
|
/freebsd-current/contrib/llvm-project/clang/include/clang/AST/ |
H A D | PrettyDeclStackTrace.h | 32 SourceLocation Loc; member in class:clang::PrettyDeclStackTraceEntry 36 PrettyDeclStackTraceEntry(ASTContext &Ctx, Decl *D, SourceLocation Loc, argument 38 : Context(Ctx), TheDecl(D), Loc(Loc), Message(Msg) {}
|
H A D | TypeLoc.h | 197 void initialize(ASTContext &Context, SourceLocation Loc) const { 198 initializeImpl(Context, *this, Loc); 238 SourceLocation Loc); 297 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 333 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>()) 334 return Loc.getUnqualifiedLoc(); 533 void setNameLoc(SourceLocation Loc) { argument 534 this->getLocalData()->NameLoc = Loc; 541 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument 542 setNameLoc(Loc); 565 setBuiltinLoc(SourceLocation Loc) argument 662 initializeLocal(ASTContext &Context, SourceLocation Loc) argument 779 setNameLoc(SourceLocation Loc) argument 789 setProtocolLAngleLoc(SourceLocation Loc) argument 799 setProtocolRAngleLoc(SourceLocation Loc) argument 966 setTypeArgsLAngleLoc(SourceLocation Loc) argument 974 setTypeArgsRAngleLoc(SourceLocation Loc) argument [all...] |
H A D | CommentBriefParser.h | 38 SourceLocation Loc = Tok.getLocation(); local 40 return Loc;
|
/freebsd-current/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPCallbacks.h | 45 /// \param Loc Indicates the new location. 48 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument 68 /// \param Loc The location where the \p Lexer entered a new file from or the 72 FileID PrevFID, SourceLocation Loc) {} 189 /// \param Loc The location of the directive. 192 virtual void Ident(SourceLocation Loc, StringRef str) { argument 196 virtual void PragmaDirective(SourceLocation Loc, argument 201 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument 206 virtual void PragmaMark(SourceLocation Loc, StringRef Trivia) { argument 211 virtual void PragmaDetectMismatch(SourceLocation Loc, StringRe argument 70 LexedFileChanged(FileID FID, LexedFileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID, SourceLocation Loc) argument 218 PragmaDebug(SourceLocation Loc, StringRef DebugType) argument 238 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument 244 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument 250 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument 255 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Severity mapping, StringRef Str) argument 277 PragmaWarning(SourceLocation Loc, PragmaWarningSpecifier WarningSpec, ArrayRef<int> Ids) argument 282 PragmaWarningPush(SourceLocation Loc, int Level) argument 286 PragmaWarningPop(SourceLocation Loc) argument 291 PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) argument 295 PragmaExecCharsetPop(SourceLocation Loc) argument 299 PragmaAssumeNonNullBegin(SourceLocation Loc) argument 303 PragmaAssumeNonNullEnd(SourceLocation Loc) argument 358 If(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue) argument 368 Elif(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument 376 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 384 Elifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 392 Elifdef(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 400 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 408 Elifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) argument 416 Elifndef(SourceLocation Loc, SourceRange ConditionRange, SourceLocation IfLoc) argument 423 Else(SourceLocation Loc, SourceLocation IfLoc) argument 429 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-current/contrib/llvm-project/llvm/tools/llvm-mca/ |
H A D | CodeRegion.cpp | 19 bool CodeRegion::isLocInRange(SMLoc Loc) const { 20 if (RangeEnd.isValid() && Loc.getPointer() > RangeEnd.getPointer()) 22 if (RangeStart.isValid() && Loc.getPointer() < RangeStart.getPointer()) 28 SMLoc Loc = Instruction.getLoc(); local 30 if (Region->isLocInRange(Loc)) 39 void AnalysisRegions::beginRegion(StringRef Description, SMLoc Loc) { argument 46 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); 54 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, 62 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error, 72 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); 75 endRegion(StringRef Description, SMLoc Loc) argument 117 beginRegion(StringRef Description, SMLoc Loc, UniqueInstrument I) argument 144 endRegion(StringRef Description, SMLoc Loc) argument [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
H A D | SystemZELFObjectWriter.cpp | 45 static unsigned getAbsoluteReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { argument 66 Ctx.reportError(Loc, "Unsupported absolute address"); 71 static unsigned getPCRelReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { argument 92 Ctx.reportError(Loc, "Unsupported PC-relative address"); 97 static unsigned getTLSLEReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { argument 102 Ctx.reportError(Loc, "Unsupported thread-local address (local-exec)"); 107 static unsigned getTLSLDOReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { argument 112 Ctx.reportError(Loc, "Unsupported thread-local address (local-dynamic)"); 117 static unsigned getTLSLDMReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) { argument 123 Ctx.reportError(Loc, "Unsupporte 128 getTLSGDReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) argument 139 getPLTReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) argument 154 SMLoc Loc = Fixup.getLoc(); local [all...] |
/freebsd-current/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-current/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-current/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_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 172 SourceLocation Loc; member in struct:__ubsan::InvalidObjCCast 189 SourceLocation Loc; member in struct:__ubsan::NonNullArgData 200 SourceLocation Loc; member in struct:__ubsan::PointerOverflowData 220 SourceLocation Loc; member in struct:__ubsan::CFICheckFailData 235 SourceLocation Loc; member in struct:__ubsan::FunctionTypeMismatchData [all...] |
H A D | ubsan_monitor.cpp | 18 Location &Loc, 20 : IssueKind(IssueKind), Loc(Loc) { 62 if (!CurrentUBR->Loc.isSourceLocation()) { 66 SourceLocation SL = CurrentUBR->Loc.getSourceLocation(); 72 if (CurrentUBR->Loc.isMemoryLocation()) 73 *OutMemoryAddr = (char *)CurrentUBR->Loc.getMemoryLocation(); 17 UndefinedBehaviorReport(const char *IssueKind, Location &Loc, InternalScopedString &Msg) argument
|
H A D | ubsan_handlers.cpp | 88 Location Loc = Data->Loc.acquire(); local 103 if (ignoreReport(Loc.getSourceLocation(), Opts, ET)) 107 if (Data->Loc.isInvalid()) { 109 Loc = FallbackLoc; 112 ScopedReport R(Opts, Loc, ET); 117 Diag(Loc, DL_Error, ET, "%0 null pointer of type %1") 121 Diag(Loc, DL_Error, ET, "%0 misaligned address %1 for type %3, " 127 Diag(Loc, DL_Error, ET, "%0 address %1 with insufficient space " 156 Location Loc local 212 SourceLocation Loc = Data->Loc.acquire(); local 251 SourceLocation Loc = Data->Loc.acquire(); local 288 SourceLocation Loc = Data->Loc.acquire(); local 333 SourceLocation Loc = Data->Loc.acquire(); local 383 SourceLocation Loc = Data->Loc.acquire(); local 438 SourceLocation Loc = Data->Loc.acquire(); local 484 Location Loc; local 524 SourceLocation Loc = Data->Loc.acquire(); local 557 SourceLocation Loc = Data->Loc.acquire(); local 621 SourceLocation Loc = Data->Loc.acquire(); local 646 SourceLocation Loc = Data->Loc.acquire(); local 679 SourceLocation Loc = LocPtr->acquire(); local 724 SourceLocation Loc = Data->Loc.acquire(); local 768 SourceLocation Loc = Data->Loc.acquire(); local 831 SourceLocation Loc = Data->Loc.acquire(); local [all...] |
/freebsd-current/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(); } 106 MDNode *getAsMDNode() const { return Loc; } 112 bool operator==(const DebugLoc &DL) const { return Loc == DL.Loc; } 113 bool operator!=(const DebugLoc &DL) const { return Loc != DL.Loc; }
|
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
H A D | SymbolOccurrences.cpp | 30 for (const auto &Loc : llvm::enumerate(Locations)) { 31 MultipleRanges[Loc.index()] = SourceRange( 32 Loc.value(), 33 Loc.value().getLocWithOffset(NamePieces[Loc.index()].size()));
|
/freebsd-current/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 : DeducedSugared(Info.DeducedSugared), Loc(Info.Loc), 80 return Loc; 150 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument 155 SuppressedDiagnostics.emplace_back(Loc, std::move(PD)); 160 void addSuppressedDiagnostic(SourceLocation Loc, argument 335 SourceLocation Loc; member in class:clang::TemplateSpecCandidateSet 345 TemplateSpecCandidateSet(SourceLocation Loc, bool ForTakingAddress = false) argument [all...] |
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 86 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, argument 92 assert(Loc.hasManager() || Loc.isInvalid()); 96 if (!Loc.isValid()) 98 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); 106 mergeFixits(FixItHints, Loc.getManager(), LangOpts, MergedFixits); 114 FullSourceLoc UnexpandedLoc = Loc; 117 Loc = Loc.getFileLoc(); 119 PresumedLoc PLoc = Loc 164 emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level) argument 189 emitIncludeStackRecursively(FullSourceLoc Loc) argument 218 emitImportStack(FullSourceLoc Loc) argument 230 emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName) argument 260 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID, FileID CaretFileID, const SmallVectorImpl<FileID> &CommonArgExpansions, bool IsBegin, const SourceManager *SM, bool &IsTokenRange) argument 315 getMacroArgExpansionFileIDs(SourceLocation Loc, SmallVectorImpl<FileID> &IDs, bool IsBegin, const SourceManager *SM) argument 423 emitCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints) argument 434 emitSingleMacroExpansion( FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges) argument 461 checkLocForMacroArgExpansion(SourceLocation Loc, const SourceManager &SM, SourceLocation ArgumentLoc) argument 489 checkRangesForMacroArgExpansion(FullSourceLoc Loc, ArrayRef<CharSourceRange> Ranges) argument 529 emitMacroExpansions(FullSourceLoc Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints) argument 596 emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) argument 606 emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument 620 emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument [all...] |
/freebsd-current/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 | SARIFDiagnostic.h | 36 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 41 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 45 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 49 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 51 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 54 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 61 SarifResult addLocationToResult(SarifResult Result, FullSourceLoc Loc,
|
/freebsd-current/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
H A D | StorageLocation.h | 67 static bool classof(const StorageLocation *Loc) { argument 68 return Loc->getKind() == Kind::Scalar; 106 for (auto [Field, Loc] : Children) { 107 if (!Field->getType()->isReferenceType() && Loc == nullptr) 114 static bool classof(const StorageLocation *Loc) { argument 115 return Loc->getKind() == Kind::Record; 133 for ([[maybe_unused]] auto [Field, Loc] : Children) { 145 StorageLocation *Loc = SyntheticFields.lookup(Name); local 146 assert(Loc != nullptr); 147 return *Loc; 162 setChild(const ValueDecl &D, StorageLocation *Loc) argument [all...] |
/freebsd-current/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
|