|
|
Created:
3 years, 5 months ago by Daniel Bratell Modified:
3 years, 5 months ago CC:
blink-reviews, chromium-reviews, mac-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionAvoid "using namespace blink" in global scope
With jumbo (unity builds, merged translation units) a "using blink"
statement intended for just the local translation unit will affect
many other translation units which causes various issues.
There is also (with jumbo) a warning about such usage that will prevent
things from compiling.
Without this patch this file will have to be manually excluded from
jumbo builds and I am trying to avoid such exclusion lists for
performance and maintenance.
Review-Url: https://codereview.chromium.org/2965323002
Cr-Commit-Position: refs/heads/master@{#487501}
Committed: https://chromium.googlesource.com/chromium/src/+/d460c016ba94c5921c85ca6f7c8af2cd106a9188
Patch Set 1 #Patch Set 2 : Trying to avoid a jumbo exlude for mac. #Patch Set 3 : Dropped jumbo testing code #Patch Set 4 : Alternative solution to namespace problems. #Patch Set 5 : Use anonymous namespaces #
Messages
Total messages: 38 (27 generated)
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Trying to avoid a jumbo exlude for mac. ========== to ========== Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this patch will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. ==========
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
bratell@opera.com changed reviewers: + ojan@chromium.org
ojan, can you please take a look? It's a cleanup patch for jumbo, to remove a hardcoded exclusion of this file.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
bratell@opera.com changed reviewers: + yosin@chromium.org
yusin, do you think this is a reasonable way to solve this? The problem is the block at the start of the file that is not inside namespace blink {}.
Can we move these static functions into "namespace blink" with anonymous namespace? Note: getBaselinePoint() doesn't have "static", but it used only in WebSubstringUtil.mm 2017年7月12日(水) 1:00 <bratell@opera.com>: > yusin, do you think this is a reasonable way to solve this? > > The problem is the block at the start of the file that is not inside > namespace > blink {}. > > https://codereview.chromium.org/2965323002/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Can we move these static functions into "namespace blink" with anonymous namespace? Note: getBaselinePoint() doesn't have "static", but it used only in WebSubstringUtil.mm 2017年7月12日(水) 1:00 <bratell@opera.com>: > yusin, do you think this is a reasonable way to solve this? > > The problem is the block at the start of the file that is not inside > namespace > blink {}. > > https://codereview.chromium.org/2965323002/ > -- You received this message because you are subscribed to the Google Groups "Blink Reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/07/14 03:54:38, blink-reviews wrote: > Can we move these static functions into "namespace blink" with anonymous > namespace? > Note: getBaselinePoint() doesn't have "static", but it used only in > WebSubstringUtil.mm I will try to see what works.
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by bratell@opera.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Seems to work. yosin, is this what you planned?
lgtm Yes, this is what I suggested.
The CQ bit was checked by bratell@opera.com
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this patch will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. ========== to ========== Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this file will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. ==========
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by bratell@opera.com
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1500388987537930, "parent_rev": "6a100c0fd7c17e82cf6c44e15a35087411949453", "commit_rev": "d460c016ba94c5921c85ca6f7c8af2cd106a9188"}
Message was sent while issue was closed.
Description was changed from ========== Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this file will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. ========== to ========== Avoid "using namespace blink" in global scope With jumbo (unity builds, merged translation units) a "using blink" statement intended for just the local translation unit will affect many other translation units which causes various issues. There is also (with jumbo) a warning about such usage that will prevent things from compiling. Without this patch this file will have to be manually excluded from jumbo builds and I am trying to avoid such exclusion lists for performance and maintenance. Review-Url: https://codereview.chromium.org/2965323002 Cr-Commit-Position: refs/heads/master@{#487501} Committed: https://chromium.googlesource.com/chromium/src/+/d460c016ba94c5921c85ca6f7c8a... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/d460c016ba94c5921c85ca6f7c8a... |