Re: [PATCH] D12793: Three new security overflow builtins with generic argument types

2015-09-24 Thread David Grayson via cfe-commits
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

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-24 Thread Sean Eveson via cfe-commits
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

Re: [PATCH] D12901: [Static Analyzer] Intersecting ranges and 64 bit to 32 bit truncations causing "System is over constrained." assertions.

2015-09-24 Thread pierre gousseau via cfe-commits
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:

Re: [Diffusion] rL248418: Fix loop-convert for const references to containers.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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(); ```

Re: [PATCH] D13052: Add NamingStyle option to modernize-loop-convert.

2015-09-24 Thread Angel Garcia via cfe-commits
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

r248480 - [ARM] Follow-up to fix crash "-target arm -mcpu=generic", without "-march="

2015-09-24 Thread Vladimir Sukharev via cfe-commits
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:

r248481 - [mips] Relax -mnan=2008 acceptance to permit MIPS32R2 and MIPS64R2.

2015-09-24 Thread Daniel Sanders via cfe-commits
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

r248479 - [ARM] Follow-up to fix crash "-target arm -mcpu=generic", without "-march="

2015-09-24 Thread Vladimir Sukharev via cfe-commits
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:

Re: [PATCH] D13100: [mips] Separated mips specific -Wa options, so that they are not checked on other platforms.

2015-09-24 Thread Daniel Sanders via cfe-commits
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

[PATCH] D13127: [ARM] Upgrade codegen for vld[234] and vst[234] to to communicate a 0 address space

2015-09-24 Thread Jeroen Ketema via cfe-commits
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

Re: [PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

2015-09-24 Thread Beren Minor via cfe-commits
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

Re: [PATCH] D13122: Enable SafeStack on all Linux platforms

2015-09-24 Thread Alexey Samsonov via cfe-commits
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

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-24 Thread Gábor Horváth via cfe-commits
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

Re: [Diffusion] rL248438: Fix loop-convert for trivially copyable types.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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)

Re: [Diffusion] rL248438: Fix loop-convert for trivially copyable types.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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. > > >

[PATCH] D13126: New static analyzer checker for loss of sign/precision

2015-09-24 Thread Daniel Marjamäki via cfe-commits
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.

[PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
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

Re: [PATCH] D13100: [mips] Separated mips specific -Wa options, so that they are not checked on other platforms.

2015-09-24 Thread Joerg Sonnenberger via cfe-commits
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

[PATCH] D13129: Solve comment on rL248418.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [Diffusion] rL248438: Fix loop-convert for trivially copyable types.

2015-09-24 Thread Manuel Klimek via cfe-commits
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. > >

Re: [Diffusion] rL248418: Fix loop-convert for const references to containers.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Yaron Keren via 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

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-24 Thread Gábor Horváth via cfe-commits
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

[PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-24 Thread Sean Eveson via cfe-commits
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:

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
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. > >

r248496 - Drop useless const in for-range loops.

2015-09-24 Thread Benjamin Kramer via cfe-commits
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

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-24 Thread pierre gousseau via cfe-commits
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

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Angel Garcia via cfe-commits
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:

Re: [PATCH] D13052: Add NamingStyle option to modernize-loop-convert.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Yaron Keren via cfe-commits
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

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [PATCH] D13052: Add NamingStyle option to modernize-loop-convert.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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) + //

r248495 - [Driver] Don't implicitly copy std::strings in for-range loop.

2015-09-24 Thread Benjamin Kramer via cfe-commits
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:

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Angel Garcia via cfe-commits
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

Re: [PATCH] D12633: Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets

2015-09-24 Thread Richard Barton via cfe-commits
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) || +

Re: [Diffusion] rL248438: Fix loop-convert for trivially copyable types.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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

Re: [Diffusion] rL248438: Fix loop-convert for trivially copyable types.

2015-09-24 Thread Manuel Klimek via cfe-commits
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

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Manuel Klimek via cfe-commits
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

Re: [PATCH] D12633: Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets

2015-09-24 Thread Alexandros Lamprineas via cfe-commits
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

Re: [PATCH] D12359: New warning -Wnonconst-parameter when a pointer parameter can be const

2015-09-24 Thread Aaron Ballman via cfe-commits
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

[PATCH] D13134: [analyzer] Add keyboard shortcuts to report.html

2015-09-24 Thread Karl Skomski via cfe-commits
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

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Manuel Klimek via cfe-commits
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

Re: [PATCH] D12633: Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets

2015-09-24 Thread Alexandros Lamprineas via cfe-commits
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) || +

Re: [PATCH] D12996: Driver: support ARM/HF on a single toolchain

2015-09-24 Thread Jonathan Roelofs via cfe-commits
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

Re: [PATCH] D13133: Remove dangling parenthesis.

2015-09-24 Thread Manuel Klimek via 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

[clang-tools-extra] r248507 - Remove dangling parenthesis.

2015-09-24 Thread Angel Garcia Gomez via cfe-commits
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

r248510 - Debug Info: Use the module pointer as key for the module cache.

2015-09-24 Thread Adrian Prantl via cfe-commits
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:

r248511 - Module Debugging: Emit submodules as nested DW_TAG_modules.

2015-09-24 Thread Adrian Prantl via cfe-commits
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:

Re: [PATCH] D13079: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-24 Thread Alexander Kornienko via cfe-commits
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

Re: [PATCH] D13052: Add NamingStyle option to modernize-loop-convert.

2015-09-24 Thread Alexander Kornienko via cfe-commits
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

Re: [libcxxabi] r248129 - Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-24 Thread Nico Weber via 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++

Re: [PATCH] D13117: [DarwinDriver] Use -lto_library to specify the path for libLTO.dylib

2015-09-24 Thread Bruno Cardoso Lopes via cfe-commits
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

Re: [PATCH] D13079: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-24 Thread Beren Minor via cfe-commits
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

Re: [libcxxabi] r248129 - Let cxa_demangle.cpp compile with gcc/libstdc++ 4.8 and clang-cl/MSVC2013's STL.

2015-09-24 Thread Yaron Keren via cfe-commits
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

Re: [PATCH] D12633: Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets

2015-09-24 Thread Tim Northover 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

LLVM buildmaster will be restarted tonight

2015-09-24 Thread Galina Kistanova via cfe-commits
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

Re: [PATCH] D13090: [clang-tidy] IdentifierNamingCheck should only emit warnings when declaration or usage is outside of macros

2015-09-24 Thread Beren Minor via 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

r248521 - Recommit r248154: [ARM] Handle DSP feature as an ArchExtKind

2015-09-24 Thread Artyom Skrobov via cfe-commits
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

Re: [PATCH] D13122: Enable SafeStack on all Linux platforms

2015-09-24 Thread Evgeniy Stepanov via cfe-commits
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

r248518 - Enable SafeStack on all Linux platforms.

2015-09-24 Thread Evgeniy Stepanov via 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:

Re: [PATCH] D13079: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-24 Thread Beren Minor via cfe-commits
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

Re: [PATCH] D13117: [DarwinDriver] Use -lto_library to specify the path for libLTO.dylib

2015-09-24 Thread Duncan P. N. Exon Smith via 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

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-24 Thread Katya Romanova via cfe-commits
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

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-09-24 Thread Anna Zaks via cfe-commits
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,

Re: [PATCH] D13105: [OpenCL] Enable program scope variables for OpenCL2.0

2015-09-24 Thread Alexey Bader via cfe-commits
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

Re: [PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

2015-09-24 Thread Paul Hoad via cfe-commits
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

Re: [PATCH] D12821: Allow for C's "writing off the end" idiom in __builtin_object_size

2015-09-24 Thread George Burgess IV via cfe-commits
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

r248546 - This patch adds missing pieces to clang, including the PS4 toolchain

2015-09-24 Thread Ekaterina Romanova via 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

r248539 - Move the darwin define static function to be close to the OS define.

2015-09-24 Thread Eric Christopher via cfe-commits
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:

r248538 - Use just one larger anonymous namespace instead of a lot of smaller ones.

2015-09-24 Thread Eric Christopher via cfe-commits
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

Re: [PATCH] D13117: [DarwinDriver] Use -lto_library to specify the path for libLTO.dylib

2015-09-24 Thread Duncan P. N. Exon Smith via cfe-commits
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

Re: [PATCH] D13081: [clang-tidy] Implement FixitHints for identifier references in IdentifierNamingCheck

2015-09-24 Thread Beren Minor via cfe-commits
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

r248537 - fix typos; NFC

2015-09-24 Thread Sanjay Patel via cfe-commits
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:

r248516 - [analyzer] When memcpy'ing into a fixed-size array, do not invalidate entire region.

2015-09-24 Thread Devin Coughlin via cfe-commits
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

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-24 Thread Devin Coughlin via cfe-commits
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:

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
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

[PATCH] D13157: Teach -Wtautological-overlap-compare about enums

2015-09-24 Thread George Burgess IV via cfe-commits
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