Bug 155859 - Web Inspector: protocol generator should prefix C++ filenames with the protocol group
Summary: Web Inspector: protocol generator should prefix C++ filenames with the protoc...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: BJ Burg
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-03-24 16:40 PDT by BJ Burg
Modified: 2022-03-01 02:44 PST (History)
9 users (show)

See Also:


Attachments
WIP - needs build system work (19.49 KB, patch)
2016-03-24 17:51 PDT, BJ Burg
no flags Details | Formatted Diff | Diff
Proposed Fix (123.54 KB, patch)
2016-03-25 10:26 PDT, BJ Burg
achristensen: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2016-03-24 16:40:21 PDT
Don't hardcode 'Inspector'.
Comment 1 Radar WebKit Bug Importer 2016-03-24 16:41:01 PDT
<rdar://problem/25349859>
Comment 2 BJ Burg 2016-03-24 17:51:19 PDT
Created attachment 274868 [details]
WIP - needs build system work
Comment 3 BJ Burg 2016-03-25 10:26:35 PDT
Created attachment 274916 [details]
Proposed Fix
Comment 4 WebKit Commit Bot 2016-03-25 10:28:40 PDT
Attachment 274916 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py:46:  [CppFrontendDispatcherHeaderGenerator.output_filename] Instance of 'CppFrontendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py:53:  [CppFrontendDispatcherHeaderGenerator.generate_output] Instance of 'CppFrontendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_alternate_backend_dispatcher_header.py:44:  [CppAlternateBackendDispatcherHeaderGenerator.output_filename] Instance of 'CppAlternateBackendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_alternate_backend_dispatcher_header.py:48:  [CppAlternateBackendDispatcherHeaderGenerator.generate_output] Instance of 'CppAlternateBackendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py:46:  [CppBackendDispatcherHeaderGenerator.output_filename] Instance of 'CppBackendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py:53:  [CppBackendDispatcherHeaderGenerator.generate_output] Instance of 'CppBackendDispatcherHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/generate_cpp_protocol_types_header.py:46:  [CppProtocolTypesHeaderGenerator.output_filename] Instance of 'CppProtocolTypesHeaderGenerator' has no 'protocol_name' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py:46:  expected 2 blank lines, found 1  [pep8/E302] [5]
ERROR: Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py:51:  [CppGenerator.protocol_name] Instance of 'CppGenerator' has no 'model' member  [pylint/E1101] [5]
Total errors found: 9 in 30 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Alex Christensen 2016-03-25 10:33:51 PDT
Comment on attachment 274916 [details]
Proposed Fix

pragma once
changing some names around
seems ok.  r=me, but wait for ews
Also, this could probably fix the need for my awful hack in http://trac.webkit.org/changeset/198659/trunk/Source/WebKit2/CMakeLists.txt
Comment 6 BJ Burg 2016-03-25 10:50:53 PDT
(In reply to comment #5)
> Comment on attachment 274916 [details]
> Proposed Fix
> 
> pragma once
> changing some names around
> seems ok.  r=me, but wait for ews
> Also, this could probably fix the need for my awful hack in
> http://trac.webkit.org/changeset/198659/trunk/Source/WebKit2/CMakeLists.txt

If EWS passes, I'll do a partial revert and land it locally. Otherwise I'll add the revert to the next EWS patch.
Comment 7 BJ Burg 2016-03-25 11:18:51 PDT
Committed r198678: <http://trac.webkit.org/changeset/198678>