Bug 284835

Summary: check-webkit-style: underscore false positive warning in multiline macros defining variables using other macros
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Lauro Moura
Reported 2024-12-17 11:55:36 PST
When adding new Logging code to bug 284824, I added the following macro, like the ones in other `Logging.h` headers: #define DECLARE_LOG_CHANNEL(name) \ extern WTFLogChannel JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, name); Here, JOIN_LOG_CHANNEL_WITH_PREFIX is another macro, defined in `Assertions.h`. check-webkit-style output: filename: Source/WebDriver/Logging.h, identifier: JOIN_LOG_CHANNEL_WITH_PREFIX, modified_identifier: JOIN_LOG_CHANNEL_WITH_PREFIX ERROR: Source/WebDriver/Logging.h:55: JOIN_LOG_CHANNEL_WITH_PREFIX is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Moving the macro body to the same line makes the problem vanish, but it's kinda going against the style in the other files.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-24 11:56:16 PST
Note You need to log in before you can comment on or make changes to this bug.