| /src/external/apache2/llvm/dist/clang/tools/libclang/ |
| CXStoredDiagnostic.cpp | 27 switch (Diag.getLevel()) { 41 if (Diag.getLocation().isInvalid()) 44 return translateSourceLocation(Diag.getLocation().getManager(), 45 LangOpts, Diag.getLocation()); 49 return cxstring::createRef(Diag.getMessage()); 53 unsigned ID = Diag.getID(); 61 if (ID == diag::fatal_too_many_errors) { 71 return DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 75 unsigned catID = DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 80 if (Diag.getLocation().isInvalid() [all...] |
| CIndexDiagnostic.cpp | 366 enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { 367 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 372 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { 373 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 378 CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { 379 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 384 CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { 388 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 394 unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { 395 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
| DiagnosticError.h | 22 DiagnosticError(PartialDiagnosticAt Diag) : Diag(std::move(Diag)) {} 26 PartialDiagnosticAt &getDiagnostic() { return Diag; } 27 const PartialDiagnosticAt &getDiagnostic() const { return Diag; } 31 static llvm::Error create(SourceLocation Loc, PartialDiagnostic Diag) { 33 PartialDiagnosticAt(Loc, std::move(Diag))); 55 PartialDiagnosticAt Diag;
|
| Stack.h | 35 void runWithSufficientStackSpaceSlow(llvm::function_ref<void()> Diag, 39 /// is insufficient, calls Diag to emit a diagnostic before calling Fn. 40 inline void runWithSufficientStackSpace(llvm::function_ref<void()> Diag, 44 runWithSufficientStackSpaceSlow(Diag, Fn); 49 Diag();
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| OptionalDiagnostic.h | 29 PartialDiagnostic *Diag; 32 explicit OptionalDiagnostic(PartialDiagnostic *Diag = nullptr) : Diag(Diag) {} 35 if (Diag) 36 *Diag << v; 41 if (Diag) { 44 *Diag << StringRef(Buffer.data(), Buffer.size()); 50 if (Diag) { 61 *Diag << StringRef(Buffer.data(), Buffer.size()) [all...] |
| /src/external/apache2/llvm/dist/clang/tools/diagtool/ |
| FindDiagnosticID.cpp | 23 const DiagnosticRecord &Diag = getDiagnosticForID(DiagID); 24 return Diag.getName(); 31 for (const auto &Diag : Diagnostics) { 32 StringRef DiagName = Diag.getName(); 34 return Diag; 58 Optional<DiagnosticRecord> Diag = 60 if (!Diag) { 71 OS << Diag->DiagID << "\n";
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/ |
| TextDiagnosticBuffer.cpp | 55 auto Diag = Diags.Report(Diags.getCustomDiagID(I.first, "%0")); 60 Diag << Notes[I.second].second; 63 Diag << Warnings[I.second].second; 66 Diag << Remarks[I.second].second; 70 Diag << Errors[I.second].second;
|
| /src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| State.cpp | 20 OptionalDiagnostic State::FFDiag(SourceLocation Loc, diag::kind DiagId, 22 return diag(Loc, DiagId, ExtraNotes, false); 25 OptionalDiagnostic State::FFDiag(const Expr *E, diag::kind DiagId, 27 if (getEvalStatus().Diag) 28 return diag(E->getExprLoc(), DiagId, ExtraNotes, false); 33 OptionalDiagnostic State::FFDiag(const SourceInfo &SI, diag::kind DiagId, 35 if (getEvalStatus().Diag) 36 return diag(SI.getLoc(), DiagId, ExtraNotes, false); 41 OptionalDiagnostic State::CCEDiag(SourceLocation Loc, diag::kind DiagId, 45 if (!getEvalStatus().Diag || !getEvalStatus().Diag->empty()) 86 OptionalDiagnostic State::diag(SourceLocation Loc, diag::kind DiagId, function in class:State [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/ARCMigrate/ |
| FileRemapper.h | 46 bool initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 48 bool initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 50 bool flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag); 51 bool flushToFile(StringRef outputPath, DiagnosticsEngine &Diag); 53 bool overwriteOriginal(DiagnosticsEngine &Diag, 75 bool report(const Twine &err, DiagnosticsEngine &Diag);
|
| /src/external/apache2/llvm/dist/clang/lib/Basic/ |
| DiagnosticIDs.cpp | 35 #define DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, \ 52 #undef DIAG 56 #define DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, \ 73 #undef DIAG 81 #define DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, \ 98 #undef DIAG 135 diag::Flavor getFlavor() const { 136 return Class == CLASS_REMARK ? diag::Flavor::Remark 137 : diag::Flavor::WarningOrError; 148 static_cast<unsigned>(diag::NUM_BUILTIN_##NAME##_DIAGNOSTICS) < [all...] |
| Stack.cpp | 67 void clang::runWithSufficientStackSpaceSlow(llvm::function_ref<void()> Diag, 72 Diag();
|
| /src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
| ubsan_diag.h | 132 /// Temporary \c Diag instances are created by the handler routines to 135 class Diag { 192 Diag &AddArg(Arg A) { 198 Diag &AddRange(Range A) { 204 /// \c Diag objects are not copyable. 205 Diag(const Diag &); // NOT IMPLEMENTED 206 Diag &operator=(const Diag &); 209 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message [all...] |
| ubsan_handlers_cxx.cc | 53 Diag(Loc, DL_Error, ET, 60 Diag(Pointer, DL_Note, ET, 65 Diag(Pointer, DL_Note, ET, "object has invalid vptr") 70 Diag(Pointer, DL_Note, ET, "object is of type %0") 76 Diag(Pointer - DTI.getOffset(), DL_Note, ET, 134 Diag(Loc, DL_Error, ET, 141 Diag(Vtable, DL_Note, ET, "invalid vtable"); 143 Diag(Vtable, DL_Note, ET, "vtable is of type %0") 157 Diag(Loc, DL_Note, ET, "check failed in %0, vtable located in %1")
|
| /src/external/gpl3/gcc/dist/libsanitizer/ubsan/ |
| ubsan_diag.h | 131 /// Temporary \c Diag instances are created by the handler routines to 134 class Diag { 191 Diag &AddArg(Arg A) { 197 Diag &AddRange(Range A) { 203 /// \c Diag objects are not copyable. 204 Diag(const Diag &); // NOT IMPLEMENTED 205 Diag &operator=(const Diag &); 208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message [all...] |
| ubsan_handlers_cxx.cpp | 52 Diag(Loc, DL_Error, ET, 59 Diag(Pointer, DL_Note, ET, 64 Diag(Pointer, DL_Note, ET, "object has invalid vptr") 69 Diag(Pointer, DL_Note, ET, "object is of type %0") 75 Diag(Pointer - DTI.getOffset(), DL_Note, ET, 133 Diag(Loc, DL_Error, ET, 140 Diag(Vtable, DL_Note, ET, "invalid vtable"); 142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") 156 Diag(Loc, DL_Note, ET, "check failed in %0, vtable located in %1") 181 Diag(CallLoc, DL_Error, ET [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
| ubsan_diag.h | 131 /// Temporary \c Diag instances are created by the handler routines to 134 class Diag { 191 Diag &AddArg(Arg A) { 197 Diag &AddRange(Range A) { 203 /// \c Diag objects are not copyable. 204 Diag(const Diag &); // NOT IMPLEMENTED 205 Diag &operator=(const Diag &); 208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message [all...] |
| ubsan_handlers_cxx.cpp | 52 Diag(Loc, DL_Error, ET, 59 Diag(Pointer, DL_Note, ET, 64 Diag(Pointer, DL_Note, ET, "object has invalid vptr") 69 Diag(Pointer, DL_Note, ET, "object is of type %0") 75 Diag(Pointer - DTI.getOffset(), DL_Note, ET, 133 Diag(Loc, DL_Error, ET, 140 Diag(Vtable, DL_Note, ET, "invalid vtable"); 142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") 156 Diag(Loc, DL_Note, ET, "check failed in %0, vtable located in %1") 181 Diag(CallLoc, DL_Error, ET [all...] |
| /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
| FileRemapper.cpp | 49 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 52 return initFromFile(infoFile, Diag, ignoreIfFilesChanged); 55 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 68 return report("Error opening file: " + infoFile, Diag); 78 Diag); 85 return report("File does not exist: " + fromFilename, Diag); 91 return report("File does not exist: " + toFilename, Diag); 97 return report("File was modified: " + fromFilename, Diag); 109 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) { 113 return report("Could not create directory: " + outputDir, Diag); [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaModule.cpp | 43 S.Diag(ImportLoc, (FromInclude && S.isModuleVisible(M)) 44 ? diag::ext_module_import_not_at_top_level_noop 45 : diag::err_module_import_not_at_top_level_fatal) 47 S.Diag(cast<Decl>(DC)->getBeginLoc(), 48 diag::note_module_import_not_at_top_level) 51 S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) 53 S.Diag(ExternCLoc, diag::note_extern_c_begins_here); 110 Diag(ModuleLoc, diag::err_module_interface_implementation_mismatch [all...] |
| SemaDeclAttr.cpp | 221 S.Diag(getAttrLoc(AI), diag::err_attribute_argument_n_type) 225 S.Diag(getAttrLoc(AI), diag::err_attribute_argument_type) 231 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) 237 S.Diag(getAttrLoc(AI), diag::err_attribute_requires_positive_integer) 259 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large 8657 DelayedDiagnostic &diag = const_cast<DelayedDiagnostic&>(*i); local [all...] |
| SemaObjCProperty.cpp | 97 S.Diag(property->getLocation(), 98 diag::err_arc_inconsistent_property_ownership) 398 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) 401 S.Diag(OldProperty->getLocation(), diag::note_property_declare); 428 Diag(CDecl->getLocation(), diag::err_continuation_class); 443 Diag(AtLoc, diag::err_duplicate_property) 458 unsigned diag = local 2015 unsigned diag = local [all...] |
| /src/external/apache2/llvm/dist/clang/examples/Attribute/ |
| Attribute.cpp | 42 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str) 56 S.Diag(Attr.getLoc(), ID); 66 S.Diag(Attr.getLoc(), ID); 78 S.Diag(Attr.getLoc(), ID);
|
| /src/external/apache2/llvm/dist/clang/lib/Lex/ |
| Pragma.cpp | 118 PP.Diag(Tok, diag::warn_pragma_ignored); 217 Diag(PragmaLoc, diag::err__Pragma_malformed); 224 Diag(PragmaLoc, diag::err__Pragma_malformed); 238 Diag(Tok, diag::err_invalid_string_udl); 252 Diag(PragmaLoc, diag::err__Pragma_malformed) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Parse/ |
| ParsePragma.cpp | 110 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) 157 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); 741 PP.Diag(Tok, diag::err_expected) << tok::l_brace; 787 PP.Diag(NameLoc, diag::warn_pragma_expected_predicate) << 1; 799 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << Ident [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| LLVMRemarkStreamer.cpp | 58 LLVMRemarkStreamer::toRemark(const DiagnosticInfoOptimizationBase &Diag) const { 60 R.RemarkType = toRemarkType(static_cast<DiagnosticKind>(Diag.getKind())); 61 R.PassName = Diag.getPassName(); 62 R.RemarkName = Diag.getRemarkName(); 64 GlobalValue::dropLLVMManglingEscape(Diag.getFunction().getName()); 65 R.Loc = toRemarkLocation(Diag.getLocation()); 66 R.Hotness = Diag.getHotness(); 68 for (const DiagnosticInfoOptimizationBase::Argument &Arg : Diag.getArgs()) { 78 void LLVMRemarkStreamer::emit(const DiagnosticInfoOptimizationBase &Diag) { 79 if (!RS.matchesFilter(Diag.getPassName()) [all...] |