/external/clang/tools/libclang/ |
CXStoredDiagnostic.cpp | 31 switch (Diag.getLevel()) { 45 if (Diag.getLocation().isInvalid()) 48 return translateSourceLocation(Diag.getLocation().getManager(), 49 LangOpts, Diag.getLocation()); 53 return cxstring::createRef(Diag.getMessage()); 57 unsigned ID = Diag.getID(); 65 if (ID == diag::fatal_too_many_errors) { 75 return DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 79 unsigned catID = DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 84 if (Diag.getLocation().isInvalid() [all...] |
CIndexDiagnostic.cpp | 380 enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { 381 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 386 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { 387 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 392 CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { 393 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 398 CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { 402 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 408 unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { 409 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) [all...] |
CIndexDiagnostic.h | 113 const StoredDiagnostic &Diag; 116 CXStoredDiagnostic(const StoredDiagnostic &Diag, 119 Diag(Diag), LangOpts(LangOpts) { }
|
/external/compiler-rt/lib/ubsan/ |
ubsan_diag.h | 119 /// Temporary \c Diag instances are created by the handler routines to 122 class Diag { 176 Diag &AddArg(Arg A) { 182 Diag &AddRange(Range A) { 188 /// \c Diag objects are not copyable. 189 Diag(const Diag &); // NOT IMPLEMENTED 190 Diag &operator=(const Diag &); 193 Diag(Location Loc, DiagLevel Level, const char *Message [all...] |
ubsan_handlers.cc | 40 Diag(Loc, DL_Error, "%0 null pointer of type %1") 43 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, " 48 Diag(Loc, DL_Error, "%0 address %1 with insufficient space " 52 Diag(Pointer, DL_Note, "pointer points here"); 73 Diag(Loc, DL_Error, "%0 integer overflow: " 119 Diag(Loc, DL_Error, 124 Diag(Loc, DL_Error, 143 Diag(Loc, DL_Error, 147 Diag(Loc, DL_Error, "division by zero"); 166 Diag(Loc, DL_Error, "shift exponent %0 is negative") << RHSVal [all...] |
ubsan_handlers_cxx.cc | 40 Diag(Loc, DL_Error, 47 Diag(Pointer, DL_Note, "object has invalid vptr") 51 Diag(Pointer, DL_Note, "object is of type %0") 57 Diag(Pointer - DTI.getOffset(), DL_Note,
|
ubsan_diag.cc | 79 Diag &Diag::operator<<(const TypeDescriptor &V) { 83 Diag &Diag::operator<<(const Value &V) { 134 static void renderText(const char *Message, const Diag::Arg *Args) { 145 const Diag::Arg &A = Args[*++Msg - '0']; 147 case Diag::AK_String: 150 case Diag::AK_Mangled: { 154 case Diag::AK_SInt: 161 case Diag::AK_UInt [all...] |
/external/clang/include/clang/ARCMigrate/ |
FileRemapper.h | 45 bool initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 47 bool initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 49 bool flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag); 50 bool flushToFile(StringRef outputPath, DiagnosticsEngine &Diag); 52 bool overwriteOriginal(DiagnosticsEngine &Diag, 68 bool report(const Twine &err, DiagnosticsEngine &Diag);
|
/external/clang/lib/Basic/ |
DiagnosticIDs.cpp | 69 #define DIAG(ENUM, CLASS, DEFAULT_SEVERITY, DESC, GROUP, SFINAE, NOWERROR, \ 72 diag::ENUM, DEFAULT_SEVERITY, CLASS, DiagnosticIDs::SFINAE, NOWERROR, \ 86 #undef DIAG 100 "Diag ID conflict, the enums at the start of clang::diag (in " 104 "Improperly sorted diag info"); 110 // Out of bounds diag. Can't be in the table. 111 using namespace diag; 148 // If the diag id doesn't match we found a different diag, abort. This ca 252 namespace diag { namespace in namespace:clang [all...] |
/external/clang/lib/ARCMigrate/ |
FileRemapper.cpp | 50 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 53 return initFromFile(infoFile, Diag, ignoreIfFilesChanged); 56 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 71 return report("Error opening file: " + infoFile, Diag); 81 Diag); 88 return report("File does not exist: " + fromFilename, Diag); 94 return report("File does not exist: " + toFilename, Diag); 100 return report("File was modified: " + fromFilename, Diag); 112 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) { 116 return report("Could not create directory: " + outputDir, Diag); [all...] |
/external/clang/lib/Sema/ |
SemaObjCProperty.cpp | 98 S.Diag(property->getLocation(), 99 diag::err_arc_inconsistent_property_ownership) 338 Diag(AtLoc, diag::err_duplicate_property); 339 Diag(prevDecl->getLocation(), diag::note_property_declare); 370 Diag(CDecl->getLocation(), diag::err_continuation_class); 414 Diag(AtLoc, 415 diag::err_type_mismatch_continuation_class) << PDecl->getType() 500 unsigned diag = local [all...] |
SemaStmtAttr.cpp | 29 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) 33 S.Diag(L, diag::note_fallthrough_insert_semi_fixit) 39 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); 52 S.Diag(St->getLocStart(), diag::err_pragma_loop_precedes_nonloop); 78 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword) [all...] |
SemaDeclAttr.cpp | 156 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) 169 S.Diag(Attr.getLoc(), diag::err_attribute_too_few_arguments) 186 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) 190 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) 205 S.Diag(Attr.getLoc(), diag::err_attributes_are_not_compatible 4797 DelayedDiagnostic &diag = const_cast<DelayedDiagnostic&>(*i); local 4865 unsigned diag, diag_message, diag_fwdclass_message; local [all...] |
SemaStmtAsm.cpp | 48 S.Diag(E2->getLocStart(), diag::err_invalid_asm_cast_lvalue) 51 S.Diag(E2->getLocStart(), diag::warn_invalid_asm_cast_lvalue) 93 return StmtError(Diag(AsmString->getLocStart(),diag::err_asm_wide_character) 99 return StmtError(Diag(Literal->getLocStart(),diag::err_asm_wide_character) 108 return StmtError(Diag(Literal->getLocStart(), 109 diag::err_asm_invalid_output_constraint [all...] |
SemaAttr.cpp | 172 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported); 183 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed) 207 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment); 232 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k"; 234 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal [all...] |
SemaOpenMP.cpp | 515 Diag(ELoc, diag::err_omp_required_method) 519 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl 520 : diag::note_defined_here) 522 Diag(RD->getLocation(), diag::note_previous_decl) << RD; 576 ? diag::err_undeclared_var_use_suggest 577 : diag::err_omp_expected_var_arg_suggest) 581 Diag(Id.getLoc(), Lookup.empty() ? diag::err_undeclared_var_us [all...] |
SemaTemplate.cpp | 237 Diag(IILoc, diag::err_template_kw_missing) 339 diagnoseTypo(Corrected, PDiag(diag::err_no_member_template_suggest) 343 diagnoseTypo(Corrected, PDiag(diag::err_no_template_suggest) << Name); 387 Diag(Found.getNameLoc(), 388 diag::ext_nested_name_member_ref_lookup_ambiguous) 391 Diag(Found.getRepresentativeDecl()->getLocation(), 392 diag::note_ambig_member_ref_object_type) 394 Diag(FoundOuter.getFoundDecl()->getLocation(), 395 diag::note_ambig_member_ref_scope) [all...] |
SemaDeclObjC.cpp | 107 Diag(loc, diag::err_arc_init_method_unrelated_result_type); 141 Diag(NewMethod->getLocation(), 142 diag::warn_related_result_type_compatibility_class) 147 Diag(NewMethod->getLocation(), 148 diag::warn_related_result_type_compatibility_protocol) 154 Diag(Overridden->getLocation(), 155 diag::note_related_result_type_family) 159 Diag(Overridden->getLocation(), 160 diag::note_related_result_type_overridden) [all...] |
/external/clang/lib/Lex/ |
PPDirectives.cpp | 134 return Diag(MacroNameTok, diag::err_pp_missing_macro_name); 141 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); 145 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); 149 Diag(MacroNameTok, getLangOpts().MicrosoftExt 150 ? diag::ext_pp_operator_used_as_macro_name 151 : diag::err_pp_operator_used_as_macro_name) 161 return Diag(MacroNameTok, diag::err_defined_macro_name) [all...] |
Pragma.cpp | 92 PP.Diag(Tok, diag::warn_pragma_ignored); 187 Diag(PragmaLoc, diag::err__Pragma_malformed); 194 Diag(PragmaLoc, diag::err__Pragma_malformed); 204 Diag(Tok, diag::err_invalid_string_udl); 218 Diag(PragmaLoc, diag::err__Pragma_malformed) [all...] |
PreprocessorLexer.cpp | 51 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
|
/external/clang/lib/Parse/ |
ParsePragma.cpp | 394 PP.Diag(Tok, diag::err_expected) << tok::l_brace; 439 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << ename; 483 PP.Diag(PragmaLocation, DiagID) << PragmaName; 493 return diag::warn_pragma_expected_lparen; 497 return diag::warn_pragma_expected_section_name; 504 return diag::warn_pragma_expected_action_or_r_paren; 518 PP.Diag(PragmaLocation, Flag == Sema::PSF_None ? 519 diag::warn_pragma_invalid_specific_action [all...] |
/external/llvm/tools/llvm-diff/ |
llvm-diff.cpp | 36 SMDiagnostic Diag; 37 Module *M = ParseIRFile(Name, Diag, Context); 39 Diag.print("llvm-diff", errs());
|
/frameworks/compile/slang/ |
slang_pragma_recorder.cpp | 76 PP.Diag(NextToken->getLocation(), 89 PP.Diag(NextToken->getLocation(), 98 PP.Diag(FirstToken.getLocation(),
|
/external/clang/include/clang/Basic/ |
DiagnosticIDs.h | 27 namespace diag { namespace in namespace:clang 50 #define DIAG(ENUM,FLAGS,DEFAULT_MAPPING,DESC,GROUP,\ 55 #undef DIAG 80 static DiagnosticMapping Make(diag::Severity Severity, bool IsUser, 91 diag::Severity getSeverity() const { return (diag::Severity)Severity; } 92 void setSeverity(diag::Severity Value) { Severity = (unsigned)Value; } 116 diag::CustomDiagInfo *CustomDiagInfo; 232 SmallVectorImpl<diag::kind> &Diags) const; 235 void getAllDiagnostics(SmallVectorImpl<diag::kind> &Diags) const [all...] |