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

12345

/external/clang/tools/libclang/
H A DCXStoredDiagnostic.cpp32 switch (Diag.getLevel()) {
44 if (Diag.getLocation().isInvalid())
47 return translateSourceLocation(Diag.getLocation().getManager(),
48 LangOpts, Diag.getLocation());
52 return createCXString(Diag.getMessage(), false);
56 unsigned ID = Diag.getID();
74 return DiagnosticIDs::getCategoryNumberForDiag(Diag.getID());
78 unsigned catID = DiagnosticIDs::getCategoryNumberForDiag(Diag.getID());
83 if (Diag.getLocation().isInvalid())
86 return Diag
[all...]
H A DCIndexDiagnostic.cpp365 enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { argument
366 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag))
371 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { argument
372 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl*>(Diag))
377 CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { argument
378 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
383 CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { argument
387 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
393 unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { argument
394 if (CXDiagnosticImpl *D = static_cast<CXDiagnosticImpl *>(Diag))
404 clang_getDiagnosticCategoryText(CXDiagnostic Diag) argument
410 clang_getDiagnosticNumRanges(CXDiagnostic Diag) argument
416 clang_getDiagnosticRange(CXDiagnostic Diag, unsigned Range) argument
423 clang_getDiagnosticNumFixIts(CXDiagnostic Diag) argument
429 clang_getDiagnosticFixIt(CXDiagnostic Diag, unsigned FixIt, CXSourceRange *ReplacementRange) argument
454 clang_getChildDiagnostics(CXDiagnostic Diag) argument
[all...]
H A DCIndexDiagnostic.h113 const StoredDiagnostic &Diag;
116 CXStoredDiagnostic(const StoredDiagnostic &Diag,
119 Diag(Diag), LangOpts(LangOpts) { }
/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,
71 bool report(const Twine &err, DiagnosticsEngine &Diag);
/external/clang/lib/Basic/
H A DDiagnosticIDs.cpp101 "Diag ID conflict, the enums at the start of clang::diag (in "
171 diag::kind Diag)
174 std::make_pair(Diag, DiagnosticMappingInfo()));
178 Result.first->second = GetDefaultDiagMappingInfo(Diag);
355 const DiagnosticsEngine &Diag) const {
362 return getDiagnosticLevel(DiagID, DiagClass, Loc, Diag);
374 const DiagnosticsEngine &Diag) const {
380 Pos = Diag.GetDiagStatePointForLoc(Loc);
403 if (Diag.EnableAllWarnings && Result == DiagnosticIDs::Ignored &&
412 if (Diag
170 getOrAddMappingInfo( diag::kind Diag) argument
651 EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const argument
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DTextPathDiagnostics.cpp28 DiagnosticsEngine &Diag; member in class:__anon3968::TextPathDiagnostics
32 : OutputFile(output), Diag(diag) {}
66 Diag.getDiagnosticIDs()->getCustomDiagID(DiagnosticIDs::Note,
68 Diag.Report((*I)->getLocation().asLocation(), diagID);
/external/clang/lib/Sema/
H A DTargetAttributesSema.cpp33 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
42 S.Diag(Attr.getLoc(), diag::err_attribute_argument_not_int)
49 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds)
78 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
93 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
128 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 0;
145 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
156 Diag(Range.getBegin(), diag::warn_attribute_ignored) << "dllimport";
169 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 0;
180 S.Diag(Att
[all...]
H A DSemaDeclAttr.cpp204 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Num;
217 S.Diag(Attr.getLoc(), diag::err_attribute_too_few_arguments) << Num;
246 S.Diag(AttrLoc, diag::err_attribute_argument_n_not_int)
253 S.Diag(AttrLoc, diag::err_attribute_argument_out_of_bounds)
260 S.Diag(AttrLoc,
328 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_pointer)
331 S.Diag(Attr.getLoc(), diag::err_attribute_can_be_applied_only_to_value_decl)
368 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_class)
394 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_lockable)
428 S.Diag(Att
[all...]
H A DSemaAttr.cpp150 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed)
177 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported);
185 Diag(PragmaLoc, diag::warn_pragma_options_align_unsupported_option)
208 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment);
233 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k";
235 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal;
249 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifer_and_alignment);
256 Diag(PragmaLoc, diag::warn_pragma_pack_pop_failed)
281 Diag(PragmaLoc, diag::warn_pragma_unused_undeclared_var)
288 Diag(PragmaLo
[all...]
H A DSemaObjCProperty.cpp98 S.Diag(property->getLocation(),
280 Diag(AtLoc, diag::err_duplicate_property);
281 Diag(prevDecl->getLocation(), diag::note_property_declare);
307 Diag(CDecl->getLocation(), diag::err_continuation_class);
349 Diag(AtLoc,
351 Diag(PIDecl->getLocation(), diag::note_property_declare);
364 Diag(AtLoc, diag::warn_property_attr_mismatch);
365 Diag(PIDecl->getLocation(), diag::note_property_declare);
409 Diag(AtLoc, diag)
411 Diag(PIDec
[all...]
H A DSemaStmtAttr.cpp30 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);
56 S.Diag(A.getRange().getBegin(), diag::warn_attribute_invalid_on_stmt)
H A DSemaDecl.cpp244 Diag(NameLoc, diag::err_unknown_type_or_class_name_suggest)
249 Diag(FirstDecl->getLocation(), diag::note_previous_decl)
424 Diag(IILoc, diag::err_unknown_typename_suggest)
432 Diag(IILoc, diag::err_unknown_typename_suggest)
436 Diag(IILoc, diag::err_unknown_nested_typename_suggest)
442 Diag(Result->getLocation(), diag::note_previous_decl)
464 Diag(IILoc, diag::err_template_missing_args) << TplName;
466 Diag(TplDecl->getLocation(), diag::note_template_decl_here)
477 Diag(IILoc, diag::err_unknown_typename) << II;
479 Diag(IILo
[all...]
H A DSemaDeclObjC.cpp106 Diag(loc, diag::err_arc_init_method_unrelated_result_type);
141 Diag(NewMethod->getLocation(),
147 Diag(NewMethod->getLocation(),
154 Diag(Overridden->getLocation(),
158 Diag(Overridden->getLocation(),
164 Diag(NewMethod->getLocation(),
166 Diag(Overridden->getLocation(), diag::note_previous_decl)
171 Diag(NewMethod->getLocation(),
173 Diag(Overridden->getLocation(), diag::note_previous_decl)
185 Diag(newDec
[all...]
H A DSemaType.cpp90 S.Diag(loc, diagID) << name << type;
614 S.Diag(DS.getTypeSpecSignLoc(), diag::ext_invalid_sign_spec)
620 S.Diag(DS.getTypeSpecSignLoc(), diag::ext_invalid_sign_spec)
666 S.Diag(DeclLoc, diag::ext_missing_declspec)
678 S.Diag(DeclLoc, diag::err_missing_type_specifier)
686 S.Diag(DeclLoc, diag::ext_missing_type_specifier)
703 S.Diag(DS.getTypeSpecWidthLoc(),
718 S.Diag(DS.getTypeSpecWidthLoc(),
741 S.Diag(DS.getTypeSpecTypeLoc(), diag::err_double_requires_fp64);
749 S.Diag(D
[all...]
H A DSemaTemplate.cpp235 Diag(IILoc, diag::err_template_kw_missing)
334 Diag(Found.getNameLoc(), diag::err_no_member_template_suggest)
338 Diag(Found.getNameLoc(), diag::err_no_template_suggest)
342 Diag(Template->getLocation(), diag::note_previous_decl)
386 Diag(Found.getNameLoc(),
390 Diag(Found.getRepresentativeDecl()->getLocation(),
393 Diag(FoundOuter.getFoundDecl()->getLocation(),
463 Diag(Loc, diag::err_template_param_shadow)
465 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
588 Diag(EqualLo
5049 int Diag; local
[all...]
H A DSemaStmt.cpp131 S.Diag(Loc, diag::warn_unused_comparison)
138 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
141 S.Diag(Loc, diag::note_equality_comparison_to_assign)
191 Diag(Loc, diag::warn_unused_result) << R1 << R2;
195 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure";
199 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const";
205 Diag(Loc, diag::err_arc_unused_init_message) << R1;
210 Diag(Loc, diag::warn_unused_result) << R1 << R2;
234 Diag(Loc, diag::warn_unused_voidptr)
241 Diag(Lo
[all...]
/external/clang/lib/Lex/
H A DPragma.cpp91 PP.Diag(Tok, diag::warn_pragma_ignored);
182 Diag(PragmaLoc, diag::err__Pragma_malformed);
189 Diag(PragmaLoc, diag::err__Pragma_malformed);
199 Diag(Tok, diag::err_invalid_string_udl);
213 Diag(PragmaLoc, diag::err__Pragma_malformed);
280 Diag(PragmaLoc, diag::err__Pragma_malformed);
298 Diag(PragmaLoc, diag::err_unterminated___pragma);
324 Diag(OnceTok, diag::pp_pragma_once_in_main_file);
362 Diag(Tok, diag::err_pp_invalid_poison);
375 Diag(To
[all...]
H A DPPDirectives.cpp116 Diag(MacroNameTok, diag::err_pp_missing_macro_name);
138 Diag(MacroNameTok, diag::err_pp_operator_used_as_macro_name) << Spelling;
140 Diag(MacroNameTok, diag::err_pp_macro_not_identifier);
144 Diag(MacroNameTok, diag::err_defined_macro_name);
149 Diag(MacroNameTok, diag::pp_redef_builtin_macro);
151 Diag(MacroNameTok, diag::pp_undef_builtin_macro);
191 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint;
241 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
350 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else);
392 if (CondInfo.FoundElse) Diag(To
[all...]
H A DPreprocessorLexer.cpp48 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
/external/clang/lib/Parse/
H A DParsePragma.cpp76 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
83 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
89 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen)
94 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
100 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
127 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack";
159 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_invalid_action);
181 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed);
192 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed);
205 PP.Diag(To
[all...]
H A DParseInit.cpp120 P.Diag(Loc, diag::ext_gnu_missing_equal_designator);
122 P.Diag(Loc, diag::err_expected_equal_designator);
167 Diag(NameLoc, diag::ext_gnu_old_style_field_designator)
189 Diag(Tok.getLocation(), diag::err_expected_field_designator);
338 Diag(Tok, diag::ext_gnu_array_range);
376 Diag(Tok, diag::ext_gnu_missing_equal_designator)
382 Diag(Tok, diag::err_expected_equal_designator);
413 Diag(LBraceLoc, diag::ext_gnu_empty_initializer);
496 Diag(Tok, diag::err_expected_lbrace);
506 Diag(Resul
[all...]
/external/clang/lib/ARCMigrate/
H A DFileRemapper.cpp52 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, argument
55 return initFromFile(infoFile, Diag, ignoreIfFilesChanged);
58 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, argument
72 return report("Error opening file: " + infoFile, Diag);
82 Diag);
89 return report("File does not exist: " + fromFilename, Diag);
95 return report("File does not exist: " + toFilename, Diag);
101 return report("File was modified: " + fromFilename, Diag);
113 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) { argument
118 return report("Could not create directory: " + outputDir, Diag);
124 flushToFile(StringRef outputPath, DiagnosticsEngine &Diag) argument
172 overwriteOriginal(DiagnosticsEngine &Diag, StringRef outputDir) argument
289 report(const Twine &err, DiagnosticsEngine &Diag) argument
[all...]
/external/llvm/tools/llvm-diff/
H A Dllvm-diff.cpp38 SMDiagnostic Diag; local
39 Module *M = ParseIRFile(Name, Diag, Context);
41 Diag.print("llvm-diff", errs());
/external/clang/include/clang/Sema/
H A DDelayedDiagnostic.h50 BaseObjectType(BaseObjectType), Diag(0, Allocator) {
61 Diag(0, Allocator) {
64 bool isQuiet() const { return Diag.getDiagID() == 0; }
90 Diag = PDiag;
95 Diag.Reset(DiagID);
96 return Diag;
99 return Diag;
108 PartialDiagnostic Diag; member in class:clang::sema::AccessedEntity
174 /// Diag(diag.Loc, diag.getForbiddenTypeDiagnostic())
H A DScopeInfo.h133 FunctionScopeInfo(DiagnosticsEngine &Diag) argument
140 ErrorTrap(Diag) { }
233 CapturingScopeInfo(DiagnosticsEngine &Diag, ImplicitCaptureStyle Style) argument
234 : FunctionScopeInfo(Diag), ImpCaptureStyle(Style), CXXThisCaptureIndex(0),
318 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) argument
319 : CapturingScopeInfo(Diag, ImpCap_Block), TheDecl(Block),
367 LambdaScopeInfo(DiagnosticsEngine &Diag, CXXRecordDecl *Lambda, argument
369 : CapturingScopeInfo(Diag, ImpCap_None), Lambda(Lambda),

Completed in 264 milliseconds

12345