Summary: | wtf/Optional.h: move-constructor and move-assignment operator should disengage the value being moved from | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||||||||||||||||||||||||||||||||||||||||||||
Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> | ||||||||||||||||||||||||||||||||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||||||||||||||||||||||||||||||||
Severity: | Normal | CC: | achristensen, aestes, aperez, beidson, benjamin, cdumez, cmarcelo, commit-queue, darin, dbates, ews-watchlist, fujii.hironori, ggaren, Hironori.Fujii, jfbastien, joepeck, ldionne, mcatanzaro, rniwa, saam, sam, thorton, webkit-bug-importer, youennf | ||||||||||||||||||||||||||||||||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||||||||||||||||||||||||||||||
Version: | WebKit Local Build | ||||||||||||||||||||||||||||||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||||||||||||||||||||||
URL: | https://lists.webkit.org/pipermail/webkit-dev/2018-December/030316.html | ||||||||||||||||||||||||||||||||||||||||||||||||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=163309 https://bugs.webkit.org/show_bug.cgi?id=165351 |
||||||||||||||||||||||||||||||||||||||||||||||||
Bug Depends on: | |||||||||||||||||||||||||||||||||||||||||||||||||
Bug Blocks: | 192931, 192933, 192948 | ||||||||||||||||||||||||||||||||||||||||||||||||
Attachments: |
|
Description
David Kilzer (:ddkilzer)
2018-12-14 16:54:01 PST
*** Bug 163309 has been marked as a duplicate of this bug. *** I have fixes for the move-constructor and move-assignment operator, but I'm not sure if I need to do anything for these methods: constexpr T&& value() &&; constexpr const T&& value() const &&; As documented here: <https://en.cppreference.com/w/cpp/utility/optional/value> (I can't figure out how to write C++ to actually use those methods, so help would be appreciated!) One of the most frustrating things about the behavior of the move-constructor and move-assignment operator is that optional::swap() does what you'd expect by fully disengaging the value after the swap! <https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/Optional.h#L497> Created attachment 357360 [details]
Patch v1
Comment on attachment 357360 [details]
Patch v1
1. Totally untested (still building locally).
2. Tests may break if the libc++ implementation is used instead of <wtf/Optional.h>.
Attachment 357360 [details] did not pass style-queue:
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
Total errors found: 13 in 4 files
If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to David Kilzer (:ddkilzer) from comment #6) > Comment on attachment 357360 [details] > Patch v1 > > 1. Totally untested (still building locally). Not true. I tested with Chris' test program from webkit-dev and that's fixed. :) I just haven't run TestWebKitAPI tests or layout tests yet. I think we should move this out of namespace std if we’re going to add behavior like this that we’re going to rely on. (In reply to Saam Barati from comment #9) > I think we should move this out of namespace std if we’re going to add > behavior like this that we’re going to rely on. Indeed, this is important because we need to remain compatible with std::optional. Look at the changes to this file from earlier this year for a reminder of the pain caused by mismatched semantics (WPE/GTK and WinCairo had moved to C++ 17 and were getting std::optional from the standard library but Cocoa was using this one; we switched back to C++ 14 after a couple months primarily to get back to WTF's std::optional). Comment on attachment 357360 [details] Patch v1 Attachment 357360 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/10405735 New failing tests: imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html Created attachment 357374 [details]
Archive of layout-test-results from ews103 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 357360 [details] Patch v1 Attachment 357360 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/10405959 New failing tests: imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html Created attachment 357376 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
(In reply to Saam Barati from comment #9) > I think we should move this out of namespace std if we’re going to add > behavior like this that we’re going to rely on. So wtf::optional? I think we should ask whether the standard implementation can also be fixed. Looks like this change may have found a bug (a test now consistently failing that didn't before the patch): Regressions: Unexpected text-only failures (1) imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html [ Failure ] Comment on attachment 357360 [details] Patch v1 Attachment 357360 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/10406049 New failing tests: imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html Created attachment 357377 [details]
Archive of layout-test-results from ews114 for mac-sierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 357360 [details] Patch v1 Attachment 357360 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10406180 New failing tests: imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html Created attachment 357379 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
(In reply to David Kilzer (:ddkilzer) from comment #15) > (In reply to Saam Barati from comment #9) > > I think we should move this out of namespace std if we’re going to add > > behavior like this that we’re going to rely on. > > So wtf::optional? I think we should ask whether the standard implementation > can also be fixed. > > Looks like this change may have found a bug (a test now consistently failing > that didn't before the patch): > > Regressions: Unexpected text-only failures (1) > imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html [ > Failure ] So WebCore::FetchBodyOwner::isDisturbed() depends on WebCore::FetchBodyOwner::isBodyNull(), and isBodyNull() returns true if WebCore::FetchBodyOwner::m_body is "engaged" (which means it either currently holds a value or has held a value in the past, so it directly relies on the current std::optional<> behavior): std::optional<FetchBody> m_body; Good times. I'm assuming we don't want to land this as-is, so reassigning to webkit-unassigned in case someone else wants to work on it. (In reply to David Kilzer (:ddkilzer) from comment #20) > (In reply to David Kilzer (:ddkilzer) from comment #15) > > (In reply to Saam Barati from comment #9) > > > I think we should move this out of namespace std if we’re going to add > > > behavior like this that we’re going to rely on. > > > > So wtf::optional? I think we should ask whether the standard implementation > > can also be fixed. > > > > Looks like this change may have found a bug (a test now consistently failing > > that didn't before the patch): > > > > Regressions: Unexpected text-only failures (1) > > imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html [ > > Failure ] > > So WebCore::FetchBodyOwner::isDisturbed() depends on > WebCore::FetchBodyOwner::isBodyNull(), and isBodyNull() returns true if > WebCore::FetchBodyOwner::m_body is "engaged" (which means it either > currently holds a value or has held a value in the past, so it directly > relies on the current std::optional<> behavior): > > std::optional<FetchBody> m_body; > > Good times. I believe the issue is with this move: ExceptionOr<void> FetchRequest::setBody(FetchRequest& request) { if (!request.isBodyNull()) { if (!methodCanHaveBody(m_request)) return Exception { TypeError, makeString("Request has method '", m_request.httpMethod(), "' and cannot have a body") }; // FIXME: If body has a readable stream, we should pipe it to this new body stream. m_body = WTFMove(request.m_body); // here request.setDisturbed(); } Created attachment 357407 [details]
Patch
Attachment 357407 [details] did not pass style-queue:
ERROR: Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.messages.in:33: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:39: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WTF/wtf/Optional.h:326: optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:89: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:92: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in:34: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:110: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:134: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:180: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:229: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:332: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:402: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:403: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:439: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:28: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:30: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/UIProcess/WebProcessProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:40: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:41: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebKit/WebProcess/WebPage/DrawingArea.messages.in:32: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:31: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkSocketStream.messages.in:25: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoad
erClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:51: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:148: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:170: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:442: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:453: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:535: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:536: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
Total errors found: 121 in 1727 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 357409 [details]
Patch
Attachment 357409 [details] did not pass style-queue:
ERROR: Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.messages.in:33: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:39: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WTF/wtf/Optional.h:326: optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:89: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:92: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in:34: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:110: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:134: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:180: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:229: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:332: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:402: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:403: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:439: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:28: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:30: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/UIProcess/WebProcessProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:40: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:41: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebKit/WebProcess/WebPage/DrawingArea.messages.in:32: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:31: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkSocketStream.messages.in:25: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoad
erClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:51: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:148: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:170: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:442: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:453: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:535: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:536: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
Total errors found: 121 in 1727 files
If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to David Kilzer (:ddkilzer) from comment #15) > (In reply to Saam Barati from comment #9) > > I think we should move this out of namespace std if we’re going to add > > behavior like this that we’re going to rely on. > > So wtf::optional? I think we should ask whether the standard implementation > can also be fixed. That would be nice. But when the standard says the value after a move is unspecified, I’m not sure if that means the standard will never define those semantics, or if by default it’s implementation defined with the ability of the standard to give it specified semantics. > > Looks like this change may have found a bug (a test now consistently failing > that didn't before the patch): > > Regressions: Unexpected text-only failures (1) > imported/w3c/web-platform-tests/fetch/api/request/request-disturbed.html [ > Failure ] Because piling on is always fun...I'm not a huge fan of diverting from the standard here, but I also don't think it matters all that much. If we do diverge, please spell it WTF::Optional<> rather than WTF::optional<> to match our style rules (we do this uppercasing for other near STL types like WTF::Variant<>). Comment on attachment 357409 [details] Patch Attachment 357409 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10422981 New failing tests: http/tests/paymentrequest/payment-response-payerName-attribute.https.html http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html http/tests/paymentrequest/updateWith-method-pmi-handling.https.html http/tests/paymentrequest/payment-request-change-shipping-address.https.html http/tests/paymentrequest/payment-response-complete-method.https.html http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https.html http/tests/paymentrequest/payment-request-change-shipping-option.https.html http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html http/tests/paymentrequest/payment-response-methodName-attribute.https.html http/tests/paymentrequest/payment-response-retry-method.https.html http/tests/paymentrequest/payment-request-merchant-validation.https.html http/tests/paymentrequest/payment-request-show-method.https.html Created attachment 357411 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 357413 [details]
Patch
Attachment 357413 [details] did not pass style-queue:
ERROR: Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.messages.in:33: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:39: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WTF/wtf/Optional.h:326: optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:89: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:92: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in:34: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:110: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:134: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:180: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:229: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:332: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:402: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:403: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:439: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:28: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:30: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/UIProcess/WebProcessProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:40: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:41: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebKit/WebProcess/WebPage/DrawingArea.messages.in:32: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:31: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkSocketStream.messages.in:25: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoad
erClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:51: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:148: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:170: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:442: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:453: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:535: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:536: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
Total errors found: 121 in 1786 files
If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to Sam Weinig from comment #28) > Because piling on is always fun...I'm not a huge fan of diverting from the > standard here, but I also don't think it matters all that much. > > If we do diverge, please spell it WTF::Optional<> rather than > WTF::optional<> to match our style rules (we do this uppercasing for other > near STL types like WTF::Variant<>). How about std::make_optional()? Would it become WTF::makeOptional()? Created attachment 357414 [details]
Patch
Created attachment 357415 [details]
Patch
Attachment 357415 [details] did not pass style-queue:
ERROR: Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.messages.in:33: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:39: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:590: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:590: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:592: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:592: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:594: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:594: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:596: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:598: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:598: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:604: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:607: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:617: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:650: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:693: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:693: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:988: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:994: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:89: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkProcess.messages.in:92: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.messages.in:34: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:110: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:134: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:180: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:229: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:332: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:402: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:403: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/WebPageProxy.messages.in:439: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:28: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.messages.in:30: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebKit/UIProcess/WebProcessProxy.messages.in:36: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:37: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:38: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:40: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in:41: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebKit/WebProcess/WebPage/DrawingArea.messages.in:32: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.messages.in:29: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:31: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/Storage/WebSWClientConnection.messages.in:42: Line contains WTF:: prefix. [build/messagesin/wtf]
[5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebKit/NetworkProcess/NetworkSocketStream.messages.in:25: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:51: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:148: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:170: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:442: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:453: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:535: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
ERROR: Source/WebKit/WebProcess/WebPage/WebPage.messages.in:536: Line contains WTF:: prefix. [build/messagesin/wtf] [5]
Total errors found: 165 in 1785 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 357416 [details]
Patch
Attachment 357416 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:590: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:590: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:592: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:592: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:594: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:594: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:596: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:598: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:598: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:604: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:607: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:617: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:650: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:693: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:693: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:988: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:994: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_saved
ResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 128 in 1785 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 357416 [details] Patch Attachment 357416 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10429124 New failing tests: http/tests/paymentrequest/payment-response-payerName-attribute.https.html http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html http/tests/paymentrequest/updateWith-method-pmi-handling.https.html http/tests/paymentrequest/payment-request-change-shipping-address.https.html http/tests/paymentrequest/payment-response-complete-method.https.html http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https.html http/tests/paymentrequest/payment-request-change-shipping-option.https.html http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html http/tests/paymentrequest/payment-response-methodName-attribute.https.html http/tests/paymentrequest/payment-response-retry-method.https.html http/tests/paymentrequest/payment-request-merchant-validation.https.html http/tests/paymentrequest/payment-request-show-method.https.html Created attachment 357417 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
(In reply to Build Bot from comment #39) > Comment on attachment 357416 [details] > Patch > > Attachment 357416 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: https://webkit-queues.webkit.org/results/10429124 > > New failing tests: > http/tests/paymentrequest/payment-response-payerName-attribute.https.html > http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html > http/tests/paymentrequest/updateWith-method-pmi-handling.https.html > http/tests/paymentrequest/payment-request-change-shipping-address.https.html > http/tests/paymentrequest/payment-response-complete-method.https.html > http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https. > html > http/tests/paymentrequest/payment-request-change-shipping-option.https.html > http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html > http/tests/paymentrequest/payment-response-methodName-attribute.https.html > http/tests/paymentrequest/payment-response-retry-method.https.html > http/tests/paymentrequest/payment-request-merchant-validation.https.html > http/tests/paymentrequest/payment-request-show-method.https.html + Andy. They seem to hit a RELEASE_ASSERT when trying to SoftLink PassKit. I do not see how this is related to Optional. (In reply to Chris Dumez from comment #41) > (In reply to Build Bot from comment #39) > > Comment on attachment 357416 [details] > > Patch > > > > Attachment 357416 [details] did not pass ios-sim-ews (ios-simulator-wk2): > > Output: https://webkit-queues.webkit.org/results/10429124 > > > > New failing tests: > > http/tests/paymentrequest/payment-response-payerName-attribute.https.html > > http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html > > http/tests/paymentrequest/updateWith-method-pmi-handling.https.html > > http/tests/paymentrequest/payment-request-change-shipping-address.https.html > > http/tests/paymentrequest/payment-response-complete-method.https.html > > http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https. > > html > > http/tests/paymentrequest/payment-request-change-shipping-option.https.html > > http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html > > http/tests/paymentrequest/payment-response-methodName-attribute.https.html > > http/tests/paymentrequest/payment-response-retry-method.https.html > > http/tests/paymentrequest/payment-request-merchant-validation.https.html > > http/tests/paymentrequest/payment-request-show-method.https.html > > + Andy. They seem to hit a RELEASE_ASSERT when trying to SoftLink PassKit. I > do not see how this is related to Optional. Also, it does not reproduce for me locally. (In reply to Chris Dumez from comment #33) > (In reply to Sam Weinig from comment #28) > > Because piling on is always fun...I'm not a huge fan of diverting from the > > standard here, but I also don't think it matters all that much. > > > > If we do diverge, please spell it WTF::Optional<> rather than > > WTF::optional<> to match our style rules (we do this uppercasing for other > > near STL types like WTF::Variant<>). > > How about std::make_optional()? Would it become WTF::makeOptional()? I think WTF::makeOptional() makes the most sense. An interesting question I don't know the answer to is whether we just reuse std::nullopt. I don't think we "need" our own WTF::Nullopt. It really probably comes down to aesthetics. (In reply to Sam Weinig from comment #43) > (In reply to Chris Dumez from comment #33) > > (In reply to Sam Weinig from comment #28) > > > Because piling on is always fun...I'm not a huge fan of diverting from the > > > standard here, but I also don't think it matters all that much. > > > > > > If we do diverge, please spell it WTF::Optional<> rather than > > > WTF::optional<> to match our style rules (we do this uppercasing for other > > > near STL types like WTF::Variant<>). > > > > How about std::make_optional()? Would it become WTF::makeOptional()? > > I think WTF::makeOptional() makes the most sense. I agree and this is what I ended up with in my latest iteration. > An interesting question I don't know the answer to is whether we just reuse > std::nullopt. I don't think we "need" our own WTF::Nullopt. It really > probably comes down to aesthetics. I personally like having our own nullopt in WTF since we are not using c++17 yet and we’d need our own copy anyway. I wasn’t sure about its capitalization though. I see that you opted for a capitalized version and for now I have kept it non capitalized, similarly to WTF::notFound. (In reply to Chris Dumez from comment #44) > (In reply to Sam Weinig from comment #43) > > (In reply to Chris Dumez from comment #33) > > > (In reply to Sam Weinig from comment #28) > > > > Because piling on is always fun...I'm not a huge fan of diverting from the > > > > standard here, but I also don't think it matters all that much. > > > > > > > > If we do diverge, please spell it WTF::Optional<> rather than > > > > WTF::optional<> to match our style rules (we do this uppercasing for other > > > > near STL types like WTF::Variant<>). > > > > > > How about std::make_optional()? Would it become WTF::makeOptional()? > > > > I think WTF::makeOptional() makes the most sense. > > I agree and this is what I ended up with in my latest iteration. > > > An interesting question I don't know the answer to is whether we just reuse > > std::nullopt. I don't think we "need" our own WTF::Nullopt. It really > > probably comes down to aesthetics. > > I personally like having our own nullopt in WTF since we are not using c++17 > yet and we’d need our own copy anyway. I wasn’t sure about its > capitalization though. I see that you opted for a capitalized version and > for now I have kept it non capitalized, similarly to WTF::notFound. Well, there are really two things here. There is the type replacing std::nullopt_t, which would by convention be WTF::Nullopt, and the constant replacing std::nullopt, which would by convention be WTF::nullopt. ;) Created attachment 357444 [details]
Patch
Created attachment 357445 [details]
Patch
Attachment 357445 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:590: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:590: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:592: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:592: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:594: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:594: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:596: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:598: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:598: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:604: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:607: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:617: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:650: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:693: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:693: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:988: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:994: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_saved
ResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 128 in 1787 files
If any of these errors are false positives, please file a bug against check-webkit-style.
I oppose this change. If you want to ensure the state of an optional after it is "moved from" use std::exchange. If you want to guarantee the state of an object after WTFMove or std::move, use a different language. Created attachment 357492 [details]
Patch
Attachment 357492 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:590: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:590: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:592: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:592: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:594: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:594: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:596: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:598: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:598: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:604: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:607: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:617: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:650: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:693: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:693: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:988: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:994: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_saved
ResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 128 in 1787 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 357492 [details] Patch Attachment 357492 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/10448714 New failing tests: http/tests/paymentrequest/payment-response-payerName-attribute.https.html http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html http/tests/paymentrequest/updateWith-method-pmi-handling.https.html http/tests/paymentrequest/payment-request-change-shipping-address.https.html http/tests/paymentrequest/payment-response-complete-method.https.html http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https.html http/tests/paymentrequest/payment-request-change-shipping-option.https.html http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html http/tests/paymentrequest/payment-response-methodName-attribute.https.html http/tests/paymentrequest/payment-response-retry-method.https.html http/tests/paymentrequest/payment-request-merchant-validation.https.html http/tests/paymentrequest/payment-request-show-method.https.html Created attachment 357514 [details]
Archive of layout-test-results from ews126 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
(In reply to Build Bot from comment #52) > Comment on attachment 357492 [details] > Patch > > Attachment 357492 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: https://webkit-queues.webkit.org/results/10448714 > > New failing tests: > http/tests/paymentrequest/payment-response-payerName-attribute.https.html > http/tests/paymentrequest/payment-response-payerPhone-attribute.https.html > http/tests/paymentrequest/updateWith-method-pmi-handling.https.html > http/tests/paymentrequest/payment-request-change-shipping-address.https.html > http/tests/paymentrequest/payment-response-complete-method.https.html > http/tests/paymentrequest/payment-address-attributes-and-toJSON-method.https. > html > http/tests/paymentrequest/payment-request-change-shipping-option.https.html > http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html > http/tests/paymentrequest/payment-response-methodName-attribute.https.html > http/tests/paymentrequest/payment-response-retry-method.https.html > http/tests/paymentrequest/payment-request-merchant-validation.https.html > http/tests/paymentrequest/payment-request-show-method.https.html Those failures are in fact related, we're failing to load the PassKit framework. dlopen returns the following error: """ dlerror: dlopen(/System/Library/Frameworks/PassKit.framework/PassKit, 2): Symbol not found: __ZN9Inspector17BackendDispatcher19reportProtocolErrorESt8optionalIlENS0_15CommonErrorCodeERKN3WTF6StringE Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/WebInspector.framework/WebInspector Expected in: /Volumes/Data/EWS/WebKit/WebKitBuild/Release-iphonesimulator/JavaScriptCore.framework/JavaScriptCore in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/WebInspector.framework/WebInspector """ My patch did indeed update WebInspector's reportProtocolError to take in an WTF::Optional instead of an std::optional. Not quite sure how to deal with this yet. Created attachment 357519 [details]
Patch
Attachment 357519 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:584: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:590: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:590: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:592: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:592: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:594: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:594: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:596: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:598: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:598: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:600: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:600: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:602: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:604: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:607: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:617: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:650: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:693: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:693: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:693: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:988: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:994: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1002: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1005: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1013: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_saved
ResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 128 in 1743 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 357521 [details]
Patch
Attachment 357521 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:509: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:510: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:554: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:555: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:556: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:556: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:558: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:560: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:567: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:568: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WTF/wtf/Optional.h:568: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:569: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:569: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:571: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:573: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:582: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:583: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:586: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:588: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:606: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:614: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:614: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:616: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:616: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:618: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:620: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:620: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:622: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:622: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:624: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:626: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:629: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:634: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:639: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:672: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:715: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:715: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1010: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1024: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1027: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1035: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1038: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the lef
t side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 148 in 1743 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 357534 [details]
Patch
Attachment 357534 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:280: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:509: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:510: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:554: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:555: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:556: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:556: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:558: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:560: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:567: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:568: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WTF/wtf/Optional.h:568: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:569: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:569: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:571: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:573: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:582: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:583: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:586: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:588: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:606: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:614: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:614: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:616: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:616: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:618: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:620: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:620: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:622: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:622: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:624: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:626: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:629: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:634: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:639: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:672: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:715: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:715: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1010: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1024: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1027: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1035: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1038: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the lef
t side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 148 in 1743 files
If any of these errors are false positives, please file a bug against check-webkit-style.
I'd like to mention that the C++ Standard currently mandates the behaviour of std::optional not to disengage the RHS in case of move-assignment: http://eel.is/c++draft/optional.assign#8. This means that libc++'s implementation is correct in terms of implementing the Standard, and that is what we strive for in the standard library. Now, perhaps the specification in the Standard is wrong (I don't have an opinion at this point), but a case would have to be made for that. So, just as a point of information, I think the workflow for fixing this in the Standard would be: 1. Make a case that the current behaviour is wrong/harmful 2. Get the Committee to change the Standard by writing a paper 3. Implementations pick up the change in the Standard and libc++ gets fixed Also, orthogonally to this, I would strongly recommend not putting anything in namespace `std`, especially if the semantics are different from the actual standardized facility. Doing otherwise is asking for trouble/confusion on your side and also violating the contract between implementers and users of the standard library. Concretely, this makes you a "bad user", which means that you're basically forfeiting rights to complain to your implementer when your use case breaks because of subtle reasons nobody had foreseen. (In reply to Louis Dionne from comment #61) > I'd like to mention that the C++ Standard currently mandates the behaviour > of std::optional not to disengage the RHS in case of move-assignment: > http://eel.is/c++draft/optional.assign#8. This means that libc++'s > implementation is correct in terms of implementing the Standard, and that is > what we strive for in the standard library. > > Now, perhaps the specification in the Standard is wrong (I don't have an > opinion at this point), but a case would have to be made for that. So, just > as a point of information, I think the workflow for fixing this in the > Standard would be: > > 1. Make a case that the current behaviour is wrong/harmful > 2. Get the Committee to change the Standard by writing a paper > 3. Implementations pick up the change in the Standard and libc++ gets fixed > > Also, orthogonally to this, I would strongly recommend not putting anything > in namespace `std`, especially if the semantics are different from the > actual standardized facility. Doing otherwise is asking for > trouble/confusion on your side and also violating the contract between > implementers and users of the standard library. Concretely, this makes you a > "bad user", which means that you're basically forfeiting rights to complain > to your implementer when your use case breaks because of subtle reasons > nobody had foreseen. My patch moves "optional" to WTF namespace and renames it to "Optional", as you can see. (In reply to Chris Dumez from comment #62) > > My patch moves "optional" to WTF namespace and renames it to "Optional", as you can see. Yes -- I think that's a great improvement, thanks for doing this. I just wanted to give information from an implementer's point of view. (In reply to Louis Dionne from comment #61) > I'd like to mention that the C++ Standard currently mandates the behaviour > of std::optional not to disengage the RHS in case of move-assignment: > http://eel.is/c++draft/optional.assign#8. This means that libc++'s > implementation is correct in terms of implementing the Standard, and that is > what we strive for in the standard library. I wonder how much this point was discussed by the committee. Are there logs/minutes giving background information/rationale behind this decision? (In reply to youenn fablet from comment #64) > (In reply to Louis Dionne from comment #61) > > I'd like to mention that the C++ Standard currently mandates the behaviour > > of std::optional not to disengage the RHS in case of move-assignment: > > http://eel.is/c++draft/optional.assign#8. This means that libc++'s > > implementation is correct in terms of implementing the Standard, and that is > > what we strive for in the standard library. > > I wonder how much this point was discussed by the committee. > Are there logs/minutes giving background information/rationale behind this > decision? Yes, but they're not public. Please reach out to Louis and myself if you want to look into it. I'd also like to echo Alex Christensen's remarks about using std::exchange -- I think it makes the most sense. If you want to ensure that the `rhs` is disengaged after being moved-from in an assignment, I would do this: std::optional<T> rhs = T{...}; std::optional<T> lhs; lhs = std::exhange(rhs, std::optional<T>{}); Instead of: std::optional<T> rhs = T{...}; std::optional<T> lhs; lhs = std::move(rhs); // and then assume the state of rhs In general, we try to discourage any use-after-move of an object, except for re-assignment to the moved-from object or its destruction. It's not an absolute rule, of course, as one could design a type with a well-defined and useful state after being moved-from, but if you follow this guideline I don't think you can ever get in trouble. When you want to move from an object AND ensure a specific state for that object after the move, std::exchange (or manual re-assignment to the moved-from object) seems like the right tool. This simple guideline also has the benefit that it will work not only for move-assignment, but also when passing a movable object into a function that might or might not move from the object: std::optional<T> x = T{...}; use(std::move(x)); // Is `x` moved from? We don't know unless we know the details of use()! Instead, if you want to rely on the state of the object after it being moved-from, it seems better to do it in the caller than relying on the callee doing it, using std::exchange: std::optional<T> x = T{...}; use(std::exchange(x, std::optional<T>{})); // Now we can rely on the state of `x`, even if `use()` decides not to move from its argument. I think this is exactly the point that Alex was trying to make on the mailing list (https://lists.webkit.org/pipermail/webkit-dev/2018-December/030340.html), but I'm just restating it here because it makes a lot of sense to me. So, it seems to me like the most sensible guidelines would be: 1. Never rely on the state of a moved-from object. After writing `std::move(x)`, the only thing you can do with `x` is reassign to it or let it die. 2. If you need to move from something _and_ give it a specific value after the move, use `std::exchange(x, new-value)`. This applies not only to `std::optional`, but to all types. This is simple to remember and it doesn't lead to people relying on the state of a moved-from object, which is a really bad habit to develop. I'd love to hear what someone like Howard Hinnant has to say about this issue. Just my .02! > I'd also like to echo Alex Christensen's remarks about using std::exchange
> -- I think it makes the most sense.
I'd love to hear your thoughts on the concerns raised on the mailing list about an std::exchange guideline. At our best, we make decisions based on reason (and not on number of people who have echoed a proposal).
Comment on attachment 357534 [details]
Patch
r=me
(In reply to Geoffrey Garen from comment #67) > > I'd love to hear your thoughts on the concerns raised on the mailing list > about an std::exchange guideline. I've now read the full thread, but I don't think I've seen any specific concerns about a guideline like the above. Can you point them out to me? Some people seem to be in favour of defining more operations than assignment and destruction for moved-from values. This is OK -- you're allowed to do it, but I don't think that's actually what you want if I read this right. My impression is that you folks are looking for a simple rule of thumb/solution to stop getting bitten (is that correct?). What I'm suggesting is exactly that: it's a rule of thumb that plays nicely with the Standard library, and that should work in all cases (and like I said above, I haven't seen any concerns with it but please point them out to me if I've missed them). If you prefer, you can also re-define all vocabulary types like std::optional to have exactly the behaviour you want after being moved-from. Those are two fine solutions, but one of them is more in-line with the path the Standard seems to have taken. Also, just so you know I'm not antagonistic to your point of view, I would have expected a moved-from std::optional to be disengaged, just like I would expect a moved-from std::function to be empty. But the world we have is one where moved-from objects don't have uniform guarantees (and for good reasons because a uniform moved-from state is not always possible), so what I'm saying is: if you want simplicity, don't rely on any guarantees after a move. My $0.02: * WebKit code should follow Louis's two guidelines; it's second nature to me to not reuse a moved-from object, and hard to mess up if we follow that guidance. * We could probably land this patch anyway, since it's surely an improvement and there's almost no disadvantage to doing so. Except I do see one disadvantage: * If we have code that relies on this new behavior, this will make it more risky to migrate to std::optional in the future, since any such code will break, and it will be impractical to notice at the time of the change. So if we land this, I suggest we not rely on the behavior, because I think we are going to eventually want a clean upgrade path from WTF::optional to std::optional. (I'm strongly in favor of moving to WTF::optional now due to the practical problems we've had in the past caused by defining our own std::optional in the std namespace, with some ports using ours and other ports using the stdlib one. It was just not a good idea.) Finally: since we have two standardization folks here and this conversation is all about std::move, wouldn't it be nice to be able to actually use it directly eventually? Currently we have: #define WTFMove(value) std::move<WTF::CheckMoveParameter>(value) with: template<WTF::CheckMoveParameterTag, typename T> ALWAYS_INLINE constexpr typename remove_reference<T>::type&& move(T&& value) { static_assert(is_lvalue_reference<T>::value, "T is not an lvalue reference; move() is unnecessary."); using NonRefQualifiedType = typename remove_reference<T>::type; static_assert(!is_const<NonRefQualifiedType>::value, "T is const qualified."); return move(forward<T>(value)); } WTFMove only exists to add these two static asserts. If std::move grew this behavior in a new C++ standard, we would be able to replace WTFMove with std::move in the future. Perhaps it's too late for that though: catching mistaken moves would be nice, but I foresee many build failures in that future. :) Created attachment 357769 [details]
Patch
Attachment 357769 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:281: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:509: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:510: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:554: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:555: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:556: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:556: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:558: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:560: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:567: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:568: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WTF/wtf/Optional.h:568: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:569: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:569: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:571: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:573: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:582: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:583: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:586: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:588: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:606: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:614: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:614: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:616: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:616: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:618: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:620: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:620: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:622: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:622: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:624: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:626: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:629: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:634: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:639: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:672: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:715: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:715: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1010: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1024: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1027: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1035: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1038: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the lef
t side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 148 in 1745 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 357772 [details]
Patch
Attachment 357772 [details] did not pass style-queue:
ERROR: Source/WebCore/html/HTMLMediaElement.h:116: Missing spaces around < [whitespace/operators] [3]
ERROR: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h:281: The parameter name "scrollbarStyle" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/platform/graphics/iso/ISOTrackEncryptionBox.h:37: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:102: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:113: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:124: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:139: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/glib/SessionHostGlib.cpp:286: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/JavaScriptCore/bytecode/GetterSetterAccessCase.h:54: std::unique_ptr is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/WebKit/UIProcess/API/gtk/WebKitPopupMenu.h"
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.h:141: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:1450: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/network/DataURLDecoder.h:49: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:57: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:58: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:80: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/SessionHost.h:98: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:316: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:316: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:318: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:320: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:326: Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:329: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:339: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:339: constexpr_Optional_base is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:341: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:343: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:368: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:368: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:409: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:409: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:410: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:410: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:412: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:421: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:431: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:431: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:433: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:433: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:436: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:437: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:440: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space before { [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:441: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:444: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:447: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:453: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:461: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:465: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:465: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:465: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:466: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WTF/wtf/Optional.h:466: More than one command on the same line in if [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:466: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:499: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:509: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:510: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:554: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:555: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:556: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:556: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:558: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:560: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:567: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:568: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WTF/wtf/Optional.h:568: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:569: This { should be at the end of the previous line [whitespace/braces] [4]
ERROR: Source/WTF/wtf/Optional.h:569: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:571: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:573: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:582: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:583: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:584: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:586: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:588: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:606: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:606: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:612: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:612: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:614: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:614: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:616: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:616: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:618: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:620: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:620: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:622: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:622: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:624: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:626: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:629: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:634: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:639: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:672: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space after ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Optional.h:715: Extra space before ) [whitespace/parens] [2]
ERROR: Source/WTF/wtf/Optional.h:715: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5]
ERROR: Source/WTF/wtf/Optional.h:715: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1010: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1016: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1024: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1027: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:1035: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1038: argument_type is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/JsonWebKey.h:40: key_ops is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_implementation.py:134: [ObjCProtocolTypeConversionsImplementationGenerator._generate_type_factory_method_implementation] Instance of 'ObjCProtocolTypeConversionsImplementationGenerator' has no 'objc_name_for_type' member [pylint/E1101] [5]
ERROR: Source/WebCore/dom/SuccessOr.h:35: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/dom/SuccessOr.h:36: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4]
ERROR: Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CTRGCrypt.cpp:72: gcryptAES_CTR is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
WARNING: File exempt from style guide. Skipping: "Source/JavaScriptCore/API/glib/JSCCallbackFunction.h"
ERROR: Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp:47: Missing space inside { }. [whitespace/braces] [5]
ERROR: Source/WebCore/loader/FrameLoaderClient.h:373: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/Session.h:92: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:122: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.h:167: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/platform/mediastream/CaptureDeviceManager.h:39: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebDriver/WebDriverService.cpp:1080: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WTF/wtf/Markable.h:130: Boolean expressions that span multiple lines should have their operators on the lef
t side of the line instead of the right side. [whitespace/operators] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp:199: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:120: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h:148: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/page/ChromeClient.h:406: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:58: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:59: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/Modules/webauthn/fido/AuthenticatorGetInfoResponse.h:60: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:99: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_resultObject is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_wasThrown is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Source/JavaScriptCore/inspector/InjectedScriptBase.cpp:144: out_savedResultIndex is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:155: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:165: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:181: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:191: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:203: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:217: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/Optional.cpp:231: Use 'WTFMove()' instead of 'std::move()'. [runtime/wtf_move] [4]
ERROR: Source/WebDriver/Session.cpp:740: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:908: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebDriver/Session.cpp:2449: Extra space before ( in function call [whitespace/parens] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:35: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:36: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
ERROR: Source/WebCore/loader/EmptyFrameLoaderClient.h:86: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4]
Total errors found: 148 in 1745 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 357772 [details] Patch Clearing flags on attachment: 357772 Committed r239427: <https://trac.webkit.org/changeset/239427> All reviewed patches have been landed. Closing bug. (In reply to Louis Dionne from comment #66) > lhs = std::exhange(rhs, std::optional<T>{}); This can be simplified. lhs = std::exchange(rhs, {}); A couple of thoughts after reading yesterday's set of comments: 1. How do we prevent std::optional<> from being re-introduced in WebKit source? Seems like we need a check-webkit-style check to warn about using std::optional<> that says one should use WTF::Optional<> instead. (I think the check that Dan Bates added for replacing std::move<> with WTF::move/WTFMove in Bug 134620 / r171065 would probably be easy to copy & modify to do this. Also need a check for std::make_optional<>.) 2. I guess WTFMove() is now a macro, but if it were a template (maybe like it used to be when it originally landed: WTF::move?), it might have been nicer/easier to make WTFMove(std::optional<>) a template specialization that always assigned std::null_opt to its argument instead of replacing another standard library class (since we've already replaced std::move<> with WTFMove). I don't feel strongly about this--just wanted to point it out since I didn't see anyone mention this before. (In reply to David Kilzer (:ddkilzer) from comment #78) > A couple of thoughts after reading yesterday's set of comments: > > 1. How do we prevent std::optional<> from being re-introduced in WebKit > source? Seems like we need a check-webkit-style check to warn about using > std::optional<> that says one should use WTF::Optional<> instead. (I think > the check that Dan Bates added for replacing std::move<> with > WTF::move/WTFMove in Bug 134620 / r171065 would probably be easy to copy & > modify to do this. Also need a check for std::make_optional<>.) This will only be an issue when we switch to c++17 right? > 2. I guess WTFMove() is now a macro, but if it were a template (maybe like > it used to be when it originally landed: WTF::move?), it might have been > nicer/easier to make WTFMove(std::optional<>) a template specialization that > always assigned std::null_opt to its argument instead of replacing another > standard library class (since we've already replaced std::move<> with > WTFMove). I don't feel strongly about this--just wanted to point it out > since I didn't see anyone mention this before. (In reply to Chris Dumez from comment #79) > (In reply to David Kilzer (:ddkilzer) from comment #78) > > A couple of thoughts after reading yesterday's set of comments: > > > > 1. How do we prevent std::optional<> from being re-introduced in WebKit > > source? Seems like we need a check-webkit-style check to warn about using > > std::optional<> that says one should use WTF::Optional<> instead. (I think > > the check that Dan Bates added for replacing std::move<> with > > WTF::move/WTFMove in Bug 134620 / r171065 would probably be easy to copy & > > modify to do this. Also need a check for std::make_optional<>.) > > This will only be an issue when we switch to c++17 right? But yes, I will add a style checker rule. > > 2. I guess WTFMove() is now a macro, but if it were a template (maybe like > > it used to be when it originally landed: WTF::move?), it might have been > > nicer/easier to make WTFMove(std::optional<>) a template specialization that > > always assigned std::null_opt to its argument instead of replacing another > > standard library class (since we've already replaced std::move<> with > > WTFMove). I don't feel strongly about this--just wanted to point it out > > since I didn't see anyone mention this before. Given how "using namespace" works, I think we also might have to check for the bare word optional if someone does "using namespace std" somewhere, or check for "using namespace std". (In reply to Darin Adler from comment #81) > Given how "using namespace" works, I think we also might have to check for > the bare word optional if someone does "using namespace std" somewhere, or > check for "using namespace std". A clang-based checker would see through this, macros, aliases, etc :-) |