diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-03-05 15:59:25 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-03-06 10:04:30 -0800 |
commit | 7a616f65d65e6ff124296520073bc31cc0ad8f87 (patch) | |
tree | e842046e6725376cdac2c8f48e61d83ebd8feb96 /tools/aapt2/xml/XmlDom.cpp | |
parent | 335db814a5a1408b8715ab815c8151fc8eecb892 (diff) |
Suppress bugprone-use-after-move warnings
Bug: 150783499
Test: WITH_TIDY=1 make
Change-Id: Ifdd5d89d2207caba765e8f74e8a86f6b6b4ff609
Diffstat (limited to 'tools/aapt2/xml/XmlDom.cpp')
-rw-r--r-- | tools/aapt2/xml/XmlDom.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/aapt2/xml/XmlDom.cpp b/tools/aapt2/xml/XmlDom.cpp index 9a725fad8727..005eeb936612 100644 --- a/tools/aapt2/xml/XmlDom.cpp +++ b/tools/aapt2/xml/XmlDom.cpp @@ -305,6 +305,8 @@ std::unique_ptr<XmlResource> Inflate(const void* data, size_t len, std::string* if (pending_element == nullptr) { pending_element = util::make_unique<Element>(); } + // pending_element is not nullptr + // NOLINTNEXTLINE(bugprone-use-after-move) pending_element->namespace_decls.push_back(std::move(decl)); break; } |