/external/clang/tools/libclang/ |
CXStoredDiagnostic.cpp | 31 switch (Diag.getLevel()) { 43 if (Diag.getLocation().isInvalid()) 46 return translateSourceLocation(Diag.getLocation().getManager(), 47 LangOpts, Diag.getLocation()); 51 return cxstring::createRef(Diag.getMessage()); 55 unsigned ID = Diag.getID(); 63 if (ID == diag::fatal_too_many_errors) { 73 return DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 77 unsigned catID = DiagnosticIDs::getCategoryNumberForDiag(Diag.getID()); 82 if (Diag.getLocation().isInvalid() [all...] |
CIndexDiagnostic.cpp | 364 enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { 365 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 370 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { 371 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag)) 376 CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { 377 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 382 CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { 386 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag)) 392 unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { 393 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 | 113 /// Temporary \c Diag instances are created by the handler routines to 116 class Diag { 170 Diag &AddArg(Arg A) { 176 Diag &AddRange(Range A) { 182 /// \c Diag objects are not copyable. 183 Diag(const Diag &); // NOT IMPLEMENTED 184 Diag &operator=(const Diag &); 187 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 | 40 Diag &Diag::operator<<(const TypeDescriptor &V) { 44 Diag &Diag::operator<<(const Value &V) { 95 static void renderText(const char *Message, const Diag::Arg *Args) { 106 const Diag::Arg &A = Args[*++Msg - '0']; 108 case Diag::AK_String: 111 case Diag::AK_Mangled: { 115 case Diag::AK_SInt: 122 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, 70 bool report(const Twine &err, DiagnosticsEngine &Diag);
|
/external/clang/lib/Basic/ |
DiagnosticIDs.cpp | 69 #define DIAG(ENUM,CLASS,DEFAULT_MAPPING,DESC,GROUP, \ 72 { diag::ENUM, DEFAULT_MAPPING, CLASS, SFINAE, ACCESS, \ 85 #undef DIAG 99 "Diag ID conflict, the enums at the start of clang::diag (in " 103 "Improperly sorted diag info"); 109 // Out of bounds diag. Can't be in the table. 110 using namespace diag; 147 // If the diag id doesn't match we found a different diag, abort. This ca 270 namespace diag { namespace in namespace:clang [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
TextPathDiagnostics.cpp | 28 DiagnosticsEngine &Diag; 31 TextPathDiagnostics(const std::string& output, DiagnosticsEngine &diag) 32 : OutputFile(output), Diag(diag) {} 67 Diag.getDiagnosticIDs()->getCustomDiagID(DiagnosticIDs::Note, 69 Diag.Report((*I)->getLocation().asLocation(), diagID);
|
/external/clang/lib/ARCMigrate/ |
FileRemapper.cpp | 51 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 54 return initFromFile(infoFile, Diag, ignoreIfFilesChanged); 57 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) { 117 return report("Could not create directory: " + outputDir, Diag); [all...] |
/external/clang/lib/Sema/ |
SemaStmtAttr.cpp | 30 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) 35 S.Diag(L, diag::note_fallthrough_insert_semi_fixit) 41 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); 52 S.Diag(A.getLoc(), A.isDeclspecAttribute() ? 53 diag::warn_unhandled_ms_attribute_ignored : 54 diag::warn_unknown_attribute_ignored) << A.getName(); 61 S.Diag(A.getRange().getBegin(), diag::err_attribute_invalid_on_stmt [all...] |
SemaObjCProperty.cpp | 99 S.Diag(property->getLocation(), 100 diag::err_arc_inconsistent_property_ownership) 352 Diag(AtLoc, diag::err_duplicate_property); 353 Diag(prevDecl->getLocation(), diag::note_property_declare); 384 Diag(CDecl->getLocation(), diag::err_continuation_class); 426 Diag(AtLoc, 427 diag::err_type_mismatch_continuation_class) << PDecl->getType() 482 unsigned diag = local [all...] |
TargetAttributesSema.cpp | 33 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) 43 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) 51 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) 81 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) 99 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type [all...] |
SemaOpenMP.cpp | 67 Diag(Id.getLoc(), diag::err_undeclared_var_use_suggest) 71 Diag(Id.getLoc(), diag::err_undeclared_var_use) 75 Diag(Id.getLoc(), diag::err_omp_expected_var_arg_suggest) 83 Diag(Id.getLoc(), diag::err_omp_expected_var_arg_suggest) 85 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at) [all...] |
SemaAttr.cpp | 167 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported); 178 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed) 202 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment); 227 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k"; 229 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal [all...] |
SemaDeclAttr.cpp | 213 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) 227 S.Diag(Attr.getLoc(), diag::err_attribute_too_few_arguments) << Num; 259 S.Diag(AttrLoc, diag::err_attribute_argument_n_type) << Name.c_str() 266 S.Diag(AttrLoc, diag::err_attribute_argument_out_of_bounds) 273 S.Diag(AttrLoc, 274 diag::err_attribute_invalid_implicit_this_argument 5264 DelayedDiagnostic &diag = const_cast<DelayedDiagnostic&>(*i); 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...] |
SemaDeclObjC.cpp | 106 Diag(loc, diag::err_arc_init_method_unrelated_result_type); 140 Diag(NewMethod->getLocation(), 141 diag::warn_related_result_type_compatibility_class) 146 Diag(NewMethod->getLocation(), 147 diag::warn_related_result_type_compatibility_protocol) 153 Diag(Overridden->getLocation(), 154 diag::note_related_result_type_family) 158 Diag(Overridden->getLocation(), 159 diag::note_related_result_type_overridden) [all...] |
/external/clang/lib/Lex/ |
Pragma.cpp | 90 PP.Diag(Tok, diag::warn_pragma_ignored); 185 Diag(PragmaLoc, diag::err__Pragma_malformed); 192 Diag(PragmaLoc, diag::err__Pragma_malformed); 202 Diag(Tok, diag::err_invalid_string_udl); 216 Diag(PragmaLoc, diag::err__Pragma_malformed) [all...] |
PPDirectives.cpp | 151 Diag(MacroNameTok, diag::err_pp_missing_macro_name); 173 Diag(MacroNameTok, diag::err_pp_operator_used_as_macro_name) << Spelling; 175 Diag(MacroNameTok, diag::err_pp_macro_not_identifier); 179 Diag(MacroNameTok, diag::err_defined_macro_name); 184 Diag(MacroNameTok, diag::ext_pp_undef_builtin_macro) [all...] |
/external/clang/lib/Parse/ |
ParsePragma.cpp | 133 PP.Diag(Tok, diag::err_expected_lbrace); 178 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << ename; 204 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) 211 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) 217 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen [all...] |
ParseOpenMP.cpp | 48 Diag(Tok, diag::warn_omp_extra_tokens_at_eol) 59 Diag(Tok, diag::err_omp_unknown_directive); 64 Diag(Tok, diag::err_omp_unexpected_directive) 101 Diag(Tok, diag::warn_omp_extra_tokens_at_eol) 164 Diag(Tok, diag::err_omp_unknown_directive) [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 | 77 PP.Diag(NextToken->getLocation(), 90 PP.Diag(NextToken->getLocation(), 99 PP.Diag(FirstToken.getLocation(),
|