WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
284835
check-webkit-style: underscore false positive warning in multiline macros defining variables using other macros
https://bugs.webkit.org/show_bug.cgi?id=284835
Summary
check-webkit-style: underscore false positive warning in multiline macros def...
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-12-24 11:56:16 PST
<
rdar://problem/142000732
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug