Home
last modified time | relevance | path

Searched refs:diag (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/base/tools/aapt2/java/
DManifestClassGenerator.cpp28 static Maybe<StringPiece16> extractJavaIdentifier(IDiagnostics* diag, const Source& source, in extractJavaIdentifier() argument
41 diag->error(DiagMessage(source) << "empty symbol"); in extractJavaIdentifier()
47 diag->error(DiagMessage(source) in extractJavaIdentifier()
54 diag->error(DiagMessage(source) << "symbol can not start with a digit"); in extractJavaIdentifier()
61 static bool writeSymbol(const Source& source, IDiagnostics* diag, xml::Element* el, in writeSymbol() argument
65 diag->error(DiagMessage(source) << "<" << el->name << "> must define 'android:name'"); in writeSymbol()
69 Maybe<StringPiece16> result = extractJavaIdentifier(diag, source.withLine(el->lineNumber), in writeSymbol()
83 std::unique_ptr<ClassDefinition> generateManifestClass(IDiagnostics* diag, xml::XmlResource* res) { in generateManifestClass() argument
86 diag->error(DiagMessage(res->file.source) << "no root tag defined"); in generateManifestClass()
91 diag->error(DiagMessage(res->file.source) << "no <manifest> root tag defined"); in generateManifestClass()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable.cpp271 IDiagnostics* diag) { in addResource() argument
273 resolveValueCollision, diag); in addResource()
281 IDiagnostics* diag) { in addResource() argument
283 resolveValueCollision, diag); in addResource()
290 IDiagnostics* diag) { in addFileReference() argument
291 return addFileReferenceImpl(name, config, source, path, nullptr, kValidNameChars, diag); in addFileReference()
299 IDiagnostics* diag) { in addFileReferenceAllowMangled() argument
300 return addFileReferenceImpl(name, config, source, path, file, kValidNameMangledChars, diag); in addFileReferenceAllowMangled()
309 IDiagnostics* diag) { in addFileReferenceImpl() argument
315 kValidNameChars, resolveValueCollision, diag); in addFileReferenceImpl()
[all …]
DResourceTable.h200 IDiagnostics* diag);
207 IDiagnostics* diag);
213 IDiagnostics* diag);
220 IDiagnostics* diag);
231 IDiagnostics* diag);
238 IDiagnostics* diag);
243 IDiagnostics* diag);
248 IDiagnostics* diag);
294 IDiagnostics* diag);
303 IDiagnostics* diag);
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp27 SourcePathDiagnostics* diag) { in wrapperTwo() argument
28 return f(el, diag); in wrapperTwo()
51 bool XmlNodeAction::execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, in execute() argument
55 error |= !action(el, diag); in execute()
63 error |= !iter->second.execute(policy, diag, childEl); in execute()
73 diag->error(errorMsg); in execute()
80 bool XmlActionExecutor::execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in execute() argument
82 SourcePathDiagnostics sourceDiag(doc->file.source, diag); in execute()
DXmlActionExecutor_test.cpp42 StdErrDiagnostics diag; in TEST() local
43 ASSERT_TRUE(executor.execute(XmlActionExecutorPolicy::None, &diag, doc.get())); in TEST()
57 StdErrDiagnostics diag; in TEST() local
58 ASSERT_FALSE(executor.execute(XmlActionExecutorPolicy::Whitelist, &diag, doc.get())); in TEST()
DXmlActionExecutor.h71 bool execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, Element* el) const;
97 bool execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, XmlResource* doc) const;
/frameworks/base/tools/aapt2/flatten/
DArchive.cpp35 bool open(IDiagnostics* diag, const StringPiece& outDir) { in open()
39 diag->error(DiagMessage() << "directory " << mOutDir << " does not exist"); in open()
42 diag->error(DiagMessage() << mOutDir << " is not a directory"); in open()
99 bool open(IDiagnostics* diag, const StringPiece& path) { in open()
102 diag->error(DiagMessage() << "failed to open " << path << ": " << strerror(errno)); in open()
165 std::unique_ptr<IArchiveWriter> createDirectoryArchiveWriter(IDiagnostics* diag, in createDirectoryArchiveWriter() argument
169 if (!writer->open(diag, path)) { in createDirectoryArchiveWriter()
175 std::unique_ptr<IArchiveWriter> createZipFileArchiveWriter(IDiagnostics* diag, in createZipFileArchiveWriter() argument
178 if (!writer->open(diag, path)) { in createZipFileArchiveWriter()
DArchive.h58 std::unique_ptr<IArchiveWriter> createDirectoryArchiveWriter(IDiagnostics* diag,
61 std::unique_ptr<IArchiveWriter> createZipFileArchiveWriter(IDiagnostics* diag,
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp29 SourcePathDiagnostics* diag) { in nameIsJavaClassName() argument
46 diag->error(DiagMessage(el->lineNumber) in nameIsJavaClassName()
54 static bool optionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in optionalNameIsJavaClassName() argument
56 return nameIsJavaClassName(el, attr, diag); in optionalNameIsJavaClassName()
61 static bool requiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in requiredNameIsJavaClassName() argument
63 return nameIsJavaClassName(el, attr, diag); in requiredNameIsJavaClassName()
65 diag->error(DiagMessage(el->lineNumber) in requiredNameIsJavaClassName()
70 static bool verifyManifest(xml::Element* el, SourcePathDiagnostics* diag) { in verifyManifest() argument
73 diag->error(DiagMessage(el->lineNumber) << "<manifest> tag is missing 'package' attribute"); in verifyManifest()
76 diag->error(DiagMessage(el->lineNumber) in verifyManifest()
[all …]
DProductFilter.cpp25 IDiagnostics* diag) { in selectProductToKeep() argument
34 diag->error(DiagMessage(configValue->value->getSource()) in selectProductToKeep()
39 diag->note(DiagMessage(previouslySelectedConfigValue->value->getSource()) in selectProductToKeep()
52 diag->error(DiagMessage(configValue->value->getSource()) in selectProductToKeep()
56 diag->note(DiagMessage(previouslyDefaultConfigValue->value->getSource()) in selectProductToKeep()
67 diag->error(DiagMessage() << "no default product defined for resource " << name); in selectProductToKeep()
/frameworks/compile/mclinker/lib/LD/
DStaticResolver.cpp73 fatal(diag::fail_sym_resolution) << __FILE__ << __LINE__ in resolve()
98 ignore(diag::mark_dynamic_defined) << old->name(); in resolve()
111 ignore(diag::comm_refer_to_define) << old->name(); in resolve()
121 ignore(diag::redefine_common) << old->name(); in resolve()
142 ignore(diag::indirect_refer_to_common) << old->name(); in resolve()
147 fatal(diag::indirect_refer_to_inexist) << pNew.name(); in resolve()
181 error(diag::multiple_absolute_definitions) in resolve()
188 error(diag::multiple_definitions) << demangleName(pNew.name()); in resolve()
193 fatal(diag::indirect_refer_to_inexist) << old->name(); in resolve()
203 error(diag::undefined_situation) << action << old->name() in resolve()
DDiagnosticInfos.cpp44 { diag::ENUM, CLASS, STR_SIZE(ADDRDESC, uint16_t), ADDRDESC } \
63 { diag::ENUM, CLASS, STR_SIZE(LOCDESC, uint16_t), LOCDESC } \
123 case diag::multiple_definitions: { in process()
129 case diag::undefined_reference: in process()
130 case diag::undefined_reference_text: { in process()
153 case diag::debug_print_gc_sections: { in process()
DELFObjectReader.cpp168 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
177 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
209 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
219 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
238 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
247 fatal(diag::err_cannot_read_target_section) << (*section)->name(); in readSections()
265 warning(diag::warn_illegal_input_section) in readSections()
281 note(diag::note_has_no_symtab) << pInput.name() << pInput.path() in readSymbols()
288 fatal(diag::fatal_cannot_read_strtab) << pInput.name() << pInput.path() in readSymbols()
DRelocationFactory.cpp37 fatal(diag::reloc_factory_has_not_config); in produce()
63 fatal(diag::unsupported_bitclass) << m_pConfig->targets().triple().str() in produce()
/frameworks/compile/mclinker/lib/MC/
DAttribute.cpp21 error(diag::err_unsupported_whole_archive); in isLegal()
25 error(diag::err_unsupported_as_needed); in isLegal()
29 error(diag::err_unsupported_add_needed); in isLegal()
33 error(diag::err_unsupported_Bdynamic); in isLegal()
37 warning(diag::err_enable_as_needed_on_static_system); in isLegal()
42 warning(diag::err_mix_static_as_needed); in isLegal()
DCommandAction.cpp70 fatal(diag::err_cannot_find_namespec) << namespec(); in activate()
100 fatal(diag::fatal_forbid_nest_group); in activate()
254 fatal(diag::err_cannot_find_scriptfile) << "linker script" in activate()
258 fatal(diag::err_cannot_find_scriptfile) << "version script" in activate()
262 fatal(diag::err_cannot_find_scriptfile) << "dynamic list" in activate()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMELFAttributeData.cpp163 error(diag::error_unknown_cpu_arch) << pInput.name(); in merge()
271 warning(diag::warn_mismatch_cpu_arch_profile) in merge()
283 warning(diag::warn_mismatch_cpu_arch_profile) in merge()
298 warning(diag::error_mismatch_mpextension_use) << pInput.name(); in merge()
321 warning(diag::warn_mismatch_enum_size) in merge()
335 warning(diag::warn_mismatch_fp16_format) << pInput.name(); in merge()
366 warning(diag::warn_unrecognized_virtualization_use) in merge()
378 warning(diag::warn_mismatch_abi_wmmx_args) << pInput.name(); in merge()
390 warning(diag::warn_mismatch_pcs_config) << pInput.name(); in merge()
402 warning(diag::warn_mismatch_r9_use) << pInput.name(); in merge()
[all …]
/frameworks/compile/mclinker/lib/Fragment/
DRelocation.cpp105 error(diag::result_overflow) << pRelocator.getName(type()) in apply()
110 error(diag::result_badreloc) << pRelocator.getName(type()) in apply()
115 fatal(diag::unsupported_relocation) << type() in apply()
120 fatal(diag::unknown_relocation) << type() << symInfo()->name(); in apply()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp59 const Source& source, IDiagnostics* diag) : in PackagePbDeserializer() argument
61 mSource(source), mDiag(diag) { in PackagePbDeserializer()
392 IDiagnostics* diag) { in deserializeTableFromPb() argument
400 diag->error(DiagMessage(source) << "no string pool found"); in deserializeTableFromPb()
408 diag->error(DiagMessage(source) << "invalid string pool"); in deserializeTableFromPb()
417 diag->error(DiagMessage(source) << "invalid source pool"); in deserializeTableFromPb()
427 diag->error(DiagMessage(source) << "invalid symbol pool"); in deserializeTableFromPb()
432 PackagePbDeserializer packagePbDeserializer(&valuePool, &sourcePool, &symbolPool, source, diag); in deserializeTableFromPb()
443 IDiagnostics* diag) { in deserializeCompiledFileFromPb() argument
451 diag->error(DiagMessage(source) << "invalid resource name in compiled file header: " in deserializeCompiledFileFromPb()
[all …]
/frameworks/base/tools/aapt2/compile/
DPng.h35 Png(IDiagnostics* diag) : mDiag(diag) { in Png() argument
DPng.cpp97 IDiagnostics* diag = reinterpret_cast<IDiagnostics*>(png_get_error_ptr(readPtr)); in logWarning() local
98 diag->warn(DiagMessage() << warningMessage); in logWarning()
102 static bool readPng(IDiagnostics* diag, png_structp readPtr, png_infop infoPtr, PngInfo* outInfo) { in readPng() argument
104 diag->error(DiagMessage() << "failed reading png"); in readPng()
230 static void analyze_image(IDiagnostics* diag, const PngInfo& imageInfo, int grayscaleTolerance, in analyze_image() argument
364 diag->note(DiagMessage() in analyze_image()
412 static bool writePng(IDiagnostics* diag, png_structp writePtr, png_infop infoPtr, PngInfo* info, in writePng() argument
415 diag->error(DiagMessage() << "failed to write png"); in writePng()
443 diag->note(DiagMessage() in writePng()
453 analyze_image(diag, *info, grayScaleTolerance, rgbPalette, alphaPalette, in writePng()
[all …]
DCompile.cpp262 IDiagnostics* diag) { in writeHeaderAndBufferToWriter() argument
265 diag->error(DiagMessage(outputPath) << "failed to open file"); in writeHeaderAndBufferToWriter()
281 diag->error(DiagMessage(outputPath) << "failed to write data"); in writeHeaderAndBufferToWriter()
288 diag->error(DiagMessage(outputPath) << "failed to finish writing data"); in writeHeaderAndBufferToWriter()
296 IDiagnostics* diag) { in writeHeaderAndMmapToWriter() argument
299 diag->error(DiagMessage(outputPath) << "failed to open file"); in writeHeaderAndMmapToWriter()
314 diag->error(DiagMessage(outputPath) << "failed to write data"); in writeHeaderAndMmapToWriter()
320 diag->error(DiagMessage(outputPath) << "failed to finish writing data"); in writeHeaderAndMmapToWriter()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsAbiFlags.cpp54 error(diag::error_Mips_abiflags_invalid_size) << pInput.name(); in fillBySection()
60 error(diag::error_Mips_abiflags_invalid_size) << pInput.name(); in fillBySection()
68 error(diag::error_Mips_abiflags_invalid_version) << int(data->version) in fillBySection()
214 warning(diag::warn_Mips_isa_incompatible) << pInput.name(); in isCompatible()
218 warning(diag::warn_Mips_isa_ext_incompatible) << pInput.name(); in isCompatible()
222 warning(diag::warn_Mips_ases_incompatible) << pInput.name(); in isCompatible()
294 warning(diag::warn_Mips_fp_abi_incompatible) << oldAbiName << newAbiName in merge()
/frameworks/compile/mclinker/lib/Script/
DInputCmd.cpp127 fatal(diag::err_cannot_open_input) << path.filename() << path; in activate()
154 fatal(diag::err_cannot_find_namespec) << token->name(); in activate()
174 error(diag::err_cannot_open_input) << (*input)->name() in activate()
207 warning(diag::warn_unrecognized_input_file) in activate()
/frameworks/compile/slang/
Dllvm-rs-cc.cpp211 DiagEngine->Report(clang::diag::err_fe_error_backend) << Message; in LLVMErrorHandler()
257 (void)DiagEngine.setSeverityForGroup(clang::diag::Flavor::WarningOrError, in main()
259 clang::diag::Severity::Error); in main()
263 DiagEngine.Report(clang::diag::err_drv_no_input_files); in main()

1234