gecko-dev/dom/serializers
Chris Peterson 2d4ca059e8 Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

The [[nodiscard]] attribute must precede a function declaration's declaration specifiers (like static, extern, inline, or virtual). The __attribute__((warn_unused_result)) attribute does not have this order restriction.

Differential Revision: https://phabricator.services.mozilla.com/D107355
2021-03-10 08:19:25 +00:00
..
moz.build
nsDOMSerializer.cpp
nsDOMSerializer.h
nsDocumentEncoder.cpp
nsHTMLContentSerializer.cpp
nsHTMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
nsIContentSerializer.h
nsIDocumentEncoder.idl
nsPlainTextSerializer.cpp
nsPlainTextSerializer.h
nsXHTMLContentSerializer.cpp
nsXHTMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
nsXMLContentSerializer.cpp
nsXMLContentSerializer.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00