New issue
Advanced search Search tips

Issue 723981 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Add presubmit warning for when DEFINE_STATIC_REF is used in a header file

Project Member Reported by alancutter@chromium.org, May 18 2017

Issue description

Header files may be used by multiple link targets.
Using DEFINE_STATIC_REF in a header can result in separate global objects where only one is intended.

See  issue 723295  for an example of this occurring.
 
Cc: noel@chromium.org
Sounds reasonable; I guess this could be implemented either as another rule in the webkitpy-linter webkitpy/style/checkers/cpp.py, or directly in third_party/WebKit/PRESUBMIT.py.
Project Member

Comment 3 by sheriffbot@chromium.org, May 21 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by ajuma@chromium.org, May 22 2018

Status: Available (was: Untriaged)

Sign in to add a comment