Closed Bug 1610678 Opened 6 years ago Closed 6 years ago

Prevent code from containing using directives for the mozilla::java namespace

Categories

(Developer Infrastructure :: Source Code Analysis, enhancement)

enhancement
Not set
normal

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Whiteboard: [geckoview:m74])

Attachments

(1 file, 2 obsolete files)

It's hard to keep java-based analogs of Gecko types from having naming collisions when code imports the mozilla::java namespace. In bug 1608577 I eradicated such directives from Gecko.

It would be nice to automagically prevent such directives from being landed in the future. While I realize it would be nice to prevent using namespace directives elsewhere in our code, that seems like a bigger project to me.

Depends on: 1610878
Pushed by aklotz@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/17c2aa0fc93c Add check to clang plugin to raise error when `using namespace mozilla::java` is present in C++ source; r=andi
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c6eaf183de8a Follow-up: Fix build error in MediaDrmCDMProxy.cpp; r=bustage CLOSED TREE https://hg.mozilla.org/integration/autoland/rev/7b43c9ba246a Follow-up 2 - build fix for AndroidDecoderModule.cpp; r=bustage CLOSED TREE
Whiteboard: [geckoview:m74]
Attachment #9122434 - Attachment is obsolete: true
Attachment #9122436 - Attachment is obsolete: true
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: