[Webkit-unassigned] [Bug 229114] New: Fix static analyzer warnings in WTF for clang tidy bugprone-move-forwarding-reference checker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 14 14:35:44 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=229114

            Bug ID: 229114
           Summary: Fix static analyzer warnings in WTF for clang tidy
                    bugprone-move-forwarding-reference checker
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
               URL: https://clang.llvm.org/extra/clang-tidy/checks/bugpron
                    e-move-forwarding-reference.html
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: cdumez at apple.com

Fix static analyzer warnings in WTF for clang tidy bugprone-move-forwarding-reference checker.

See:  <https://clang.llvm.org/extra/clang-tidy/checks/bugprone-move-forwarding-reference.html>

In file included from OpenSource/Source/WTF/wtf/AutomaticThread.cpp:27:
In file included from WebKitBuild/usr/local/include/wtf/AutomaticThread.h:29:
In file included from WebKitBuild/usr/local/include/wtf/Condition.h:30:
In file included from WebKitBuild/usr/local/include/wtf/ParkingLot.h:29:
WebKitBuild/usr/local/include/wtf/ScopedLambda.h:128:55: warning: Forwarding reference passed to std::move(), which may unexpectedly cause lvalues to be moved; use std::forward() instead
    return ScopedLambdaFunctor<FunctionType, Functor>(WTFMove(functor));
                                                      ^
In file included from OpenSource/Source/WTF/wtf/AutomaticThread.cpp:26:
In file included from OpenSource/Source/WTF/config.h:31:
In file included from WebKitBuild/usr/local/include/wtf/FastMalloc.h:26:
WebKitBuild/usr/local/include/wtf/StdLibExtras.h:568:24: note: expanded from macro 'WTFMove'
#define WTFMove(value) std::move<WTF::CheckMoveParameter>(value)
                       ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210814/14d71e6c/attachment.htm>


More information about the webkit-unassigned mailing list