[Webkit-unassigned] [Bug 193058] New: clang-tidy: Save 8 padding bytes on WebCore::BorderEdge

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 29 16:53:44 PST 2018


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

            Bug ID: 193058
           Summary: clang-tidy: Save 8 padding bytes on
                    WebCore::BorderEdge
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Running `clang-tidy -header-filter=.* -checks='-*,clang-analyzer-optin.performance.*' ...` on WebCore source files found unneeded padding bytes in the WebCore::BorderEdge class.

Source/WebCore/rendering/BorderEdge.h:39:7: warning: Excessive padding in 'class WebCore::BorderEdge' (9 padding bytes, where 1 is optimal). 
Optimal fields order: 
m_color, 
m_width, 
m_flooredToDevicePixelWidth, 
m_devicePixelRatio, 
m_style, 
m_isTransparent, 
m_isPresent, 
consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding]
class BorderEdge {
      ^

-- 
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/20181230/84a00219/attachment.html>


More information about the webkit-unassigned mailing list