<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/Parser/cxx-ambig-decl-expr.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[Clang] Fix parsing of `(auto(x))`.</title>
<updated>2023-05-20T11:22:58+00:00</updated>
<author>
<name>Corentin Jabot</name>
<email>corentinjabot@gmail.com</email>
</author>
<published>2023-04-26T18:09:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1b0ba1c12fcc86dcf4097b3b8941260e8c6361fa'/>
<id>1b0ba1c12fcc86dcf4097b3b8941260e8c6361fa</id>
<content type='text'>
Allow auto(x) to appear in a parenthesis
expression.

The pattern (auto( can appear as part of a declarator,
so the parser is modified to avoid the ambiguity,
in a way consistent with the proposed resolution to CWG1223.

Reviewed By: aaron.ballman, #clang-language-wg

Differential Revision: https://reviews.llvm.org/D149276
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow auto(x) to appear in a parenthesis
expression.

The pattern (auto( can appear as part of a declarator,
so the parser is modified to avoid the ambiguity,
in a way consistent with the proposed resolution to CWG1223.

Reviewed By: aaron.ballman, #clang-language-wg

Differential Revision: https://reviews.llvm.org/D149276
</pre>
</div>
</content>
</entry>
<entry>
<title>Diagnose -Wunused-value based on CFG reachability</title>
<updated>2021-09-28T17:00:15+00:00</updated>
<author>
<name>Yuanfang Chen</name>
<email>yuanfang.chen@sony.com</email>
</author>
<published>2021-06-24T06:46:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=27a972a699cd875c7fa9114dc0888015cd724f31'/>
<id>27a972a699cd875c7fa9114dc0888015cd724f31</id>
<content type='text'>
(This relands 59337263ab45d7657e and makes sure comma operator
 diagnostics are suppressed in a SFINAE context.)

While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(This relands 59337263ab45d7657e and makes sure comma operator
 diagnostics are suppressed in a SFINAE context.)

While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Diagnose -Wunused-value based on CFG reachability"</title>
<updated>2021-09-23T18:12:00+00:00</updated>
<author>
<name>Yuanfang Chen</name>
<email>yuanfang.chen@sony.com</email>
</author>
<published>2021-09-23T18:12:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=59337263ab45d7657ee901eb5525a21967c46265'/>
<id>59337263ab45d7657ee901eb5525a21967c46265</id>
<content type='text'>
This reverts commit cbbf2e8c8ae7730ff0121f4868de4a7d188feb65.
It seems causing diagnoses in SFINAE context.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit cbbf2e8c8ae7730ff0121f4868de4a7d188feb65.
It seems causing diagnoses in SFINAE context.
</pre>
</div>
</content>
</entry>
<entry>
<title>Diagnose -Wunused-value based on CFG reachability</title>
<updated>2021-09-22T21:38:06+00:00</updated>
<author>
<name>Yuanfang Chen</name>
<email>yuanfang.chen@sony.com</email>
</author>
<published>2021-06-24T06:46:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cbbf2e8c8ae7730ff0121f4868de4a7d188feb65'/>
<id>cbbf2e8c8ae7730ff0121f4868de4a7d188feb65</id>
<content type='text'>
While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Diagnose -Wunused-value based on CFG reachability"</title>
<updated>2021-09-21T16:25:13+00:00</updated>
<author>
<name>Aaron Ballman</name>
<email>aaron@aaronballman.com</email>
</author>
<published>2021-09-21T16:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=73a8bcd78921d38130fc42c90fd75d47b05b063d'/>
<id>73a8bcd78921d38130fc42c90fd75d47b05b063d</id>
<content type='text'>
This reverts commit 63e0d038fc20c894a3d541effa1bc2b1fdea37b9.

It causes test failures:

http://lab.llvm.org:8011/#/builders/119/builds/5612
https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8835548361443044001/+/u/clang/test/stdout
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 63e0d038fc20c894a3d541effa1bc2b1fdea37b9.

It causes test failures:

http://lab.llvm.org:8011/#/builders/119/builds/5612
https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8835548361443044001/+/u/clang/test/stdout
</pre>
</div>
</content>
</entry>
<entry>
<title>Diagnose -Wunused-value based on CFG reachability</title>
<updated>2021-09-20T17:43:34+00:00</updated>
<author>
<name>Yuanfang Chen</name>
<email>yuanfang.chen@sony.com</email>
</author>
<published>2021-06-24T06:46:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=63e0d038fc20c894a3d541effa1bc2b1fdea37b9'/>
<id>63e0d038fc20c894a3d541effa1bc2b1fdea37b9</id>
<content type='text'>
While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[Sema] Fix -Warray-bounds false negative when casting an out-of-bounds array item"</title>
<updated>2021-02-08T12:38:31+00:00</updated>
<author>
<name>einvbri</name>
<email>vince.a.bridgers@ericsson.com</email>
</author>
<published>2021-02-08T12:38:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9083d0a40d980928f2f45236a4616528a7ab19ce'/>
<id>9083d0a40d980928f2f45236a4616528a7ab19ce</id>
<content type='text'>
This reverts commit e48f444751cf781c42934b242b81f549da77bad0.

thakis noticed false reports, so reverting this change for now until
those can be sorted out.

See https://reviews.llvm.org/D71714
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit e48f444751cf781c42934b242b81f549da77bad0.

thakis noticed false reports, so reverting this change for now until
those can be sorted out.

See https://reviews.llvm.org/D71714
</pre>
</div>
</content>
</entry>
<entry>
<title>[Sema] Fix -Warray-bounds false negative when casting an out-of-bounds array item</title>
<updated>2021-02-03T13:50:50+00:00</updated>
<author>
<name>Ilya Mirsky</name>
<email>ilya.mirsky@ericsson.com</email>
</author>
<published>2021-01-18T00:02:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e48f444751cf781c42934b242b81f549da77bad0'/>
<id>e48f444751cf781c42934b242b81f549da77bad0</id>
<content type='text'>
Patch by Ilya Mirsky!

Fixes: http://llvm.org/PR44343

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D71714
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch by Ilya Mirsky!

Fixes: http://llvm.org/PR44343

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D71714
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix TryParsePtrOperatorSeq.</title>
<updated>2020-02-24T13:08:47+00:00</updated>
<author>
<name>Michele Scandale</name>
<email>michele.scandale@gmail.com</email>
</author>
<published>2020-02-24T12:59:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bd5b22070b6984d89c13b6cf38c3e54fc98ce291'/>
<id>bd5b22070b6984d89c13b6cf38c3e54fc98ce291</id>
<content type='text'>
The syntax rules for ptr-operator allow attributes after *, &amp;,
&amp;&amp;, therefore we should be able to parse the following:

void fn() {
    void (*[[attr]] x)() = &amp;fn;
    void (&amp;[[attr]] y)() = fn;
    void (&amp;&amp;[[attr]] z)() = fn;
}
However the current logic in TryParsePtrOperatorSeq does not consider
the presence of attributes leading to unexpected parsing errors.

Moreover we should also consider _Atomic a possible qualifier that can
appear after the sequence of attribute specifiers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The syntax rules for ptr-operator allow attributes after *, &amp;,
&amp;&amp;, therefore we should be able to parse the following:

void fn() {
    void (*[[attr]] x)() = &amp;fn;
    void (&amp;[[attr]] y)() = fn;
    void (&amp;&amp;[[attr]] z)() = fn;
}
However the current logic in TryParsePtrOperatorSeq does not consider
the presence of attributes leading to unexpected parsing errors.

Moreover we should also consider _Atomic a possible qualifier that can
appear after the sequence of attribute specifiers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly disambiguate between array declarators and array subscript expressions.</title>
<updated>2019-11-28T01:54:26+00:00</updated>
<author>
<name>Richard Smith</name>
<email>richard@metafoo.co.uk</email>
</author>
<published>2019-11-28T01:54:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=789a7aa37d0cca70d6e48908ce3e8bb4e761e266'/>
<id>789a7aa37d0cca70d6e48908ce3e8bb4e761e266</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
