--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACSHbcS3qLv5Mbhx3hsEdNM4%2BFErJ%2BeNc05rz0bz6c0Scs9EEw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAGFX3sGyLJKD2SvBUT9_o3ncD8yoAahHXDiCRVvcLPmDsGY4Pw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFATNres8Z%2BsJygpLwUMD0nzorSrpsLzdzJCDHJz04F%3DYg%40mail.gmail.com.
Rolling our own because we may want to roll our own in the future seems too weak an argument to me (switch replace should be straightforward in both directions bar iwyu). Do you have any specific things such as magic with raw_ptr in mind or is this a preference not to use absl in general?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAHtyhaQxAhYjSM6gS-_JiHuhAd6h_pvOdkJrDzD9uWLj8hM%2B6Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAKFU2SAcNOCH6tD79Hz3nbyJx4Lg-otGf7cNAWR6ZoMF1o9pVA%40mail.gmail.com.
Switching costs are not a very compelling argument to me. This particular switch is trivially scriptable and can be landed in a single large cl with OO+1.
Agree that WrapUnique is not worth a significant amount of either.Let's say the total combined author+reviewer time for this could be reduced to under one hour. (I actually believe this is feasible.) Would you still be opposed?
Interesting. It seems like if reviewers have any feedback at all, either(a) something went wrong with scripting the conversion -- how could we be missing #includes (at least, worse than we already were)?(b) reviewers are asking for incidental "while here" cleanups on a giant lsc, which is inappropriateIs this a, b, or did I miss one?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAHtyhaRWN1i2H%2BUsQTFe8FAkqJn5OH_dj_Pc3%3D7Wm%3DCPKu7Pcw%40mail.gmail.com.
(2) placing windows.h in its own newline-delimited block otherwise, which prevents clang-format from trying to reorder.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFDrOvJ3Jz2y2vN7MCZaRi4mZuVVyrzT9JYGSDmDv%2ByCxQ%40mail.gmail.com.
On Thu, Feb 8, 2024 at 4:21 PM 'Peter Kasting' via cxx <c...@chromium.org> wrote:(2) placing windows.h in its own newline-delimited block otherwise, which prevents clang-format from trying to reorder.Is this still the case? I recall we tried to roll in a new version of clang-format that rebuilt the entire include section. (I was actually a big fan of it, except for the fact that it sometimes reordered <windows.h>.
The transitive includes issue is indeed annoying. I'm surprised it bit us much here assuming ABSL_USES_STD_OPTIONAL is true, though. That does pull in "absl/utility/utility.h" unnecessarily, which might be the source of our problems. We probably should try and fix that upstream.
For reviewer latency -- are you using an LSC global approver? That way you can fire a stream of large CLs, they can stamp+OO quickly, and you can land. If not, I strongly advise going this route.
Is this still the case? I recall we tried to roll in a new version of clang-format that rebuilt the entire include section. (I was actually a big fan of it, except for the fact that it sometimes reordered <windows.h>.
The transitive includes issue is indeed annoying. I'm surprised it bit us much here assuming ABSL_USES_STD_OPTIONAL is true, though. That does pull in "absl/utility/utility.h" unnecessarily, which might be the source of our problems. We probably should try and fix that upstream.
For reviewer latency -- are you using an LSC global approver? That way you can fire a stream of large CLs, they can stamp+OO quickly, and you can land. If not, I strongly advise going this route.
Is this still the case? I recall we tried to roll in a new version of clang-format that rebuilt the entire include section. (I was actually a big fan of it, except for the fact that it sometimes reordered <windows.h>.
On Thu, Feb 8, 2024 at 4:26 PM Avi Drissman <a...@chromium.org> wrote:On Thu, Feb 8, 2024 at 4:21 PM 'Peter Kasting' via cxx <c...@chromium.org> wrote:(2) placing windows.h in its own newline-delimited block otherwise, which prevents clang-format from trying to reorder.Is this still the case? I recall we tried to roll in a new version of clang-format that rebuilt the entire include section. (I was actually a big fan of it, except for the fact that it sometimes reordered <windows.h>.Really this should be configurable in clang-format in some way..
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAKFU2SCjeyVnNdk3SsFZZdrvQTfN8KKmS_8Rh1O9JBghjaJ0Ug%40mail.gmail.com.
Dumb idea: create a top level "absl/" dir containing forwarding headers to the third_party ones, only for the allowed headers. Then the DEPS rules just become "+absl/", and we chop "third_party/abseil-cpp/" off all absl includes in first-party code.Thoughts?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFBpSvBXozZneanNbR9vL0iZ7OFXoiMHVP4z63qkZLzY-g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CA%2BOSsVb%2BY9Z%2Bn0TSb8YejV4yqofvKf9QzUEAXD1updvizBsw3g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFDH2ujTEodysONegypzgQngU3Fz7v6Q26JU4MzmaRpVoQ%40mail.gmail.com.
On Thu, 8 Feb 2024 at 13:33, danakj <dan...@chromium.org> wrote:On Thu, Feb 8, 2024 at 4:26 PM Avi Drissman <a...@chromium.org> wrote:On Thu, Feb 8, 2024 at 4:21 PM 'Peter Kasting' via cxx <c...@chromium.org> wrote:(2) placing windows.h in its own newline-delimited block otherwise, which prevents clang-format from trying to reorder.Is this still the case? I recall we tried to roll in a new version of clang-format that rebuilt the entire include section. (I was actually a big fan of it, except for the fact that it sometimes reordered <windows.h>.
In the past, I tried fixing this using include categories (https://clang.llvm.org/docs/ClangFormatStyleOptions.html#includecategories), but this didn't work well because clang refused to re-order across headers delimited by newline blocks.