public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/97076] New: clang-format file does not work for some C++11 code
@ 2020-09-16 18:18 dmjpp at hotmail dot com
2020-09-17 21:24 ` [Bug other/97076] " cvs-commit at gcc dot gnu.org
2020-09-19 17:52 ` dmjpp at hotmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: dmjpp at hotmail dot com @ 2020-09-16 18:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97076
Bug ID: 97076
Summary: clang-format file does not work for some C++11 code
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: dmjpp at hotmail dot com
Target Milestone: ---
This is not a bug in GCC, but in the supporting files in contrib. The
clang-format file at the end has Standard: Cpp03. See
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=contrib/clang-format;h=7a4e96f64ca64a332ca5f945f08425c3a3e045c6;hb=HEAD#l150
I was writing a libstdc++ patch where I used the C++11 feature Unicode string
literals.
auto x = u"abc";
The clang format adds a space between the u and the quotation marks, making the
file invalid C++.
auto x = u "abc";
The fix is to change the standard to auto:
Standard: Auto
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug other/97076] clang-format file does not work for some C++11 code
2020-09-16 18:18 [Bug other/97076] New: clang-format file does not work for some C++11 code dmjpp at hotmail dot com
@ 2020-09-17 21:24 ` cvs-commit at gcc dot gnu.org
2020-09-19 17:52 ` dmjpp at hotmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-17 21:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97076
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:
https://gcc.gnu.org/g:172178c0c35e1dabb778c80c26dc872136c45cf5
commit r11-3269-g172178c0c35e1dabb778c80c26dc872136c45cf5
Author: Dimitrij Mojoski <dmjpp@hotmail.com>
Date: Thu Sep 17 15:22:33 2020 -0600
Autodetect C++ dialect in use for clang-format
PR other//97076
* clang-format: Autodetect C++ standard in use rather than
forcing C++03.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug other/97076] clang-format file does not work for some C++11 code
2020-09-16 18:18 [Bug other/97076] New: clang-format file does not work for some C++11 code dmjpp at hotmail dot com
2020-09-17 21:24 ` [Bug other/97076] " cvs-commit at gcc dot gnu.org
@ 2020-09-19 17:52 ` dmjpp at hotmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: dmjpp at hotmail dot com @ 2020-09-19 17:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97076
Dimitrij Mijoski <dmjpp at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Dimitrij Mijoski <dmjpp at hotmail dot com> ---
Fixed in
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=172178c0c35e1dabb778c80c26dc872136c45cf5
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-19 17:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 18:18 [Bug other/97076] New: clang-format file does not work for some C++11 code dmjpp at hotmail dot com
2020-09-17 21:24 ` [Bug other/97076] " cvs-commit at gcc dot gnu.org
2020-09-19 17:52 ` dmjpp at hotmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).