[Webkit-unassigned] [Bug 166067] New: check-webkit-style misinterprets 'const' in declarations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 20 09:11:29 PST 2016


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

            Bug ID: 166067
           Summary: check-webkit-style misinterprets 'const' in
                    declarations
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org
                CC: lforschler at apple.com

The 'check-webkit-style' script misinterprets the following method declaration;

    void setOverlayMessage(ErrorString&, const String* const) final;

It improperly believes that the second 'const' is a parameter name because it does not recognize that this is telling the compiler that the pointer cannot be changed:

    const String* immutableContents; // Declares a pointer whose contents cannot be changed.
    String* const immutablePointer; // Declares a pointer that cannot be changed.
    const String* const immutableContents; // Declares a pointer that cannot be changed, and whose contents cannot be changed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161220/543c7bd2/attachment.html>


More information about the webkit-unassigned mailing list