I've recently run across 2 different examples of recently written code that makes this mistake. A quick search shows 44 instances of this in //chrome, so there's probably more elsewhere. This anti-pattern is documented in the google C++ style guide. Violating this can cause ODR. Please avoid this.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAEYHnr1p6VTL44DzxQdR7bDT-3Fo9d-TGxBJdc08Nj4aLgx2Rg%40mail.gmail.com.
Can we add a PRESUBMIT against `^namespace {` in header files?Reminder mails good, automated checks better :)PKOn Wed, Jan 22, 2025, 1:57 PM Erik Chen <erik...@chromium.org> wrote:I've recently run across 2 different examples of recently written code that makes this mistake. A quick search shows 44 instances of this in //chrome, so there's probably more elsewhere. This anti-pattern is documented in the google C++ style guide. Violating this can cause ODR. Please avoid this.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
Wrote a CL that I think should address the issue https://chromium-review.googlesource.com/c/chromium/src/+/6192789
On Thursday, January 23, 2025 at 12:32:49 PM UTC-5 Peter Kasting wrote:
Can we add a PRESUBMIT against `^namespace {` in header files?Reminder mails good, automated checks better :)PKOn Wed, Jan 22, 2025, 1:57 PM Erik Chen <erik...@chromium.org> wrote:I've recently run across 2 different examples of recently written code that makes this mistake. A quick search shows 44 instances of this in //chrome, so there's probably more elsewhere. This anti-pattern is documented in the google C++ style guide. Violating this can cause ODR. Please avoid this.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/48ec64c6-64f7-4391-827a-cb96543c2348n%40chromium.org.
Hmm, Google internal style guide docs actually disagree with the above:Is the limitation you mention something that's specific to Chromium's setup?
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.