<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/CodeGenCXX/predefined-expr-cxx14.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>[CodeGen] Always use string computed in Sema for PredefinedExpr</title>
<updated>2019-01-22T00:11:17+00:00</updated>
<author>
<name>Eli Friedman</name>
<email>efriedma@codeaurora.org</email>
</author>
<published>2019-01-22T00:11:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3f82f9e127268d28f2830d72bf4f402e31a0a477'/>
<id>3f82f9e127268d28f2830d72bf4f402e31a0a477</id>
<content type='text'>
We can't use any other string, anyway, because its type wouldn't
match the type of the PredefinedExpr.

With this change, we don't compute a "nice" name for the __func__ global
when it's used in the initializer for a constant. This doesn't seem like
a great loss, and I'm not sure how to fix it without either storing more
information in the AST, or somehow threading through the information
from ExprConstant.cpp.

This could break some situations involving BlockDecl; currently,
CodeGenFunction::EmitPredefinedLValue has some logic to intentionally
emit a string different from what Sema computed.  This code skips that
logic... but that logic can't work correctly in general anyway.  (For
example, sizeof(__func__) returns the wrong result.) Hopefully this
doesn't affect practical code.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40313 .

Differential Revision: https://reviews.llvm.org/D56821

llvm-svn: 351766
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can't use any other string, anyway, because its type wouldn't
match the type of the PredefinedExpr.

With this change, we don't compute a "nice" name for the __func__ global
when it's used in the initializer for a constant. This doesn't seem like
a great loss, and I'm not sure how to fix it without either storing more
information in the AST, or somehow threading through the information
from ExprConstant.cpp.

This could break some situations involving BlockDecl; currently,
CodeGenFunction::EmitPredefinedLValue has some logic to intentionally
emit a string different from what Sema computed.  This code skips that
logic... but that logic can't work correctly in general anyway.  (For
example, sizeof(__func__) returns the wrong result.) Hopefully this
doesn't affect practical code.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40313 .

Differential Revision: https://reviews.llvm.org/D56821

llvm-svn: 351766
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks</title>
<updated>2016-11-16T07:07:28+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>mehdi.amini@apple.com</email>
</author>
<published>2016-11-16T07:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dc9bf8fab6365af788976edddfc8221eceecaccb'/>
<id>dc9bf8fab6365af788976edddfc8221eceecaccb</id>
<content type='text'>
Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.

Recommit r287039 (that was reverted in r287039) with a tweak to
be more generic, and test fixes!

Differential Revision: https://reviews.llvm.org/D26522

llvm-svn: 287085
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.

Recommit r287039 (that was reverted in r287039) with a tweak to
be more generic, and test fixes!

Differential Revision: https://reviews.llvm.org/D26522

llvm-svn: 287085
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks"</title>
<updated>2016-11-15T22:19:50+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>mehdi.amini@apple.com</email>
</author>
<published>2016-11-15T22:19:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f5f37ee546bd05427e37b5e9ab2cbcb2ac72f5cc'/>
<id>f5f37ee546bd05427e37b5e9ab2cbcb2ac72f5cc</id>
<content type='text'>
This reverts commit r287039, tests are broken.

llvm-svn: 287043
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit r287039, tests are broken.

llvm-svn: 287043
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks</title>
<updated>2016-11-15T21:47:11+00:00</updated>
<author>
<name>Mehdi Amini</name>
<email>mehdi.amini@apple.com</email>
</author>
<published>2016-11-15T21:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=26168ad5c50f63e676184c207adf643ca7707ce9'/>
<id>26168ad5c50f63e676184c207adf643ca7707ce9</id>
<content type='text'>
Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.

Differential Revision: https://reviews.llvm.org/D26522

llvm-svn: 287039
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of always displaying the mangled name, try to do better
and get something closer to regular functions.

Differential Revision: https://reviews.llvm.org/D26522

llvm-svn: 287039
</pre>
</div>
</content>
</entry>
<entry>
<title>This patch fixes couple of bugs for predefined expression</title>
<updated>2014-11-14T23:55:27+00:00</updated>
<author>
<name>Fariborz Jahanian</name>
<email>fjahanian@apple.com</email>
</author>
<published>2014-11-14T23:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=68e79383619e354988deac99d7c6ac6a75e92b33'/>
<id>68e79383619e354988deac99d7c6ac6a75e92b33</id>
<content type='text'>
used inside blocks. It fixes a crash in naming code
for __func__ etc. when used in a block declared globally.
It also brings back old naming convention for
predefined expression which was broken. rdar://18961148

llvm-svn: 222065
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
used inside blocks. It fixes a crash in naming code
for __func__ etc. when used in a block declared globally.
It also brings back old naming convention for
predefined expression which was broken. rdar://18961148

llvm-svn: 222065
</pre>
</div>
</content>
</entry>
<entry>
<title>PredefinedExpr deserialization test in dependent context.</title>
<updated>2014-10-13T03:27:35+00:00</updated>
<author>
<name>Alexey Bataev</name>
<email>a.bataev@hotmail.com</email>
</author>
<published>2014-10-13T03:27:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4dcead4bc38b0a037e696a52ebf90fc3b3e2fde9'/>
<id>4dcead4bc38b0a037e696a52ebf90fc3b3e2fde9</id>
<content type='text'>
For commit r219561 - Fix deserialization of PredefinedExpr in dependent context.

llvm-svn: 219594
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For commit r219561 - Fix deserialization of PredefinedExpr in dependent context.

llvm-svn: 219594
</pre>
</div>
</content>
</entry>
<entry>
<title>Bugfix for predefined expressions in dependent context.</title>
<updated>2014-10-10T18:58:13+00:00</updated>
<author>
<name>Alexey Bataev</name>
<email>a.bataev@hotmail.com</email>
</author>
<published>2014-10-10T18:58:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=769562a382407436963501230f822358f29e7b13'/>
<id>769562a382407436963501230f822358f29e7b13</id>
<content type='text'>
This bug break compilation with precompiled headers and predefined expressions in dependent context.

llvm-svn: 219525
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This bug break compilation with precompiled headers and predefined expressions in dependent context.

llvm-svn: 219525
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for bug http://llvm.org/PR17427.</title>
<updated>2014-10-09T08:45:04+00:00</updated>
<author>
<name>Alexey Bataev</name>
<email>a.bataev@hotmail.com</email>
</author>
<published>2014-10-09T08:45:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ec4747802ae99edea83b3199df52be5c1f43f048'/>
<id>ec4747802ae99edea83b3199df52be5c1f43f048</id>
<content type='text'>
Assertion failed: "Computed __func__ length differs from type!"
Reworked PredefinedExpr representation with internal StringLiteral field for function declaration.
Differential Revision: http://reviews.llvm.org/D5365

llvm-svn: 219393
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assertion failed: "Computed __func__ length differs from type!"
Reworked PredefinedExpr representation with internal StringLiteral field for function declaration.
Differential Revision: http://reviews.llvm.org/D5365

llvm-svn: 219393
</pre>
</div>
</content>
</entry>
</feed>
