Formatting inconsistency.

626 views
Skip to first unread message

Erik Jensen

unread,
Sep 6, 2024, 6:53:07 PMSep 6
to Chromium-dev
Not sure if this it the right place to report this, but I ran into an odd inconsistency when formatting a particular piece of code:

} else if (std::ranges::all_of(
types,
[](const TypeBase& type) { return *type.begin() == 'a'; }) ||
std::ranges::all_of(types, [](const TypeBase& type) {
return *type.begin() == 'm';
})) {
...
}

Despite both calls to std::range::all_of being the same length and starting on the same column they are formatted very differently, which makes the result harder to read.

Peter Kasting

unread,
Sep 6, 2024, 7:26:04 PMSep 6
to Erik Jensen, Chromium-dev
Weird. I'd file a bug in the llvm subcomponent. 

PK

--
--
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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAN%3DK5G8j8dVSg6fQ%3DUiypj%3D26zgodpTuJrL%2B5AqRjb_e0jVu5g%40mail.gmail.com.

danakj

unread,
Sep 11, 2024, 2:35:11 PMSep 11
to pkas...@chromium.org, Erik Jensen, Chromium-dev

Michael J. Kane II

unread,
Sep 16, 2024, 6:06:18 AMSep 16
to notifi...@github.com, chromi...@chromium.org

Sorry for the spam,

GCC 5.1.0: ISO C does not support '__FUNCTION__' predefined identifier #1739


copyleft@Copyleft-PC:~$ gcc --version

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609


copyleft@Copyleft-PC:~$ find . -type f -exec sed -r 's|__FUNCTION__|__func__|g;s|c89|c99|g' -i '{}' ';'

Thank you for what you do! // Teacher/Father Stuff(@}-,-`-.);

M. Kane II

ad...@copyleftsytems.com

https://copyleft15.wordpress.com

@digital_const // twitter.

Peter Kasting

unread,
Sep 16, 2024, 9:37:33 AMSep 16
to copyle...@gmail.com, notifi...@github.com, Chromium-dev
That isn't related to this thread, nor does chromium officially support GCC, and I don't know what versions and flags the folks who keep GCC working do support. 

PK

Reply all
Reply to author
Forward
0 new messages