Bug 210459

Summary: check-webkit-style should warn about attributes that appear after function definitions
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, darin, ews-watchlist, glenn, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=210336
Attachments:
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2020-04-13 15:06:32 PDT
check-webkit-style should warn about attributes that appear after function definitions.

Darin suggested it was better to be consistent and always put attributes before the function definition since placing them after the function definition (e.g., in a static function with no predeclaration) doesn't work.
Comment 1 David Kilzer (:ddkilzer) 2020-04-13 15:14:41 PDT
Created attachment 396339 [details]
Patch v1
Comment 2 EWS 2020-04-13 17:32:30 PDT
Committed r260051: <https://trac.webkit.org/changeset/260051>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396339 [details].
Comment 3 Radar WebKit Bug Importer 2020-04-13 17:33:15 PDT
<rdar://problem/61747702>