diff options
| author | 2023-09-06 17:58:59 -0700 | |
|---|---|---|
| committer | 2023-09-06 17:58:59 -0700 | |
| commit | c3e32935494798aa5b7b2a557b29275e21240b02 (patch) | |
| tree | 9e98a328e24c604dd2fc04ef7bbb5a425c89bc25 /libs/androidfw/AttributeResolution.cpp | |
| parent | b303b74e0fa22c1167cfc668e8eb50c99688400c (diff) | |
[RESTRICT AUTOMERGE] Fix std::unique_ptr error with incomplete CommonFeatureGroup
After upgrading libc++, Clang fails to compile DumpManifest.cpp.
prebuilts/clang/host/linux-x86/clang-r498229/include/c++/v1/__memory/unique_ptr.h:63:19: error: invalid application of 'sizeof' to an incomplete type 'aapt::CommonFeatureGroup'
static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type");
^~~~~~~~~~~
Fix the problem by deferring the instantiation of ~unique_ptr, by
making the ManifestExtractor constructor out-of-line and moving it and
the initialization of commonFeatureGroup_ to a point after
CommonFeatureGroup has been defined.
Bug: b/175635923
Test: treehugger
Change-Id: I9ab51f29724fded24773344aa36763ffeea02d00
Merged-In: I9ab51f29724fded24773344aa36763ffeea02d00
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions