gecko-dev/tools/profiler/core
Gerald Squelart b51e0fd0cc Bug 1489944 - Fixed some std::move warnings - r=froydnj
> dom/media/gmp/CDMStorageIdProvider.cpp(63,10):  warning:
> local variable 'storageId' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClip.cpp(581,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClipChain.cpp(88,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/nsDisplayList.cpp(179,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> gfx/thebes/gfxWindowsPlatform.cpp(454,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Will remove std::move().

> gfx/thebes/gfxFontEntry.cpp(245,20):  warning:
> local variable 'name' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> netwerk/cookie/nsCookieService.cpp(4460,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
GetPathFromURI() result is stored in an nsAutoCString, so it might as well return that type.

> toolkit/components/extensions/WebExtensionPolicy.cpp(462,12):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
> toolkit/components/extensions/WebExtensionPolicy.cpp(475,10):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
`result` may be empty or may be arbitrarily long, so I'll use nsCString inside the function.

> toolkit/xre/CmdLineAndEnvUtils.h(349,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Returning an UniquePtr, will remove std::move().
Also will `return s` instead of `return nullptr` when `(!s)`, to avoid extra construction which could also prevent elision (not entirely sure, but it's at least not worse!); and it's clearer that the two `return`s return the same already-constructed on-stack object.

> tools/profiler/core/shared-libraries-win32.cc(111,10):  warning:
> local variable 'version' will be copied despite being returned by name [-Wreturn-std-move]
nsPrintfCString -> nsCString, will add std::move().

> xpcom/glue/FileUtils.cpp(179,10):  warning:
> local variable 'fullName' will be copied despite being returned by name [-Wreturn-std-move]
> xpcom/glue/FileUtils.cpp(209,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
nsAuto{,C}String -> ns{,C}String, will add std::move().

This allowed removals of 'AllowCompilerWarnings' from layout/painting,
netwerk/cookie, and toolkit/components/extensions.

Differential Revision: https://phabricator.services.mozilla.com/D5425

--HG--
extra : moz-landing-system : lando
2018-09-10 15:51:48 +00:00
..
vtune Backed out changeset e17f5abb8114 (bug 1472268) for build bustages on /src/js/src/vtune/ittnotify_static.c on a CLOSED TREE 2018-07-02 00:59:56 +03:00
EHABIStackWalk.cpp Bug 1448027 - make constructors in the profiler explicit; r=mstange 2018-03-27 10:51:32 -04:00
EHABIStackWalk.h
PlatformMacros.h Bug 1485716 - part 3 - add aarch64 windows support to the profiler; r=mstange 2018-08-23 16:48:53 -04:00
ProfileBuffer.cpp bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange 2018-08-17 19:45:39 +00:00
ProfileBuffer.h bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange 2018-08-17 19:45:39 +00:00
ProfileBufferEntry.cpp bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange 2018-08-17 19:45:39 +00:00
ProfileBufferEntry.h bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange 2018-08-17 19:45:39 +00:00
ProfileJSONWriter.cpp Backed out changeset 463f7fc23171 (bug 1466783) build bustages on a CLOSED TREE 2018-07-05 13:26:40 +03:00
ProfileJSONWriter.h Backed out changeset 463f7fc23171 (bug 1466783) build bustages on a CLOSED TREE 2018-07-05 13:26:40 +03:00
ProfiledThreadData.cpp bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange 2018-08-17 19:45:39 +00:00
ProfiledThreadData.h Bug 1447338 - Add thread "responsiveness" as a configurable feature to the Gecko Profiler; r=mstange 2018-03-28 15:28:54 -05:00
ProfilerBacktrace.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ProfilerBacktrace.h
ProfilerMarker.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ProfilerMarkerPayload.cpp Bug 1447973 - Convert DOMEvent markers to use tracing markers r=mstange 2018-05-21 23:54:44 +02:00
RegisteredThread.cpp Backed out 2 changesets (bug 1439014) for failing mochitest chrome and test verify on tools/profiler/tests/chrome/test_profile_with_trackopts.html 2018-03-27 06:48:42 +03:00
RegisteredThread.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ThreadInfo.h Bug 1460973 - Set the thread register time of the Java thread to the process creation time. r=gregtatum 2018-05-24 23:34:23 -04:00
VTuneProfiler.cpp Bug 1432570: Add support for TRACING_EVENT type markers. r=mstange 2018-01-25 18:47:00 +00:00
VTuneProfiler.h Bug 1429623: Report tracing events and thread registration to VTune when --enable-vtune is enabled. r=mstange r=ted 2018-01-19 17:19:29 +01:00
platform-linux-android.cpp Backed out changeset 98e368b5c4be (bug 1463035) for failures in tools/profiler/tests/chrome/test_profile_worker.html on a CLOSED TREE 2018-05-22 03:16:44 +03:00
platform-macos.cpp Bug 1453795 - Gecko Profiler - Initialize member fields in classes/ structures. r=mstange 2018-06-13 22:36:24 +03:00
platform-win32.cpp Bug 1487109 - use a more portable idiom for pausing in SamplerThread::SleepMicro; r=mstange 2018-08-29 17:24:34 -04:00
platform.cpp Bug 1485716 - part 3 - add aarch64 windows support to the profiler; r=mstange 2018-08-23 16:48:53 -04:00
platform.h Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj 2017-10-23 20:59:55 +02:00
shared-libraries-linux.cc Bug 1477009 - use a dependent CString on Android for finding breakpad ids; r=njn 2018-07-26 09:47:05 -04:00
shared-libraries-macos.cc Bug 1471347 - part 2 - store an nsCString for SharedLibrary::mBreakpadId; r=njn 2018-07-19 10:32:07 -04:00
shared-libraries-win32.cc Bug 1489944 - Fixed some std::move warnings - r=froydnj 2018-09-10 15:51:48 +00:00