Searched refs:Diags (Results 1 - 25 of 132) sorted by relevance

123456

/external/clang/lib/Basic/
H A DWarnings.cpp33 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, argument
38 Diags.Report(isPositive? diag::warn_unknown_warning_option_suggest :
42 Diags.Report(isPositive? diag::warn_unknown_warning_option :
47 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, argument
50 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers
51 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings);
52 Diags.setShowOverloads(Opts.getShowOverloads());
54 Diags.setElideType(Opts.ElideType);
55 Diags.setPrintTemplateTree(Opts.ShowTemplateTree);
56 Diags
[all...]
/external/clang/lib/Frontend/
H A DCreateInvocationFromCommandLine.cpp34 IntrusiveRefCntPtr<DiagnosticsEngine> Diags) {
35 if (!Diags.get()) {
38 Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions);
50 *Diags);
70 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str();
76 Diags->Report(diag::err_fe_expected_clang_command);
86 *Diags))
33 createInvocationFromCommandLine(ArrayRef<const char *> ArgList, IntrusiveRefCntPtr<DiagnosticsEngine> Diags) argument
H A DTextDiagnosticBuffer.cpp48 void TextDiagnosticBuffer::FlushDiagnostics(DiagnosticsEngine &Diags) const {
51 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0"))
54 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Warning, "%0"))
57 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Remark, "%0"))
60 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Note, "%0"))
H A DCompilerInvocation.cpp74 DiagnosticsEngine &Diags) {
92 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags);
138 DiagnosticsEngine &Diags) {
149 Diags.Report(diag::err_drv_invalid_value)
165 Diags.Report(diag::err_drv_invalid_value)
181 Diags.Report(diag::err_drv_invalid_value)
197 Diags.Report(diag::err_drv_invalid_value)
213 Diags.Report(diag::err_drv_invalid_value)
236 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags);
240 Opts.InlineMaxStackDepth, Diags);
73 getOptimizationLevel(ArgList &Args, InputKind IK, DiagnosticsEngine &Diags) argument
137 ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags) argument
302 getCodeModel(ArgList &Args, DiagnosticsEngine &Diags) argument
316 GenerateOptimizationRemarkRegex(DiagnosticsEngine &Diags, ArgList &Args, Arg *RpassArg) argument
329 ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, DiagnosticsEngine &Diags, const TargetOptions &TargetOpts) argument
598 ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args, DiagnosticsEngine *Diags) argument
711 ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, DiagnosticsEngine &Diags) argument
1210 parseMSCVersion(ArgList &Args, DiagnosticsEngine &Diags) argument
1264 ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, DiagnosticsEngine &Diags) argument
1629 ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args, FileManager &FileMgr, DiagnosticsEngine &Diags) argument
1787 CreateFromArgs(CompilerInvocation &Res, const char *const *ArgBegin, const char *const *ArgEnd, DiagnosticsEngine &Diags) argument
1984 getLastArgIntValueImpl(const ArgList &Args, OptSpecifier Id, IntTy Default, DiagnosticsEngine *Diags) argument
2000 getLastArgIntValue(const ArgList &Args, OptSpecifier Id, int Default, DiagnosticsEngine *Diags) argument
2005 getLastArgUInt64Value(const ArgList &Args, OptSpecifier Id, uint64_t Default, DiagnosticsEngine *Diags) argument
2027 createVFSFromCompilerInvocation(const CompilerInvocation &CI, DiagnosticsEngine &Diags) argument
[all...]
H A DVerifyDiagnosticConsumer.cpp31 : Diags(_Diags),
32 PrimaryClient(Diags.getClient()), OwnsPrimaryClient(Diags.ownsClient()),
37 Diags.takeClient();
38 if (Diags.hasSourceManager())
39 setSourceManager(Diags.getSourceManager());
47 Diags.takeClient();
316 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); local
343 Diags.Report(Pos, diag::err_verify_invalid_no_diags)
353 Diags
619 PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr, const_diag_iterator diag_begin, const_diag_iterator diag_end, const char *Kind) argument
647 PrintExpected(DiagnosticsEngine &Diags, SourceManager &SourceMgr, DirectiveList &DL, const char *Kind) argument
692 CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const char *Label, DirectiveList &Left, const_diag_iterator d2_begin, const_diag_iterator d2_end) argument
740 CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, const TextDiagnosticBuffer &Buffer, ExpectedData &ED) argument
[all...]
/external/clang/lib/CodeGen/
H A DModuleBuilder.cpp32 DiagnosticsEngine &Diags; member in class:__anon17874::CodeGeneratorImpl
43 : Diags(diags), CodeGenOpts(CGO),
76 Diags));
83 if (Diags.hasErrorOccurred())
90 if (Diags.hasErrorOccurred())
106 if (Diags.hasErrorOccurred())
127 if (Diags.hasErrorOccurred())
134 if (Diags.hasErrorOccurred())
143 if (Diags.hasErrorOccurred()) {
155 if (Diags
188 CreateLLVMCodeGen(DiagnosticsEngine &Diags, const std::string& ModuleName, const CodeGenOptions &CGO, const TargetOptions & , llvm::LLVMContext& C) argument
[all...]
/external/clang/include/clang/Rewrite/Frontend/
H A DASTConsumers.h31 DiagnosticsEngine &Diags,
36 DiagnosticsEngine &Diags,
H A DFixItRewriter.h58 DiagnosticsEngine &Diags; member in class:clang::FixItRewriter
85 FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
/external/clang/lib/Rewrite/Frontend/
H A DFixItRewriter.cpp30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, argument
33 : Diags(Diags),
39 OwnsClient = Diags.ownsClient();
40 Client = Diags.takeClient();
41 Diags.setClient(this);
45 Diags.takeClient();
46 Diags.setClient(Client, OwnsClient);
98 Diags.Report(clang::diag::err_fe_unable_to_open_output)
192 Diags
[all...]
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp79 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const {
81 Diags.Report(*I);
95 DiagnosticsEngine &Diags; member in class:__anon17682::CaptureDiagnosticConsumer
103 : Diags(diags), DiagClient(client), CapturedDiags(capturedDiags),
141 Diags.setLastDiagnosticIgnored();
178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags(
183 FileMgr, *Diags);
219 IntrusiveRefCntPtr<DiagnosticsEngine> Diags(
222 Diags->setSourceManager(&PP.getSourceManager());
225 arcDiags.reportDiagnostics(*Diags);
[all...]
/external/clang/include/clang/CodeGen/
H A DBackendUtil.h34 void EmitBackendOutput(DiagnosticsEngine &Diags, const CodeGenOptions &CGOpts,
H A DModuleBuilder.h43 CodeGenerator *CreateLLVMCodeGen(DiagnosticsEngine &Diags,
/external/clang/tools/driver/
H A Dcc1_main.cpp46 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); local
48 Diags.Report(diag::err_fe_error_backend) << Message;
86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer);
89 ArgBegin, ArgEnd, Diags);
H A Dcc1as_main.cpp145 const char **ArgEnd, DiagnosticsEngine &Diags);
153 DiagnosticsEngine &Diags) {
167 Diags.Report(diag::err_drv_missing_argument)
176 Diags.Report(diag::err_drv_unknown_argument) << (*it)->getAsString(*Args);
217 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(*Args);
232 Diags.Report(diag::err_drv_invalid_value)
243 getLastArgIntValue(*Args.get(), OPT_output_asm_variant, 0, Diags);
255 DiagnosticsEngine &Diags,
270 Diags.Report(diag::err_fe_unable_to_open_output)
280 DiagnosticsEngine &Diags) {
150 CreateFromArgs(AssemblerInvocation &Opts, const char **ArgBegin, const char **ArgEnd, DiagnosticsEngine &Diags) argument
254 GetOutputStream(AssemblerInvocation &Opts, DiagnosticsEngine &Diags, bool Binary) argument
279 ExecuteAssembler(AssemblerInvocation &Opts, DiagnosticsEngine &Diags) argument
415 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); local
[all...]
/external/clang/include/clang/Frontend/
H A DUtils.h179 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
182 /// Return the value of the last argument as an integer, or a default. If Diags
186 DiagnosticsEngine *Diags = nullptr);
190 DiagnosticsEngine &Diags) {
191 return getLastArgIntValue(Args, Id, Default, &Diags);
196 DiagnosticsEngine *Diags = nullptr);
201 DiagnosticsEngine &Diags) {
202 return getLastArgUInt64Value(Args, Id, Default, &Diags);
188 getLastArgIntValue(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, int Default, DiagnosticsEngine &Diags) argument
198 getLastArgUInt64Value(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, uint64_t Default, DiagnosticsEngine &Diags) argument
H A DCompilerInvocation.h47 /// When errors are encountered, return false and, if Diags is non-null,
50 DiagnosticsEngine *Diags = nullptr);
135 /// \param Diags - The diagnostic engine to use for errors.
139 DiagnosticsEngine &Diags);
215 DiagnosticsEngine &Diags);
/external/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp36 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
37 SourceMgr(Diags, FileMgr),
41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts);
47 DiagnosticsEngine Diags; member in class:__anon19547::PPConditionalDirectiveRecordTest
97 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
99 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
H A DPPCallbacksTest.cpp121 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()),
122 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) {
124 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts);
131 DiagnosticsEngine Diags; member in class:__anon19545::PPCallbacksTest
169 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts,
174 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
204 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags,
207 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr,
/external/clang/include/clang/AST/
H A DCommentParser.h46 DiagnosticsEngine &Diags; member in class:clang::comments::Parser
49 return Diags.Report(Loc, DiagID);
94 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
H A DMangle.h52 DiagnosticsEngine &Diags; member in class:clang::MangleContext
63 DiagnosticsEngine &Diags,
65 : Context(Context), Diags(Diags), Kind(Kind) {}
71 DiagnosticsEngine &getDiags() const { return Diags; }
164 DiagnosticsEngine &Diags);
209 DiagnosticsEngine &Diags);
62 MangleContext(ASTContext &Context, DiagnosticsEngine &Diags, ManglerKind Kind) argument
/external/clang/examples/clang-interpreter/
H A Dmain.cpp77 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
78 Driver TheDriver(Path, llvm::sys::getProcessTriple(), Diags);
100 Diags.Report(diag::err_fe_expected_compiler_job) << OS.str();
106 Diags.Report(diag::err_fe_expected_clang_command);
117 Diags);
/external/clang/lib/AST/
H A DMicrosoftMangle.cpp95 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) argument
96 : MicrosoftMangleContext(Context, Diags) {}
363 DiagnosticsEngine &Diags = Context.getDiags(); local
364 unsigned DiagID = Diags.getCustomDiagID(
366 Diags.Report(D->getLocation(), DiagID) << D->getSourceRange();
820 DiagnosticsEngine &Diags = Context.getDiags(); local
822 Diags.getCustomDiagID(DiagnosticsEngine::Error,
824 Diags.Report(BD->getLocation(), DiagID);
982 DiagnosticsEngine &Diags = Context.getDiags(); local
983 unsigned DiagID = Diags
1097 DiagnosticsEngine &Diags = Context.getDiags(); local
1504 DiagnosticsEngine &Diags = Context.getDiags(); local
1706 DiagnosticsEngine &Diags = Context.getDiags(); local
1783 DiagnosticsEngine &Diags = Context.getDiags(); local
1793 DiagnosticsEngine &Diags = Context.getDiags(); local
1833 DiagnosticsEngine &Diags = Context.getDiags(); local
1843 DiagnosticsEngine &Diags = Context.getDiags(); local
1888 DiagnosticsEngine &Diags = Context.getDiags(); local
1931 DiagnosticsEngine &Diags = Context.getDiags(); local
1939 DiagnosticsEngine &Diags = Context.getDiags(); local
1975 DiagnosticsEngine &Diags = Context.getDiags(); local
1984 DiagnosticsEngine &Diags = Context.getDiags(); local
1994 DiagnosticsEngine &Diags = Context.getDiags(); local
2003 DiagnosticsEngine &Diags = Context.getDiags(); local
2012 DiagnosticsEngine &Diags = Context.getDiags(); local
2021 DiagnosticsEngine &Diags = Context.getDiags(); local
2030 DiagnosticsEngine &Diags = Context.getDiags(); local
2039 DiagnosticsEngine &Diags = Context.getDiags(); local
2049 DiagnosticsEngine &Diags = Context.getDiags(); local
2058 DiagnosticsEngine &Diags = Context.getDiags(); local
2565 create(ASTContext &Context, DiagnosticsEngine &Diags) argument
[all...]
/external/clang/tools/diagtool/
H A DShowEnabledWarnings.cpp103 IntrusiveRefCntPtr<DiagnosticsEngine> Diags = createDiagnostics(argc, argv); local
104 if (!Diags) {
128 Diags->getDiagnosticLevel(DiagID, SourceLocation());
/external/clang/lib/Lex/
H A DModuleMap.cpp62 Diags.Report(Id[0].second, diag::err_mmap_missing_module_unqualified)
73 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified)
86 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, argument
89 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target),
288 Diags.Report(FilenameLoc, diag::error_use_of_private_header_outside_module)
295 Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module)
306 Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module)
312 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName();
975 DiagnosticsEngine &Diags; member in class:clang::ModuleMapParser
1027 ModuleMapParser(Lexer &L, SourceManager &SourceMgr, const TargetInfo *Target, DiagnosticsEngine &Diags, ModuleMap &Map, const FileEntry *ModuleMapFile, const DirectoryEntry *Directory, const DirectoryEntry *BuiltinIncludeDir, bool IsSystem) argument
[all...]
/external/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp108 std::vector<Record*> Diags = local
110 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
111 std::string Category = getDiagnosticCategory(Diags[i], ParentInfo);
166 static void groupDiagnostics(const std::vector<Record*> &Diags, argument
170 for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
171 const Record *R = Diags[i];
299 const std::vector<Record*> &Diags; member in class:__anon19559::InferPedantic
306 const std::vector<Record*> &Diags,
310 Diags(Diags),
305 InferPedantic(DiagGroupParentMap &DiagGroupParents, const std::vector<Record*> &Diags, const std::vector<Record*> &DiagGroups, std::map<std::string, GroupInfo> &DiagsInGroup) argument
497 const std::vector<Record*> &Diags = local
829 std::vector<Record *> Diags = Records.getAllDerivedDefinitions("Diagnostic"); local
880 const std::vector<Record*> &Diags = local
[all...]

Completed in 922 milliseconds

123456