gecko-dev/dom/script
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
..
AutoEntryScript.cpp Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
AutoEntryScript.h Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
LoadedScript.cpp Bug 1501608 - Remove the ELEMENT_SLOT in the ScriptSourceObject and instead use a callback function to return the script element based on the value of the privateValue in the SSO. r=jonco,smaug 2020-05-12 19:28:15 +00:00
LoadedScript.h Bug 1501608 - Remove the ELEMENT_SLOT in the ScriptSourceObject and instead use a callback function to return the script element based on the value of the privateValue in the SSO. r=jonco,smaug 2020-05-12 19:28:15 +00:00
ModuleLoadRequest.cpp
ModuleLoadRequest.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ScriptDecoding.h
ScriptElement.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ScriptElement.h
ScriptKind.h Bug 1501608 - Remove the ELEMENT_SLOT in the ScriptSourceObject and instead use a callback function to return the script element based on the value of the privateValue in the SSO. r=jonco,smaug 2020-05-12 19:28:15 +00:00
ScriptLoadHandler.cpp Bug 1681308 - Add alignment requirement to XDR buffer. r=nbp 2021-01-13 02:18:26 +00:00
ScriptLoadHandler.h Bug 1681308 - Add alignment requirement to XDR buffer. r=nbp 2021-01-13 02:18:26 +00:00
ScriptLoadRequest.cpp Bug 1673931 - Avoid including Element.h from header files. 2020-11-23 16:08:40 +00:00
ScriptLoadRequest.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
ScriptLoader.cpp Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
ScriptLoader.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
ScriptSettings.cpp Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
ScriptSettings.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
ScriptTrace.cpp Bug 1626555 - Add `dom/script` to the list of non-unified-build-compatible directories. r=sg 2020-11-09 16:50:39 +00:00
ScriptTrace.h Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj 2020-07-01 08:34:12 +00:00
moz.build Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
nsIScriptElement.cpp Bug 1673931 - Move parts of implementation of nsIScriptElement to cpp file. r=hsivonen 2020-11-23 16:12:39 +00:00
nsIScriptElement.h Bug 1673931 - Move parts of implementation of nsIScriptElement to cpp file. r=hsivonen 2020-11-23 16:12:39 +00:00
nsIScriptLoaderObserver.idl