DavidEGrayson removed rL LLVM as the repository for this revision.
DavidEGrayson updated this revision to Diff 35592.
DavidEGrayson added a comment.
I have changed the patch to incorporate most of John McCall's feedback. The
only thing I didn't act on was the suggestion to change the names of
seaneveson added a comment.
Thank you for looking at the patch and all your comments.
In http://reviews.llvm.org/D13099#252492, @xazax.hun wrote:
> One more note. Do we want to support const_cast for this? A possible way to
> do that is to invalidate this, when a const cast appears in the body
pgousseau updated this revision to Diff 35604.
pgousseau added a comment.
Following Gabor's review:
Add a test factoring 'index + 1' in an extra variable.
Let me know if this looks reasonable ?
Regards,
Pierre
http://reviews.llvm.org/D12901
Files:
alexfh added subscribers: angelgarcia, klimek, cfe-commits.
alexfh added a comment.
One trivial comment. Angel can probably fix this faster.
/clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertCheck.cpp:394 ```
// Handle references to containers.
CType = CType->getNonReferenceType();
```
angelgarcia updated this revision to Diff 35608.
angelgarcia added a comment.
> No need to check the length. `endswith` handles this itself.
I am checking that it is strictly greater than one, because we don't want an
empty identifier after removing the "s".
http://reviews.llvm.org/D13052
Author: vsukharev
Date: Thu Sep 24 05:06:44 2015
New Revision: 248480
URL: http://llvm.org/viewvc/llvm-project?rev=248480=rev
Log:
[ARM] Follow-up to fix crash "-target arm -mcpu=generic", without "-march="
Fix of dangling StringRef after temporary std::string is destroyed
Follow-up to:
Author: dsanders
Date: Thu Sep 24 05:22:17 2015
New Revision: 248481
URL: http://llvm.org/viewvc/llvm-project?rev=248481=rev
Log:
[mips] Relax -mnan=2008 acceptance to permit MIPS32R2 and MIPS64R2.
Summary:
Strictly speaking, the MIPS*R2 ISA's should not permit -mnan=2008 since this
feature was
Author: vsukharev
Date: Thu Sep 24 04:55:08 2015
New Revision: 248479
URL: http://llvm.org/viewvc/llvm-project?rev=248479=rev
Log:
[ARM] Follow-up to fix crash "-target arm -mcpu=generic", without "-march="
Fix of dangling StringRef after temporary std::string is destroyed
Follow-up to:
dsanders added subscribers: rengolin, joerg.
dsanders added a comment.
+Renato and Joerg
I was going to say I think it's ok and the optimizer should be smart enough to
factor out the common IsMips check but I've just realized there may be a better
way. The current code is using an else after
jketema created this revision.
jketema added a reviewer: sbaranga.
jketema added a subscriber: cfe-commits.
Herald added subscribers: rengolin, aemerson.
This if the clang companion patch for http://reviews.llvm.org/D12985, which
upgrades the vld[234] and vst[234] to take pointers annotated with
berenm added a comment.
Well, the format on save setting is disabled by default, do you mean you had to
enable it twice? Or you had it enabled without the C++ development tools, and
after the installation you had to disable and enable it again?
http://reviews.llvm.org/D12407
samsonov accepted this revision.
samsonov added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rL LLVM
http://reviews.llvm.org/D13122
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
xazax.hun added a comment.
One more note. Do we want to support const_cast for this? A possible way to do
that is to invalidate this, when a const cast appears in the body of the
function. (However the body might not be available. It is only my opinion, but
I would be ok to accept this patch
alexfh added a subscriber: cfe-commits.
alexfh added a comment.
Test test test.
Let's see how adding subscribers from the comments form in Diffusion works.
/clang-tools-extra/trunk/test/clang-tidy/modernize-loop-convert-basic.cpp:621
Testtesttest
Users:
klimek (Author)
On Thu, Sep 24, 2015 at 10:24 AM, Alexander Kornienko
wrote:
> alexfh added a subscriber: cfe-commits.
> alexfh added a comment.
>
> Test test test.
>
> Let's see how adding subscribers from the comments form in Diffusion works.
>
>
>
danielmarjamaki created this revision.
danielmarjamaki added a reviewer: zaks.anna.
danielmarjamaki added a subscriber: cfe-commits.
This is a new static analyzer checker that warns when there is loss of sign and
loss of precision.
It is similar in spirit to Wsign-compare/Wsign-conversion etc.
ABataev created this revision.
ABataev added a reviewer: chandlerc.
ABataev added a subscriber: cfe-commits.
If stdout is used as an output file for several outputs (like dep file, output
file, etc.) , it causes a crash in llvm::raw_fd_ostream::~raw_fd_ostream(),
when destructor tries to close
On Thu, Sep 24, 2015 at 10:22:29AM +, Daniel Sanders via cfe-commits wrote:
> I'm thinking something like:
I think we really want to have an outer case, platform specific -Wa
options are quite common. Only x86 is mostly getting by without them so
far. I also think the switch is not that
angelgarcia created this revision.
angelgarcia added a reviewer: alexfh.
angelgarcia added subscribers: klimek, cfe-commits.
Solve comment on rL248418.
http://reviews.llvm.org/D13129
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
Index: clang-tidy/modernize/LoopConvertCheck.cpp
The biggest problem is that those comments don't go on the cfe-commmits
thread that gets auto-triggered by commits, and we really want to not add
new threads.
On Thu, Sep 24, 2015 at 4:28 AM Alexander Kornienko
wrote:
> alexfh added inline comments.
>
>
angelgarcia added a comment.
I sent a patch with that.
Users:
klimek (Author)
http://reviews.llvm.org/rL248418
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yaron.keren added a subscriber: yaron.keren.
yaron.keren added a comment.
When stdout goes elsewhere the console, the shell creates the the output file
(pipe) and will close it when clang terminates so so why clang should close it
at all ? it did not open it.
Practically, we have been
xazax.hun added a comment.
A general style comment: you could decrease the level of indentation using
early returns. I have one more comment inline, otherwise it looks good to me.
Comment at: lib/StaticAnalyzer/Core/CallEvent.cpp:422
@@ +421,3 @@
+ // Check if this is a call
angelgarcia created this revision.
angelgarcia added a reviewer: alexfh.
angelgarcia added subscribers: klimek, cfe-commits.
Remove parenthesis surrounding the new loop index.
http://reviews.llvm.org/D13133
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
seaneveson updated this revision to Diff 35617.
seaneveson added a comment.
Removed unnecessary call to getCanonical.
Changed if statement checking getting ThisRegion to an assert.
Added code to handle mutable members of base classes.
http://reviews.llvm.org/D13099
Files:
ABataev added a comment.
In http://reviews.llvm.org/D13128#252630, @yaron.keren wrote:
> When stdout goes elsewhere the console, the shell creates the the output file
> (pipe) and will close it when clang terminates so so why clang should close
> it at all ? it did not open it.
>
>
Author: d0k
Date: Thu Sep 24 09:48:49 2015
New Revision: 248496
URL: http://llvm.org/viewvc/llvm-project?rev=248496=rev
Log:
Drop useless const in for-range loops.
StringRefs always point to immutable memory so the const doesn't add value
here. Also quiets clang's -Wrange-loop-analysis which
pgousseau added a comment.
In http://reviews.llvm.org/D12571#252366, @dcoughlin wrote:
> Looks good to me! Thanks Pierre! I will commit.
Much appreciated thanks !
http://reviews.llvm.org/D12571
___
cfe-commits mailing list
angelgarcia updated this revision to Diff 35629.
angelgarcia added a comment.
Add comment.
http://reviews.llvm.org/D13133
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
test/clang-tidy/modernize-loop-convert-basic.cpp
test/clang-tidy/modernize-loop-convert-extra.cpp
Index:
angelgarcia updated this revision to Diff 35630.
angelgarcia added a comment.
Done!
http://reviews.llvm.org/D13052
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
clang-tidy/modernize/LoopConvertCheck.h
clang-tidy/modernize/LoopConvertUtils.cpp
clang-tidy/modernize/LoopConvertUtils.h
yaron.keren added a subscriber: sunfish.
yaron.keren added a comment.
The original commit
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20100816/106268.html
by Dan Ghoman says:
"Make raw_fd_ostream consider itself the owner of STDOUT_FILENO when
constructed with an output filename
angelgarcia updated this revision to Diff 35626.
angelgarcia added a comment.
Added a test where the parenthesis must not be removed, and one where they
should.
http://reviews.llvm.org/D13133
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
test/clang-tidy/modernize-loop-convert-basic.cpp
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
Looks good with a comment. Thank you!
Comment at: test/clang-tidy/modernize-loop-convert-uppercase.cpp:48
@@ +47,3 @@
+ // CHECK-FIXES: for (auto & NUMS_ELEM : NUMS)
+ //
Author: d0k
Date: Thu Sep 24 09:48:37 2015
New Revision: 248495
URL: http://llvm.org/viewvc/llvm-project?rev=248495=rev
Log:
[Driver] Don't implicitly copy std::strings in for-range loop.
Found by -Wrange-loop-analysis.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified:
angelgarcia added a comment.
Usage.Expression can be:
-CXXMemberCallExpr: "container.at(i)"
-CXXOperatorCallExpr: "*it" or "container[i]"
-ArraySubscripExpr: "Arr[i]"
-UnaryOperator: "*ptr"
-MemberExpr: "it->member" (we only replace "it->" with "elem." in this
case).
The point is that all of
richard.barton.arm added inline comments.
Comment at: lib/Frontend/CompilerInvocation.cpp:1711
@@ -1710,1 +1710,3 @@
Args.hasArg(OPT_cl_fast_relaxed_math);
+ Opts.UnsafeFPMath = Args.hasArg(OPT_menable_unsafe_fp_math) ||
+
Too bad. Making these two kinds of mails go to the same thread is hardly a
trivial thing. And completely switching commit notifications to Phabricator
is something not very realistic, I guess (at least, at this point).
Giving up.
On Thu, Sep 24, 2015 at 3:24 PM, Manuel Klimek
Yep, as I said, I would love to do that, but it would require significant
effort :(
On Thu, Sep 24, 2015 at 7:03 AM Alexander Kornienko
wrote:
> Too bad. Making these two kinds of mails go to the same thread is hardly a
> trivial thing. And completely switching commit
klimek added a comment.
Can you add a test where we need the parens? (where the element is of ** type
or something)
http://reviews.llvm.org/D13133
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
labrinea updated this revision to Diff 35628.
labrinea added a comment.
@t.p.northover I think we should not be defining _ARM_FP_FENV_ROUNDING on
neither of ARM and AArch64 targets since "-frounding-math" is not available on
clang: clang/llvm don't support C99 FP rounding mode pragmas
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a comment.
Thank you for continuing to work on this, I think it's a good diagnostic to
have.
There are still quite a few unanswered questions in the phab thread. Also, the
patch appears to be missing tests, which might help to clarify
skomski created this revision.
skomski added reviewers: dcoughlin, krememek, jordan_rose.
skomski added a subscriber: cfe-commits.
skomski set the repository for this revision to rL LLVM.
Adds three keyboard shortcuts to report.html
to make navigation faster:
Jump to next path: j
Jump to
klimek added inline comments.
Comment at: clang-tidy/modernize/LoopConvertCheck.cpp:482
@@ +481,3 @@
+auto Parents = Context->getParents(*Usage.Expression);
+if (Parents.size() == 1) {
+ if (const auto *Paren = Parents[0].get())
Perhaps
labrinea added inline comments.
Comment at: lib/Frontend/CompilerInvocation.cpp:1711
@@ -1710,1 +1710,3 @@
Args.hasArg(OPT_cl_fast_relaxed_math);
+ Opts.UnsafeFPMath = Args.hasArg(OPT_menable_unsafe_fp_math) ||
+
jroelofs added a comment.
Oh, yeah, true.
http://reviews.llvm.org/D12996
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
klimek accepted this revision.
klimek added a comment.
This revision is now accepted and ready to land.
LG
http://reviews.llvm.org/D13133
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: angelgarcia
Date: Thu Sep 24 10:29:46 2015
New Revision: 248507
URL: http://llvm.org/viewvc/llvm-project?rev=248507=rev
Log:
Remove dangling parenthesis.
Summary: Remove parenthesis surrounding the new loop index.
Reviewers: klimek
Subscribers: cfe-commits, klimek
Differential
Author: adrian
Date: Thu Sep 24 11:10:04 2015
New Revision: 248510
URL: http://llvm.org/viewvc/llvm-project?rev=248510=rev
Log:
Debug Info: Use the module pointer as key for the module cache.
This way we don't need to rebuild the full module name for every decl.
Modified:
Author: adrian
Date: Thu Sep 24 11:10:10 2015
New Revision: 248511
URL: http://llvm.org/viewvc/llvm-project?rev=248511=rev
Log:
Module Debugging: Emit submodules as nested DW_TAG_modules.
Added:
cfe/trunk/test/Modules/DebugInfoSubmoduleImport.c
Modified:
alexfh added a comment.
Please add more context to the diffs.
Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:508
@@ +507,3 @@
+ auto = Failures[Decl];
+ for (const auto : Failure.Usages) {
+if (R == Range)
berenm wrote:
> Hopefully the
alexfh added a comment.
Still looks good.
http://reviews.llvm.org/D13052
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
On Thu, Sep 24, 2015 at 4:20 AM, Yaron Keren via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> Visual C++ 2013 update 5 (latest) does not appear to compile this, mainly
> due to missing support for constexpr.
>
> https://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx
>
> Visual C++
bruno updated this revision to Diff 35664.
bruno added a comment.
Added test per Duncan's comment.
Repository:
rL LLVM
http://reviews.llvm.org/D13117
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Tools.cpp
test/Driver/darwin-ld.c
Index: test/Driver/darwin-ld.c
berenm updated this revision to Diff 35669.
berenm added a comment.
Reformatting with clang-format
http://reviews.llvm.org/D13079
Files:
clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tidy/readability/IdentifierNamingCheck.h
test/clang-tidy/readability-identifier-naming.cpp
Ah, OK. Maybe it would compile with VC 2013 by using LLVM_CONSTEXPR instead
of constexpr. It's not available now in libcxx but the definition from
Compiler.h is trivial.
2015-09-24 19:28 GMT+03:00 Nico Weber :
> On Thu, Sep 24, 2015 at 4:20 AM, Yaron Keren via cfe-commits
On 24 September 2015 at 07:53, Alexandros Lamprineas
wrote:
> @t.p.northover I think we should not be defining _ARM_FP_FENV_ROUNDING on
> neither of ARM and AArch64 targets since "-frounding-math" is not available
> on clang: clang/llvm don't support C99 FP
Hello everyone,
LLVM buildmaster will be restarted after 6 PM Pacific time today.
Thanks
Galina
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
berenm added a comment.
This will also disable all warnings for declaration / usages outside of the
main file.
It might be better to disable the warnings and fixes whenever a macro is
involved (in the declaration or any usage), but at least keep the warning
across files, even if we don't
Author: askrobov
Date: Thu Sep 24 12:34:05 2015
New Revision: 248521
URL: http://llvm.org/viewvc/llvm-project?rev=248521=rev
Log:
Recommit r248154: [ARM] Handle DSP feature as an ArchExtKind
Currently, the availability of DSP instructions (ACLE 6.4.7) is handled in
a hand-rolled tricky condition
eugenis added a comment.
Thanks, committed as r248518 with a test.
Repository:
rL LLVM
http://reviews.llvm.org/D13122
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: eugenis
Date: Thu Sep 24 12:22:46 2015
New Revision: 248518
URL: http://llvm.org/viewvc/llvm-project?rev=248518=rev
Log:
Enable SafeStack on all Linux platforms.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
cfe/trunk/test/Driver/fsanitize.c
Modified:
berenm marked 2 inline comments as done.
berenm added a comment.
http://reviews.llvm.org/D13079
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
dexonsmith added a comment.
Sorry for the review fragmentation, but I just noticed there's no test
for the new warning. Can you add one? After that, LGTM.
Repository:
rL LLVM
http://reviews.llvm.org/D13117
___
cfe-commits mailing list
This revision was automatically updated to reflect the committed changes.
Closed by commit rL248546: This patch adds missing pieces to clang, including
the PS4 toolchain (authored by kromanova).
Changed prior to commit:
http://reviews.llvm.org/D11279?vs=34522=35681#toc
Repository:
rL LLVM
zaks.anna added a comment.
The analyzer has a notion of ConstPointerEscape, see checkConstPointerEscape
callback.
All the pointers to const parameters are escaped this way. The implementation
for that is in CallEvent::invalidateRegions, right below the code you've added:
for (unsigned Idx = 0,
bader added a subscriber: bader.
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7472-7473
@@ -7469,4 +7471,4 @@
"sampler type cannot be used with the __local and __global address space
qualifiers">;
def err_opencl_global_invalid_addr_space : Error<
- "global
MyDeveloperDay added a comment.
I went back and retested VS2010, VS2013 and VS2015. so in all cases I
1. start Visual studio
2. open a .h file (with incorrect style) - (via the recent file menu)
3. make a minor edit of whitespace
4. hit save file
In allcases it does NOT reformat the file
Now
george.burgess.iv added a comment.
Friendly ping :)
http://reviews.llvm.org/D12821
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: kromanova
Date: Thu Sep 24 17:06:52 2015
New Revision: 248546
URL: http://llvm.org/viewvc/llvm-project?rev=248546=rev
Log:
This patch adds missing pieces to clang, including the PS4 toolchain
definition, added warnings, PS4 defaults, and Driver changes needed for
our compiler.
A patch by
Author: echristo
Date: Thu Sep 24 16:17:04 2015
New Revision: 248539
URL: http://llvm.org/viewvc/llvm-project?rev=248539=rev
Log:
Move the darwin define static function to be close to the OS define.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL:
Author: echristo
Date: Thu Sep 24 16:17:02 2015
New Revision: 248538
URL: http://llvm.org/viewvc/llvm-project?rev=248538=rev
Log:
Use just one larger anonymous namespace instead of a lot of smaller ones.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
Sorry for the review fragmentation, but I just noticed there's no test
for the new warning. Can you add one? After that, LGTM.
> On 2015-Sep-24, at 11:57, Bruno Cardoso Lopes wrote:
>
> bruno updated this revision to Diff 35664.
> bruno added a comment.
>
> Added
berenm updated this revision to Diff 35672.
berenm added a comment.
- Do not check for identifier names from system headers
- Check for SourceLocation validity before modifying them
http://reviews.llvm.org/D13081
Files:
clang-tidy/readability/IdentifierNamingCheck.cpp
Author: spatel
Date: Thu Sep 24 16:11:52 2015
New Revision: 248537
URL: http://llvm.org/viewvc/llvm-project?rev=248537=rev
Log:
fix typos; NFC
Modified:
cfe/trunk/include/clang/Lex/PPCallbacks.h
Modified: cfe/trunk/include/clang/Lex/PPCallbacks.h
URL:
Author: dcoughlin
Date: Thu Sep 24 11:52:56 2015
New Revision: 248516
URL: http://llvm.org/viewvc/llvm-project?rev=248516=rev
Log:
[analyzer] When memcpy'ing into a fixed-size array, do not invalidate entire
region.
Change the analyzer's modeling of memcpy to be more precise when copying into
This revision was automatically updated to reflect the committed changes.
Closed by commit rL248516: [analyzer] When memcpy'ing into a fixed-size array,
do not invalidate entire… (authored by dcoughlin).
Changed prior to commit:
http://reviews.llvm.org/D12571?vs=35505=35644#toc
Repository:
ABataev updated the summary for this revision.
ABataev updated this revision to Diff 35698.
ABataev added a comment.
Reworked patch after some discussion
http://reviews.llvm.org/D13128
Files:
lib/Support/raw_ostream.cpp
test/Other/empty.ll
Index: lib/Support/raw_ostream.cpp
george.burgess.iv created this revision.
george.burgess.iv added a reviewer: rtrieu.
george.burgess.iv added a subscriber: cfe-commits.
Currently, -Wtautological-overlap-compare only emits warnings if the
comparisons are between integer literals and variables. This patch adds support
for
78 matches
Mail list logo