Legacy code generators do not support static attributes. Fix by adding a test to skip static types. This allows us to not use macros like "#if defined(TESTING_JS) || defined(TESTING_V8)" in IDL files. Concretely it's just adding a suitable check to the SkipAttribute functions, and then removing macros from the test IDL file.
Created attachment 185953 [details] Patch V. simple fix -- just check $attribute->isStatic This lets us remove macros from TestObj.idl and also TestSupplemental.idl
Comment on attachment 185953 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=185953&action=review > Source/WebCore/ChangeLog:8 > + Since legacy code generators (CodeGenerator{CPP,GObject,ObjC}.pm) Don't call them legacy. Their implementations are just behind.
(In reply to comment #2) > (From update of attachment 185953 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=185953&action=review > > > Source/WebCore/ChangeLog:8 > > + Since legacy code generators (CodeGenerator{CPP,GObject,ObjC}.pm) > > Don't call them legacy. Their implementations are just behind. Oops, sorry! Is there a proper name, like "lagging code generators", or should I just call them something like "CPP/GObject/ObjC"?
(In reply to comment #3) > or should I just call them something like "CPP/GObject/ObjC"? You can just say CPP/GObject/ObjC. We shouldn't break these bindings just like we shouldn't break JSC/V8.
(In reply to comment #4) > (In reply to comment #3) > > or should I just call them something like "CPP/GObject/ObjC"? > > You can just say CPP/GObject/ObjC. We shouldn't break these bindings just like we shouldn't break JSC/V8. Ok, will do.
Created attachment 185956 [details] ChangeLog wording fix Fix wording re: CPP/GObject/ObjC in ChangeLog
Comment on attachment 185956 [details] ChangeLog wording fix LGTM
Comment on attachment 185956 [details] ChangeLog wording fix Clearing flags on attachment: 185956 Committed r141551: <http://trac.webkit.org/changeset/141551>
All reviewed patches have been landed. Closing bug.