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

12345

/freebsd-10.2-release/contrib/llvm/tools/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,
70 bool report(const Twine &err, DiagnosticsEngine &Diag);
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Basic/
H A DDiagnosticIDs.cpp98 "Diag ID conflict, the enums at the start of clang::diag (in "
201 diag::kind Diag)
204 std::make_pair(Diag, DiagnosticMappingInfo()));
208 Result.first->second = GetDefaultDiagMappingInfo(Diag);
373 const DiagnosticsEngine &Diag) const {
380 return getDiagnosticLevel(DiagID, DiagClass, Loc, Diag);
392 const DiagnosticsEngine &Diag) const {
398 Pos = Diag.GetDiagStatePointForLoc(Loc);
421 if (Diag.EnableAllWarnings && Result == DiagnosticIDs::Ignored &&
430 if (Diag
200 getOrAddMappingInfo( diag::kind Diag) argument
665 EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const argument
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Sema/
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);
52 S.Diag(A.getLoc(), A.isDeclspecAttribute() ?
61 S.Diag(A.getRange().getBegin(), diag::err_attribute_invalid_on_stmt)
H A DTargetAttributesSema.cpp33 S.Diag(Attr.getLoc(), diag::err_attribute_too_many_arguments)
48 S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported)
77 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments)
87 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type)
95 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds)
125 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments)
143 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
155 Diag(Range.getBegin(), diag::warn_attribute_ignored) << "dllimport";
165 Diag(D->getLocation(), diag::warn_attribute_invalid_on_definition)
178 S.Diag(Att
[all...]
H A DSemaObjCProperty.cpp99 S.Diag(property->getLocation(),
367 Diag(AtLoc, diag::err_duplicate_property);
368 Diag(prevDecl->getLocation(), diag::note_property_declare);
399 Diag(CDecl->getLocation(), diag::err_continuation_class);
441 Diag(AtLoc,
443 Diag(PIDecl->getLocation(), diag::note_property_declare);
459 Diag(AtLoc, diag::warn_property_attr_mismatch);
460 Diag(PIDecl->getLocation(), diag::note_property_declare);
472 Diag(AtLoc, diag::warn_property_implicitly_mismatched);
473 Diag(PIDec
[all...]
H A DSemaAttr.cpp167 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;
243 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifer_and_alignment);
250 Diag(PragmaLoc, diag::warn_pragma_pack_pop_failed)
299 Diag(PragmaLoc, diag::warn_pragma_unused_undeclared_var)
306 Diag(PragmaLoc, diag::warn_pragma_unused_expected_var_arg)
313 Diag(PragmaLo
[all...]
H A DSemaDeclAttr.cpp222 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments)
236 S.Diag(Attr.getLoc(), diag::err_attribute_too_few_arguments) << Num;
268 S.Diag(AttrLoc, diag::err_attribute_argument_n_type) << Name.c_str()
275 S.Diag(AttrLoc, diag::err_attribute_argument_out_of_bounds)
282 S.Diag(AttrLoc,
303 Diag(Loc->Loc, diag::err_attribute_argument_type)
320 Diag(ArgExpr->getLocStart(), diag::err_attribute_argument_type)
386 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_pointer)
389 S.Diag(Attr.getLoc(), diag::err_attribute_can_be_applied_only_to_value_decl)
426 S.Diag(Att
[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 DSemaOpenMP.cpp416 Diag(Id.getLoc(), Lookup.empty() ? diag::err_undeclared_var_use
423 Diag(Id.getLoc(), diag::err_omp_expected_var_arg)
425 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at);
434 Diag(Id.getLoc(), diag::err_omp_global_var_arg)
439 Diag(VD->getLocation(),
451 Diag(Id.getLoc(), diag::err_omp_var_scope)
455 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl :
465 Diag(Id.getLoc(), diag::err_omp_var_scope)
469 Diag(VD->getLocation(), IsDecl ? diag::note_previous_decl :
480 Diag(I
[all...]
H A DSemaTemplate.cpp237 Diag(IILoc, diag::err_template_kw_missing)
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);
589 Diag(EqualLoc, diag::err_template_param_pack_default_arg);
627 Diag(Loc, diag::err_variably_modified_nontype_template_param)
667 Diag(Loc, diag::err_template_nontype_parm_bad_type)
717 Diag(EqualLo
5627 int Diag; local
[all...]
H A DSemaDeclObjC.cpp106 Diag(loc, diag::err_arc_init_method_unrelated_result_type);
140 Diag(NewMethod->getLocation(),
146 Diag(NewMethod->getLocation(),
153 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.cpp93 S.Diag(loc, diag::warn_type_attribute_wrong_type) << name << WhichType
730 S.Diag(DS.getTypeSpecSignLoc(), diag::ext_invalid_sign_spec)
736 S.Diag(DS.getTypeSpecSignLoc(), diag::ext_invalid_sign_spec)
787 S.Diag(DeclLoc, diag::ext_missing_declspec)
797 S.Diag(DeclLoc, diag::err_missing_type_specifier)
805 S.Diag(DeclLoc, diag::ext_missing_type_specifier)
823 S.Diag(DS.getTypeSpecWidthLoc(),
827 S.Diag(DS.getTypeSpecWidthLoc(), diag::ext_c99_longlong);
842 S.Diag(DS.getTypeSpecWidthLoc(),
846 S.Diag(D
[all...]
H A DSemaDecl.cpp451 Diag(IILoc, diag::err_template_missing_args) << TplName;
453 Diag(TplDecl->getLocation(), diag::note_template_decl_here)
464 Diag(IILoc, diag::err_unknown_typename) << II;
466 Diag(IILoc, diag::err_typename_nested_not_found)
473 Diag(SS->getRange().getBegin(), DiagID)
540 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
546 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
1361 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint;
1369 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
1518 Diag(Lo
2060 unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() == local
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DFileRemapper.cpp51 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, argument
54 return initFromFile(infoFile, Diag, ignoreIfFilesChanged);
57 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
117 return report("Could not create directory: " + outputDir, Diag);
123 flushToFile(StringRef outputPath, DiagnosticsEngine &Diag) argument
170 overwriteOriginal(DiagnosticsEngine &Diag, StringRef outputDir) argument
274 report(const Twine &err, DiagnosticsEngine &Diag) argument
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Parse/
H A DParsePragma.cpp133 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)
222 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
228 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
255 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "pack";
286 PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_invalid_action);
306 PP.Diag(To
[all...]
H A DParseOpenMP.cpp49 Diag(Tok, diag::warn_omp_extra_tokens_at_eol)
60 Diag(Tok, diag::err_omp_unknown_directive);
65 Diag(Tok, diag::err_omp_unexpected_directive)
106 Diag(Tok, diag::warn_omp_extra_tokens_at_eol)
173 Diag(Tok, diag::err_omp_unknown_directive);
178 Diag(Tok, diag::err_omp_unexpected_directive)
228 Diag(PrevTok.getLocation(), diag::err_expected_ident)
244 Diag(Tok, diag::err_expected_ident);
265 Diag(Tok, diag::err_omp_unexpected_clause)
276 Diag(To
[all...]
H A DParseObjc.cpp30 Diag(Tok, diag::err_objc_postfix_attribute_hint)
33 Diag(Tok, diag::err_objc_postfix_attribute);
88 Diag(AtLoc, diag::err_unexpected_at);
110 Diag(Tok, diag::err_expected_ident);
145 Diag(AtLoc, diag::err_objc_missing_end)
148 Diag(Decl->getLocStart(), diag::note_objc_container_start)
198 Diag(Tok, diag::err_expected_ident); // missing class or category name.
225 Diag(Tok, diag::err_expected_ident); // missing category name.
234 Diag(nameLoc, diag::err_objc_no_attributes_on_category);
277 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...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Lex/
H A DPPDirectives.cpp151 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);
225 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint;
275 Diag(CurPPLexer->ConditionalStack.back().IfLoc,
384 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_else_after_else);
426 if (CondInfo.FoundElse) Diag(Tok, diag::pp_err_elif_after_else);
511 Diag(To
[all...]
H A DPragma.cpp94 PP.Diag(Tok, diag::warn_pragma_ignored);
189 Diag(PragmaLoc, diag::err__Pragma_malformed);
196 Diag(PragmaLoc, diag::err__Pragma_malformed);
206 Diag(Tok, diag::err_invalid_string_udl);
220 Diag(PragmaLoc, diag::err__Pragma_malformed);
313 Diag(PragmaLoc, diag::err__Pragma_malformed);
331 Diag(PragmaLoc, diag::err_unterminated___pragma);
357 Diag(OnceTok, diag::pp_pragma_once_in_main_file);
395 Diag(Tok, diag::err_pp_invalid_poison);
408 Diag(To
[all...]
H A DPreprocessorLexer.cpp51 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
H A DPPExpressions.cpp108 PP.Diag(PeekTok, diag::err_pp_defined_requires_identifier);
133 PP.Diag(PeekTok.getLocation(), diag::err_pp_missing_rparen) << "defined";
134 PP.Diag(LParenLoc, diag::note_matching) << "(";
196 PP.Diag(PeekTok, diag::warn_pp_undef_identifier) << II;
206 PP.Diag(PeekTok, diag::err_pp_expr_bad_token_start_expr);
211 PP.Diag(PeekTok, diag::err_pp_expected_value_in_expr);
226 PP.Diag(PeekTok, diag::err_pp_illegal_floating_literal);
233 PP.Diag(PeekTok, diag::err_pp_invalid_udl) << /*integer*/1;
238 PP.Diag(PeekTok,
242 PP.Diag(PeekTo
[all...]
/freebsd-10.2-release/contrib/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());
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Driver/
H A DSanitizerArgs.cpp82 D.Diag(diag::err_drv_argument_not_allowed_with)
90 D.Diag(diag::err_drv_argument_not_allowed_with)
96 D.Diag(diag::err_drv_argument_not_allowed_with)
107 D.Diag(diag::err_drv_argument_not_allowed_with)
111 D.Diag(diag::err_drv_argument_not_allowed_with)
115 D.Diag(diag::err_drv_argument_not_allowed_with)
119 D.Diag(diag::err_drv_argument_not_allowed_with)
123 D.Diag(diag::err_drv_argument_not_allowed_with)
135 D.Diag(diag::warn_drv_unused_sanitizer)
150 D.Diag(dia
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DDelayedDiagnostic.h51 BaseObjectType(BaseObjectType), Diag(0, Allocator) {
62 Diag(0, Allocator) {
65 bool isQuiet() const { return Diag.getDiagID() == 0; }
91 Diag = PDiag;
96 Diag.Reset(DiagID);
97 return Diag;
100 return Diag;
109 PartialDiagnostic Diag; member in class:clang::sema::AccessedEntity
176 /// Diag(diag.Loc, diag.getForbiddenTypeDiagnostic())

Completed in 206 milliseconds

12345