Home
last modified time | relevance | path

Searched refs:DiagInfo (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp46 AsmPrinter::SrcMgrDiagInfo *DiagInfo = in srcMgrDiagHandler() local
48 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
51 unsigned BufNum = DiagInfo->SrcMgr.FindBufferContainingLoc(Diag.getLoc()); in srcMgrDiagHandler()
53 if (BufNum > 0 && BufNum <= DiagInfo->LocInfos.size()) in srcMgrDiagHandler()
54 LocInfo = DiagInfo->LocInfos[BufNum-1]; in srcMgrDiagHandler()
70 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
75 if (!DiagInfo) { in addInlineAsmDiagBuffer()
76 DiagInfo = std::make_unique<SrcMgrDiagInfo>(); in addInlineAsmDiagBuffer()
79 Context.setInlineSourceManager(&DiagInfo->SrcMgr); in addInlineAsmDiagBuffer()
83 DiagInfo->DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in addInlineAsmDiagBuffer()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp45 AsmPrinter::SrcMgrDiagInfo *DiagInfo = in srcMgrDiagHandler() local
47 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
50 unsigned BufNum = DiagInfo->SrcMgr.FindBufferContainingLoc(Diag.getLoc()); in srcMgrDiagHandler()
52 if (BufNum > 0 && BufNum <= DiagInfo->LocInfos.size()) in srcMgrDiagHandler()
53 LocInfo = DiagInfo->LocInfos[BufNum-1]; in srcMgrDiagHandler()
69 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
74 if (!DiagInfo) { in addInlineAsmDiagBuffer()
75 DiagInfo = std::make_unique<SrcMgrDiagInfo>(); in addInlineAsmDiagBuffer()
78 Context.setInlineSourceManager(&DiagInfo->SrcMgr); in addInlineAsmDiagBuffer()
82 DiagInfo->DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in addInlineAsmDiagBuffer()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp55 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo); in srcMgrDiagHandler() local
56 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
61 if (const MDNode *LocInfo = DiagInfo->LocInfo) { in srcMgrDiagHandler()
72 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
103 SrcMgrDiagInfo DiagInfo; in EmitInlineAsm() local
111 DiagInfo.LocInfo = LocMDNode; in EmitInlineAsm()
112 DiagInfo.DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in EmitInlineAsm()
113 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext(); in EmitInlineAsm()
114 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo); in EmitInlineAsm()
/external/clang/lib/Basic/
DDiagnosticIDs.cpp256 std::vector<DiagDesc> DiagInfo; member in clang::diag::CustomDiagInfo
263 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getDescription()
265 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].second; in getDescription()
270 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getLevel()
272 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].first; in getLevel()
284 unsigned ID = DiagInfo.size()+DIAG_UPPER_LIMIT; in getOrCreateDiagID()
286 DiagInfo.push_back(D); in getOrCreateDiagID()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DRenamerClangTidyCheck.h145 struct DiagInfo { struct
154 virtual DiagInfo GetDiagInfo(const NamingCheckId &ID, argument
DRenamerClangTidyCheck.cpp536 auto DiagInfo = GetDiagInfo(Decl, Failure); in onEndOfTranslationUnit() local
538 DiagInfo.Text + getDiagnosticSuffix(Failure.FixStatus, in onEndOfTranslationUnit()
540 DiagInfo.ApplyArgs(Diag); in onEndOfTranslationUnit()
/external/llvm-project/clang/lib/Basic/
DDiagnosticIDs.cpp361 std::vector<DiagDesc> DiagInfo; member in clang::diag::CustomDiagInfo
368 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getDescription()
370 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].second; in getDescription()
375 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getLevel()
377 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].first; in getLevel()
389 unsigned ID = DiagInfo.size()+DIAG_UPPER_LIMIT; in getOrCreateDiagID()
391 DiagInfo.push_back(D); in getOrCreateDiagID()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DReservedIdentifierCheck.cpp172 RenamerClangTidyCheck::DiagInfo
175 return DiagInfo{Message, [&](DiagnosticBuilder &diag) { in GetDiagInfo()
DReservedIdentifierCheck.h49 DiagInfo GetDiagInfo(const NamingCheckId &ID,
/external/clang/lib/Sema/
DSema.cpp982 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
983 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
984 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1007 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1008 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1009 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1029 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1030 (*Info)->addSuppressedDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1031 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
/external/llvm-project/clang/lib/Sema/
DSema.cpp1373 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1374 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1375 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1398 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1399 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1400 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1420 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1421 (*Info)->addSuppressedDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1422 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
2481 DiagInfoT DiagInfo, MapT &Map, in checkOpenCLDisabledTypeOrDecl() argument
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DIdentifierNamingCheck.h96 DiagInfo GetDiagInfo(const NamingCheckId &ID,
DIdentifierNamingCheck.cpp755 RenamerClangTidyCheck::DiagInfo
758 return DiagInfo{"invalid case style for %0 '%1'", in GetDiagInfo()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DAsmPrinter.h190 mutable std::unique_ptr<SrcMgrDiagInfo> DiagInfo; variable
/external/llvm-project/llvm/include/llvm/CodeGen/
DAsmPrinter.h204 mutable std::unique_ptr<SrcMgrDiagInfo> DiagInfo; variable
/external/llvm-project/clang/include/clang/Sema/
DSema.h10105 bool checkOpenCLDisabledTypeOrDecl(T D, DiagLocT DiagLoc, DiagInfoT DiagInfo,