--
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 visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAO5B8RtRSeuW4yDbuSHy0gbp3htb1Te-%2BfxfaJXOvprNNqhrwQ%40mail.gmail.com.
I've used this style in the past, and the mismatch in the indents between the wrapped code and the preprocessor directives can get kinda confusing.I do think avoiding a lot of nested #if is generally better, although if you have to have a lot of nesting for some reason, I like the indented style a bit more, personally. A lot of folks aren't familiar with it, though, so maybe a small readability speed bump there.
I think we don't want to change the clang-format settings file frequently.
And making deeply nested ifdefs look nice kind of sets the wrong incentive :)
--
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 visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACwGi-4OGfZ2wdaAG39pvZz8WxkY47yWiZYYOw%2BvUkoouxSSOA%40mail.gmail.com.
If we temporarily ifdef out some code, it'd get indented and affect history (blame). Is that good? In a way, the affected code did change (stopped vs resumed running, on some platforms) but it also didn't (logic wise)...I also worry about the wasted horizontal space, we don't nest code in namespaces, this feels similar?
PK
I heartily endorse indented directives (whether spaces-after-# or spaces-before-#, both of which have been valid for decades). I think everybody should always have been using them everywhere, regardless of trailing comment conventions or how much or how little directive nests can be avoided. But I'm not an active contributor whose speaking up counts.
--
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.
--
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 visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAO5B8RuYXJC4Xv_wdH%3D9WnvjDZsWJP8HhvYsrLeEt0DvVVb3gg%40mail.gmail.com.