Searched refs:Diag (Results 1 - 25 of 130) sorted by relevance

123456

/external/clang/tools/libclang/
H A DCXStoredDiagnostic.cpp31 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();
75 return DiagnosticIDs::getCategoryNumberForDiag(Diag.getID());
79 unsigned catID = DiagnosticIDs::getCategoryNumberForDiag(Diag.getID());
84 if (Diag.getLocation().isInvalid())
87 return Diag
[all...]
H A DCIndexDiagnostic.cpp380 enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { argument
381 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag))
386 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { argument
387 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag))
392 CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { argument
393 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
398 CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { argument
402 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
408 unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { argument
409 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
419 clang_getDiagnosticCategoryText(CXDiagnostic Diag) argument
425 clang_getDiagnosticNumRanges(CXDiagnostic Diag) argument
431 clang_getDiagnosticRange(CXDiagnostic Diag, unsigned Range) argument
438 clang_getDiagnosticNumFixIts(CXDiagnostic Diag) argument
444 clang_getDiagnosticFixIt(CXDiagnostic Diag, unsigned FixIt, CXSourceRange *ReplacementRange) argument
470 clang_getChildDiagnostics(CXDiagnostic Diag) argument
[all...]
H A DCIndexDiagnostic.h113 const StoredDiagnostic &Diag;
116 CXStoredDiagnostic(const StoredDiagnostic &Diag,
119 Diag(Diag), LangOpts(LangOpts) { }
/external/compiler-rt/lib/ubsan/
H A Dubsan_diag.h119 /// Temporary \c Diag instances are created by the handler routines to
122 class Diag { class in namespace:__ubsan
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(Locatio function in class:__ubsan::Diag
[all...]
H A Dubsan_handlers.cc40 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(Lo
[all...]
H A Dubsan_handlers_cxx.cc40 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,
H A Dubsan_diag.cc79 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
[all...]
/external/clang/include/clang/ARCMigrate/
H A DFileRemapper.h45 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/
H A DDiagnosticIDs.cpp100 "Diag ID conflict, the enums at the start of clang::diag (in "
197 DiagnosticsEngine::DiagState::getOrAddMapping(diag::kind Diag) { argument
199 DiagMap.insert(std::make_pair(Diag, DiagnosticMapping()));
203 Result.first->second = GetDefaultDiagMapping(Diag);
385 const DiagnosticsEngine &Diag) const {
392 return toLevel(getDiagnosticSeverity(DiagID, Loc, Diag));
403 const DiagnosticsEngine &Diag) const {
411 Pos = Diag.GetDiagStatePointForLoc(Loc);
422 if (Diag.EnableAllWarnings && Result == diag::Severity::Ignored &&
438 if (Diag
657 EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const argument
[all...]
/external/clang/lib/ARCMigrate/
H A DFileRemapper.cpp50 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, argument
53 return initFromFile(infoFile, Diag, ignoreIfFilesChanged);
56 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, argument
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) { argument
116 return report("Could not create directory: " + outputDir, Diag);
122 flushToFile(StringRef outputPath, DiagnosticsEngine &Diag) argument
168 overwriteOriginal(DiagnosticsEngine &Diag, StringRef outputDir) argument
255 report(const Twine &err, DiagnosticsEngine &Diag) argument
[all...]
/external/clang/lib/Sema/
H A DSemaObjCProperty.cpp98 S.Diag(property->getLocation(),
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,
416 Diag(PIDecl->getLocation(), diag::note_property_declare);
432 Diag(AtLoc, diag::warn_property_attr_mismatch);
433 Diag(PIDecl->getLocation(), diag::note_property_declare);
445 Diag(AtLoc, diag::warn_property_implicitly_mismatched);
446 Diag(PIDec
[all...]
H A DSemaStmtAttr.cpp29 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);
86 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword);
97 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_value);
162 S.Diag(ValueLoc, diag::err_pragma_loop_compatibility)
174 S.Diag(ValueLoc, diag::err_pragma_loop_compatibility)
187 S.Diag(ValueLo
[all...]
H A DSemaDeclAttr.cpp156 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)
234 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type)
242 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds)
249 S.Diag(Attr.getLoc(),
270 Diag(Loc->Loc, diag::err_attribute_argument_type)
287 Diag(ArgExp
[all...]
H A DSemaStmtAsm.cpp48 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(),
115 return StmtError(Diag(OutputExpr->getLocStart(),
131 return StmtError(Diag(Literal->getLocStart(),diag::err_asm_wide_character)
141 return StmtError(Diag(Literal->getLocStart(),
151 return StmtError(Diag(InputExpr->getLocStart(),
159 return StmtError(Diag(InputExp
[all...]
H A DSemaAttr.cpp172 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;
248 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifer_and_alignment);
255 Diag(PragmaLoc, diag::warn_pragma_pop_failed)
320 Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "vtordisp"
377 Diag(Decl->getLocation(), diag::err_section_conflict)
379 Diag(OtherDec
[all...]
H A DSemaOpenMP.cpp515 Diag(ELoc, diag::err_omp_required_method)
519 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl
522 Diag(RD->getLocation(), diag::note_previous_decl) << RD;
581 Diag(Id.getLoc(), Lookup.empty() ? diag::err_undeclared_var_use
588 Diag(Id.getLoc(), diag::err_omp_expected_var_arg) << Id.getName();
589 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at);
598 Diag(Id.getLoc(), diag::err_omp_global_var_arg)
602 Diag(VD->getLocation(),
615 Diag(Id.getLoc(), diag::err_omp_var_scope)
619 Diag(V
[all...]
H A DSemaTemplate.cpp237 Diag(IILoc, diag::err_template_kw_missing)
387 Diag(Found.getNameLoc(),
391 Diag(Found.getRepresentativeDecl()->getLocation(),
394 Diag(FoundOuter.getFoundDecl()->getLocation(),
457 Diag(Loc, diag::err_template_param_shadow)
459 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
584 Diag(EqualLoc, diag::err_template_param_pack_default_arg);
622 Diag(Loc, diag::err_variably_modified_nontype_template_param)
662 Diag(Loc, diag::err_template_nontype_parm_bad_type)
712 Diag(EqualLo
5770 int Diag; local
[all...]
H A DSemaDeclObjC.cpp107 Diag(loc, diag::err_arc_init_method_unrelated_result_type);
141 Diag(NewMethod->getLocation(),
147 Diag(NewMethod->getLocation(),
154 Diag(Overridden->getLocation(),
159 Diag(Overridden->getLocation(),
165 Diag(NewMethod->getLocation(),
167 Diag(Overridden->getLocation(), diag::note_previous_decl)
172 Diag(NewMethod->getLocation(),
174 Diag(Overridden->getLocation(), diag::note_previous_decl)
186 Diag(newDec
[all...]
H A DSemaExprObjC.cpp56 Diag(S->getLocStart(), diag::err_cfstring_literal_not_string_constant)
113 Diag(S->getLocStart(), diag::err_no_nsconstant_string_class) << NSIdent
154 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
161 S.Diag(Loc, diag::err_objc_literal_method_sig)
163 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return)
182 S.Diag(Loc, diag::err_invalid_nsnumber_type)
214 S.Diag(Loc, diag::err_undeclared_nsnumber);
218 S.Diag(Loc, diag::err_undeclared_nsnumber);
380 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection)
396 S.Diag(OrigElemen
[all...]
/external/clang/lib/Lex/
H A DPPDirectives.cpp134 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
161 return Diag(MacroNameTok, diag::err_defined_macro_name);
168 Diag(MacroNameTok, diag::ext_pp_undef_builtin_macro);
232 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint;
282 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
391 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else);
415 if (CondInfo.FoundElse) Diag(To
[all...]
H A DPragma.cpp92 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);
311 Diag(PragmaLoc, diag::err__Pragma_malformed);
329 Diag(PragmaLoc, diag::err_unterminated___pragma);
355 Diag(OnceTok, diag::pp_pragma_once_in_main_file);
393 Diag(Tok, diag::err_pp_invalid_poison);
406 Diag(To
[all...]
H A DPreprocessorLexer.cpp51 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
/external/clang/lib/Parse/
H A DParsePragma.cpp394 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;
518 PP.Diag(PragmaLocation, Flag == Sema::PSF_None ?
655 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
662 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
668 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen)
673 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
679 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
706 PP.Diag(To
[all...]
/external/llvm/tools/llvm-diff/
H A Dllvm-diff.cpp36 SMDiagnostic Diag; local
37 Module *M = ParseIRFile(Name, Diag, Context);
39 Diag.print("llvm-diff", errs());
/external/clang/include/clang/Basic/
H A DDiagnosticIDs.h252 const DiagnosticsEngine &Diag) const LLVM_READONLY;
256 const DiagnosticsEngine &Diag) const LLVM_READONLY;
262 bool ProcessDiag(DiagnosticsEngine &Diag) const;
266 void EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const;

Completed in 276 milliseconds

123456