Home
last modified time | relevance | path

Searched refs:Diags (Results 1 – 25 of 138) sorted by relevance

123456

/external/clang/lib/Basic/
DWarnings.cpp35 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, in EmitUnknownDiagWarning() argument
39 Diags.Report(diag::warn_unknown_diag_option) in EmitUnknownDiagWarning()
44 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, in ProcessWarningOptions() argument
47 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers in ProcessWarningOptions()
48 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings); in ProcessWarningOptions()
49 Diags.setShowOverloads(Opts.getShowOverloads()); in ProcessWarningOptions()
51 Diags.setElideType(Opts.ElideType); in ProcessWarningOptions()
52 Diags.setPrintTemplateTree(Opts.ShowTemplateTree); in ProcessWarningOptions()
53 Diags.setShowColors(Opts.ShowColors); in ProcessWarningOptions()
57 Diags.setErrorLimit(Opts.ErrorLimit); in ProcessWarningOptions()
[all …]
/external/clang/unittests/Basic/
DDiagnosticTest.cpp21 DiagnosticsEngine Diags(new DiagnosticIDs(), in TEST() local
24 Diags.setSuppressAllDiagnostics(true); in TEST()
27 DiagnosticErrorTrap trap(Diags); in TEST()
30 Diags.Report(diag::err_target_unknown_triple) << "unknown"; in TEST()
33 Diags.Report(diag::err_cannot_open_file) << "file" << "error"; in TEST()
37 Diags.Report(diag::warn_mt_message) << "warning"; in TEST()
43 EXPECT_FALSE(Diags.hasErrorOccurred()); in TEST()
44 EXPECT_FALSE(Diags.hasFatalErrorOccurred()); in TEST()
45 EXPECT_FALSE(Diags.hasUncompilableErrorOccurred()); in TEST()
46 EXPECT_FALSE(Diags.hasUnrecoverableErrorOccurred()); in TEST()
DSourceManagerTest.cpp37 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in SourceManagerTest()
38 SourceMgr(Diags, FileMgr), in SourceManagerTest()
41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in SourceManagerTest()
47 DiagnosticsEngine Diags; member in __anonce5a69150111::SourceManagerTest
82 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F()
84 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
199 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F()
201 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
297 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F()
299 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
/external/clang/lib/ARCMigrate/
DARCMT.cpp79 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics()
81 Diags.Report(*I); in reportDiagnostics()
95 DiagnosticsEngine &Diags; member in __anoned45e8610111::CaptureDiagnosticConsumer
103 : Diags(diags), DiagClient(client), CapturedDiags(capturedDiags), in CaptureDiagnosticConsumer()
141 Diags.setLastDiagnosticIgnored(); in HandleDiagnostic()
178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration() local
183 FileMgr, *Diags); in createInvocationForMigration()
219 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in emitPremigrationErrors() local
222 Diags->setSourceManager(&PP.getSourceManager()); in emitPremigrationErrors()
225 arcDiags.reportDiagnostics(*Diags); in emitPremigrationErrors()
[all …]
/external/clang/lib/Frontend/
DTextDiagnosticBuffer.cpp48 void TextDiagnosticBuffer::FlushDiagnostics(DiagnosticsEngine &Diags) const { in FlushDiagnostics()
51 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) in FlushDiagnostics()
54 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Warning, "%0")) in FlushDiagnostics()
57 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Remark, "%0")) in FlushDiagnostics()
60 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Note, "%0")) in FlushDiagnostics()
DCompilerInvocation.cpp75 DiagnosticsEngine &Diags) { in getOptimizationLevel() argument
93 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel()
135 DiagnosticsEngine &Diags) { in ParseAnalyzerArgs() argument
146 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
162 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
178 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
194 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
210 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
235 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags); in ParseAnalyzerArgs()
239 Opts.InlineMaxStackDepth, Diags); in ParseAnalyzerArgs()
[all …]
DVerifyDiagnosticConsumer.cpp31 : Diags(Diags_), in VerifyDiagnosticConsumer()
32 PrimaryClient(Diags.getClient()), PrimaryClientOwner(Diags.takeClient()), in VerifyDiagnosticConsumer()
37 if (Diags.hasSourceManager()) in VerifyDiagnosticConsumer()
38 setSourceManager(Diags.getSourceManager()); in VerifyDiagnosticConsumer()
46 Diags.takeClient().release(); in ~VerifyDiagnosticConsumer()
313 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics(); in ParseDirective() local
340 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
350 Diags.Report(Pos, diag::err_verify_invalid_no_diags) in ParseDirective()
406 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
423 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
[all …]
DCreateInvocationFromCommandLine.cpp34 IntrusiveRefCntPtr<DiagnosticsEngine> Diags) { in createInvocationFromCommandLine() argument
35 if (!Diags.get()) { in createInvocationFromCommandLine()
38 Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions); in createInvocationFromCommandLine()
50 *Diags); in createInvocationFromCommandLine()
70 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str(); in createInvocationFromCommandLine()
76 Diags->Report(diag::err_fe_expected_clang_command); in createInvocationFromCommandLine()
86 *Diags)) in createInvocationFromCommandLine()
DCompilerInstance.cpp136 DiagnosticsEngine &Diags) { in SetUpDiagnosticLog() argument
146 Diags.Report(diag::warn_fe_cc_log_diagnostics_failure) in SetUpDiagnosticLog()
161 assert(Diags.ownsClient()); in SetUpDiagnosticLog()
162 Diags.setClient( in SetUpDiagnosticLog()
163 new ChainedDiagnosticConsumer(Diags.takeClient(), std::move(Logger))); in SetUpDiagnosticLog()
167 DiagnosticsEngine &Diags, in SetupSerializedDiagnostics() argument
172 if (Diags.ownsClient()) { in SetupSerializedDiagnostics()
173 Diags.setClient(new ChainedDiagnosticConsumer( in SetupSerializedDiagnostics()
174 Diags.takeClient(), std::move(SerializedConsumer))); in SetupSerializedDiagnostics()
176 Diags.setClient(new ChainedDiagnosticConsumer( in SetupSerializedDiagnostics()
[all …]
/external/clang/lib/CodeGen/
DModuleBuilder.cpp32 DiagnosticsEngine &Diags; member in __anon8d4184ed0111::CodeGeneratorImpl
62 : Diags(diags), Ctx(nullptr), CodeGenOpts(CGO), HandlingTopLevelDecls(0), in CodeGeneratorImpl()
69 Diags.hasErrorOccurred()); in ~CodeGeneratorImpl()
101 Diags, CoverageInfo)); in Initialize()
108 if (Diags.hasErrorOccurred()) in HandleCXXStaticMemberVarInstantiation()
115 if (Diags.hasErrorOccurred()) in HandleTopLevelDecl()
141 if (Diags.hasErrorOccurred()) in HandleInlineMethodDefinition()
168 if (Diags.hasErrorOccurred()) in HandleTagDeclDefinition()
188 if (Diags.hasErrorOccurred()) in HandleTagDeclRequiredDefinition()
197 if (Diags.hasErrorOccurred()) { in HandleTranslationUnit()
[all …]
/external/clang/lib/Lex/
DLiteralSupport.cpp65 static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, in Diag() argument
72 return Diags->Report(Begin, DiagID) << in Diag()
82 DiagnosticsEngine *Diags, in ProcessCharEscape() argument
105 if (Diags) in ProcessCharEscape()
106 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
111 if (Diags) in ProcessCharEscape()
112 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
134 if (Diags) in ProcessCharEscape()
135 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
160 if (Overflow && Diags) // Too many digits to fit in in ProcessCharEscape()
[all …]
DModuleMap.cpp63 Diags.Report(Id[0].second, diag::err_mmap_missing_module_unqualified) in resolveModuleId()
74 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified) in resolveModuleId()
87 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, in ModuleMap() argument
90 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), in ModuleMap()
289 Diags.Report(FilenameLoc, diag::warn_use_of_private_header_outside_module) in diagnoseHeaderInclusion()
296 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module) in diagnoseHeaderInclusion()
307 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module) in diagnoseHeaderInclusion()
313 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName(); in diagnoseHeaderInclusion()
1009 DiagnosticsEngine &Diags; member in clang::ModuleMapParser
1066 DiagnosticsEngine &Diags, in ModuleMapParser() argument
[all …]
DPTHLexer.cpp430 static void InvalidPTH(DiagnosticsEngine &Diags, const char *Msg) { in InvalidPTH() argument
431 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) << Msg; in InvalidPTH()
435 DiagnosticsEngine &Diags) { in Create() argument
442 Diags.Report(diag::err_invalid_pth_file) << file; in Create()
457 Diags.Report(diag::err_invalid_pth_file) << file; in Create()
466 InvalidPTH(Diags, in Create()
477 Diags.Report(diag::err_invalid_pth_file) << file; in Create()
488 Diags.Report(diag::err_invalid_pth_file) << file; in Create()
497 InvalidPTH(Diags, "PTH file contains no cached source data"); in Create()
506 Diags.Report(diag::err_invalid_pth_file) << file; in Create()
[all …]
/external/clang/lib/Frontend/Rewrite/
DFixItRewriter.cpp30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in FixItRewriter() argument
33 : Diags(Diags), in FixItRewriter()
39 Owner = Diags.takeClient(); in FixItRewriter()
40 Client = Diags.getClient(); in FixItRewriter()
41 Diags.setClient(this, false); in FixItRewriter()
45 Diags.setClient(Client, Owner.release() != nullptr); in ~FixItRewriter()
96 Diags.Report(clang::diag::err_fe_unable_to_open_output) << Filename in WriteFixedFiles()
190 Diags.setClient(Client, false); in Diag()
191 Diags.Clear(); in Diag()
192 Diags.Report(Loc, DiagID); in Diag()
[all …]
/external/clang/tools/driver/
Dcc1as_main.cpp149 DiagnosticsEngine &Diags);
156 DiagnosticsEngine &Diags) { in CreateFromArgs() argument
170 Diags.Report(diag::err_drv_missing_argument) in CreateFromArgs()
179 Diags.Report(diag::err_drv_unknown_argument) << (*it)->getAsString(*Args); in CreateFromArgs()
220 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(*Args); in CreateFromArgs()
235 Diags.Report(diag::err_drv_invalid_value) in CreateFromArgs()
246 getLastArgIntValue(*Args.get(), OPT_output_asm_variant, 0, Diags); in CreateFromArgs()
259 getOutputStream(AssemblerInvocation &Opts, DiagnosticsEngine &Diags, in getOutputStream() argument
273 Diags.Report(diag::err_fe_unable_to_open_output) << Opts.OutputPath in getOutputStream()
282 DiagnosticsEngine &Diags) { in ExecuteAssembler() argument
[all …]
Dcc1_main.cpp46 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); in LLVMErrorHandler() local
48 Diags.Report(diag::err_fe_error_backend) << Message; in LLVMErrorHandler()
85 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer); in cc1_main() local
87 Clang->getInvocation(), Argv.begin(), Argv.end(), Diags); in cc1_main()
/external/clang/lib/AST/
DMicrosoftMangle.cpp100 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) in MicrosoftMangleContextImpl() argument
101 : MicrosoftMangleContext(Context, Diags) {} in MicrosoftMangleContextImpl()
390 DiagnosticsEngine &Diags = Context.getDiags(); in mangle() local
391 unsigned DiagID = Diags.getCustomDiagID( in mangle()
393 Diags.Report(D->getLocation(), DiagID) << D->getSourceRange(); in mangle()
850 DiagnosticsEngine &Diags = Context.getDiags(); in mangleNestedName() local
852 Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleNestedName()
854 Diags.Report(BD->getLocation(), DiagID); in mangleNestedName()
1014 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName() local
1015 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName()
[all …]
/external/clang/utils/TableGen/
DClangDiagnosticsEmitter.cpp108 std::vector<Record*> Diags = in DiagCategoryIDMap() local
110 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in DiagCategoryIDMap()
111 std::string Category = getDiagnosticCategory(Diags[i], ParentInfo); in DiagCategoryIDMap()
166 static void groupDiagnostics(const std::vector<Record*> &Diags, in groupDiagnostics() argument
170 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in groupDiagnostics()
171 const Record *R = Diags[i]; in groupDiagnostics()
299 const std::vector<Record*> &Diags; member in __anon0cdd291e0311::InferPedantic
306 const std::vector<Record*> &Diags, in InferPedantic() argument
310 Diags(Diags), in InferPedantic()
400 for (unsigned i = 0, e = Diags.size(); i != e; ++i) { in compute()
[all …]
/external/clang/include/clang/Frontend/
DUtils.h178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
185 DiagnosticsEngine *Diags = nullptr);
189 DiagnosticsEngine &Diags) { in getLastArgIntValue() argument
190 return getLastArgIntValue(Args, Id, Default, &Diags); in getLastArgIntValue()
195 DiagnosticsEngine *Diags = nullptr);
200 DiagnosticsEngine &Diags) { in getLastArgUInt64Value() argument
201 return getLastArgUInt64Value(Args, Id, Default, &Diags); in getLastArgUInt64Value()
/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp36 Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()), in PPConditionalDirectiveRecordTest()
37 SourceMgr(Diags, FileMgr), in PPConditionalDirectiveRecordTest()
41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPConditionalDirectiveRecordTest()
47 DiagnosticsEngine Diags; member in __anondd7146620111::PPConditionalDirectiveRecordTest
97 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts, in TEST_F()
99 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F()
DPPCallbacksTest.cpp116 Diags(DiagID, DiagOpts.get(), new IgnoringDiagConsumer()), in PPCallbacksTest()
117 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in PPCallbacksTest()
119 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPCallbacksTest()
126 DiagnosticsEngine Diags; member in __anon5d7da8300111::PPCallbacksTest
165 HeaderSearch HeaderInfo(HSOpts, SourceMgr, Diags, LangOpts, in InclusionDirectiveFilenameRange()
170 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange()
201 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, in PragmaOpenCLExtensionCall()
204 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr, in PragmaOpenCLExtensionCall()
/external/clang/include/clang/AST/
DMangle.h52 DiagnosticsEngine &Diags; variable
63 DiagnosticsEngine &Diags, in MangleContext() argument
65 : Context(Context), Diags(Diags), Kind(Kind) {} in MangleContext()
71 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags()
178 DiagnosticsEngine &Diags);
237 DiagnosticsEngine &Diags);
/external/clang/examples/clang-interpreter/
Dmain.cpp88 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); in main() local
96 Driver TheDriver(Path, T.str(), Diags); in main()
118 Diags.Report(diag::err_fe_expected_compiler_job) << OS.str(); in main()
124 Diags.Report(diag::err_fe_expected_clang_command); in main()
135 Diags); in main()
/external/clang/tools/clang-fuzzer/
DClangFuzzer.cpp30 IgnoringDiagConsumer Diags; in TestOneInput() local
34 &Diags, false); in TestOneInput()
42 action->runInvocation(Invocation.release(), Files.get(), &Diags); in TestOneInput()
/external/clang/tools/libclang/
DCIndexDiagnostic.cpp232 CXDiagnosticSetImpl *Diags = static_cast<CXDiagnosticSetImpl*>(D); in clang_getDiagnostic() local
233 if (Index >= Diags->getNumDiagnostics()) in clang_getDiagnostic()
236 return Diags->getDiagnostic(Index); in clang_getDiagnostic()
454 void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { in clang_disposeDiagnosticSet() argument
455 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl *>(Diags)) { in clang_disposeDiagnosticSet()
461 CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags, in clang_getDiagnosticInSet() argument
463 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl*>(Diags)) in clang_getDiagnosticInSet()
477 unsigned clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { in clang_getNumDiagnosticsInSet() argument
478 if (CXDiagnosticSetImpl *D = static_cast<CXDiagnosticSetImpl*>(Diags)) in clang_getNumDiagnosticsInSet()

123456