RESOLVED FIXED 32193
[check-webkit-style] False positive for DEFINE_OPCODE(op_jtrue) {
https://bugs.webkit.org/show_bug.cgi?id=32193
Summary [check-webkit-style] False positive for DEFINE_OPCODE(op_jtrue) {
Adam Barth
Reported 2009-12-06 08:47:48 PST
DEFINE_OPCODE(op_jtrue) { generates the warning JavaScriptCore/interpreter/Interpreter.cpp:2650: Place brace on its own line for function definitions. [whitespace/braces] [4] However, this is a false positive <https://bugs.webkit.org/show_bug.cgi?id=32190#c8> because this is some sort of macro. Maybe we should notice the ALL CAPS "function" name and skip the brace check?
Attachments
Patch (2.10 KB, patch)
2009-12-08 14:50 PST, David Levin
no flags
Patch (2.32 KB, patch)
2009-12-08 15:14 PST, David Levin
abarth: review+
levin: commit-queue-
David Levin
Comment 1 2009-12-08 14:50:32 PST
WebKit Review Bot
Comment 2 2009-12-08 14:52:20 PST
style-queue ran check-webkit-style on attachment 44488 [details] without any errors.
David Levin
Comment 3 2009-12-08 15:14:20 PST
WebKit Review Bot
Comment 4 2009-12-08 15:19:00 PST
style-queue ran check-webkit-style on attachment 44492 [details] without any errors.
Adam Barth
Comment 5 2009-12-08 15:21:58 PST
Comment on attachment 44492 [details] Patch Very clever. Hopefully not too clever. :) I might add 0-9 in the character class in case we have numbers in the macro names MSG_ROUTED3, etc.
David Levin
Comment 6 2009-12-08 15:29:56 PST
Comment on attachment 44492 [details] Patch I'll do the change suggested by Adam and land this.
David Levin
Comment 7 2009-12-08 15:55:57 PST
Commited (with the suggested change) as http://trac.webkit.org/changeset/51876
Note You need to log in before you can comment on or make changes to this bug.