Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-20 Thread Vadym Doroshenko via cfe-commits
dvadym updated this revision to Diff 40751. dvadym marked 3 inline comments as done. dvadym added a comment. New in this upload: 1.Adding checking that language is C++ 2.Not consider calls of std::move in template instantation 3.Creating CharSourceRange for removal 4.Using

[PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

2015-11-20 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added a reviewer: aaron.ballman. DmitryPolukhin added a subscriber: cfe-commits. This CL is for discussion how to better fix bit-filed layout compatibility issue with GCC (see PR25575 for test case and more details). Current clang behavior is

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2015-11-20 Thread Aleksei Sidorin via cfe-commits
a.sidorin removed rL LLVM as the repository for this revision. a.sidorin updated this revision to Diff 40769. a.sidorin added a comment. Herald added a subscriber: klimek. Seems like I have found a way to test ASTImporter. What about some unit-tests? A sample test using AST matcher is attached.

r253667 - clang-format: [Proto] Support extending message.

2015-11-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Fri Nov 20 08:32:54 2015 New Revision: 253667 URL: http://llvm.org/viewvc/llvm-project?rev=253667=rev Log: clang-format: [Proto] Support extending message. Before: extend.foo.Bar { } After: extend .foo.Bar { } Modified: cfe/trunk/lib/Format/FormatToken.h

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2015-11-20 Thread Aleksei Sidorin via cfe-commits
a.sidorin updated this revision to Diff 40775. a.sidorin added a comment. Add language-related arguments for compilation. http://reviews.llvm.org/D14286 Files: include/clang/ASTMatchers/ASTMatchers.h lib/AST/ASTImporter.cpp unittests/AST/ASTImporterTest.cpp unittests/AST/CMakeLists.txt

Re: [PATCH] D14134: [OpenMP] Parsing and sema support for map clause

2015-11-20 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D14134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-11-20 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 40767. rmaprath added a comment. Addressing review comments: - Fixed a couple of typos. - Made the use of the thread-local storage specifier a bit more flexible to allow testing on few other configurations. http://reviews.llvm.org/D14653 Files:

Re: [PATCH] D12031: Const std::move() argument ClangTidy check

2015-11-20 Thread Vadym Doroshenko via cfe-commits
dvadym added a comment. Thanks for comments! PTAL Since it's added checking of trivially copyable arguments of move, it's needed to rename this check, what do you think about MoveNoEffectCheck? Comment at: clang-tidy/misc/MoveConstantArgumentCheck.cpp:11 @@ +10,3 @@ +#include

[PATCH] D14864: [X86] Support for C calling convention only for MCU target.

2015-11-20 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added reviewers: rjmccall, DavidKreitzer, mkuper. ABataev added a subscriber: cfe-commits. For MCU only C calling convention is allowed, all other calling conventions are not supported. http://reviews.llvm.org/D14864 Files: lib/Basic/Targets.cpp

Re: [PATCH] D9600: Add scan-build python implementation

2015-11-20 Thread Jonathan Roelofs via cfe-commits
jroelofs added inline comments. Comment at: tools/scan-build-py/libear/__init__.py:1 @@ +1,2 @@ +# -*- coding: utf-8 -*- +# The LLVM Compiler Infrastructure rizsotto.mailinglist wrote: > dcoughlin wrote: > > How does this file fit into the

Re: [PATCH] D9600: Add scan-build python implementation

2015-11-20 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist marked 13 inline comments as done. rizsotto.mailinglist added a comment. thanks Devin for your comments. made some changes already (will upload it tonight after some tests). Comment at: tools/scan-build-py/CHANGES.txt:1 @@ +1,1 @@ +v, -- Initial release.

Re: [PATCH] D14756: Handle ARMv6-J as an alias, instead of fake architecture

2015-11-20 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253677: Handle ARMv6-J as an alias, instead of fake architecture (authored by askrobov). Changed prior to commit: http://reviews.llvm.org/D14756?vs=40431=40789#toc Repository: rL LLVM

Re: [PATCH] D10802: [mips] Interrupt attribute support.

2015-11-20 Thread Simon Dardis via cfe-commits
sdardis updated this revision to Diff 40782. sdardis marked 4 inline comments as done. sdardis added a comment. Updated comments, used cast as suggested, added mutual exclusion check for mips16+interrupt combination. Extended mips16/nomips16 attribute handlers for mutual exclusion, add to

r253672 - clang-format: [JS] Properly add a space after "in" in for loops.

2015-11-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Fri Nov 20 10:18:42 2015 New Revision: 253672 URL: http://llvm.org/viewvc/llvm-project?rev=253672=rev Log: clang-format: [JS] Properly add a space after "in" in for loops. Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp cfe/trunk/unittests/Format/FormatTestJS.cpp

r253677 - Handle ARMv6-J as an alias, instead of fake architecture

2015-11-20 Thread Artyom Skrobov via cfe-commits
Author: askrobov Date: Fri Nov 20 10:47:05 2015 New Revision: 253677 URL: http://llvm.org/viewvc/llvm-project?rev=253677=rev Log: Handle ARMv6-J as an alias, instead of fake architecture Summary: Clang-side update, corresponding to D14755 Reviewers: rengolin, bogden, compnerd Subscribers:

r253669 - clang-format: Don't use incorrect space in macro calls with operators.

2015-11-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Fri Nov 20 09:26:50 2015 New Revision: 253669 URL: http://llvm.org/viewvc/llvm-project?rev=253669=rev Log: clang-format: Don't use incorrect space in macro calls with operators. Before: MACRO(> ); After: MACRO(>); Not overly important, but easy and good for symmetry

r253674 - clang-format: [JS] Make AllowShortFunctionsOnASingle line value "Empty"

2015-11-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Fri Nov 20 10:44:28 2015 New Revision: 253674 URL: http://llvm.org/viewvc/llvm-project?rev=253674=rev Log: clang-format: [JS] Make AllowShortFunctionsOnASingle line value "Empty" work properly. Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp

r253680 - [DebugInfo] Look through type sugar on union types when casting

2015-11-20 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Nov 20 11:41:12 2015 New Revision: 253680 URL: http://llvm.org/viewvc/llvm-project?rev=253680=rev Log: [DebugInfo] Look through type sugar on union types when casting Fixes PR25584. Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Re: [PATCH] D14215: Disable frame pointer elimination when using -pg

2015-11-20 Thread Stefan Kempf via cfe-commits
sisnkemp updated this revision to Diff 40794. http://reviews.llvm.org/D14215 Files: lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp test/CodeGen/x86_64-profiling-keep-fp.c Index: test/CodeGen/x86_64-profiling-keep-fp.c

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-11-20 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. Are you aware of http://reviews.llvm.org/D9600 ? http://reviews.llvm.org/D14629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-20 Thread Pete Cooper via cfe-commits
pete updated this revision to Diff 40790. pete added a comment. Added a couple of tests for retain returning types other than id. Returning a pointer should still be converted to a call, while returning a non-pointer such as float will get a message instead. I walked through the code in the

Re: [PATCH] D14824: [PATCH] Add clang-tidy check for static or thread_local objects where construction may throw

2015-11-20 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Btw, here are some statistics as to the rate at which this diagnostic is triggered: LLVM: 21255 warnings (about 18000 warnings were due to two AST matcher constructors; adding noexcept to those brings the count to 2895 warnings, most of which are cl::opt-related

Re: [PATCH] D14848: Add -disable-llvm-passes for frontend debug info tests.

2015-11-20 Thread Dehao Chen via cfe-commits
danielcdh marked an inline comment as done. danielcdh added a comment. http://reviews.llvm.org/D14848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14215: Disable frame pointer elimination when using -pg

2015-11-20 Thread Stefan Kempf via cfe-commits
sisnkemp updated this revision to Diff 40793. sisnkemp added a comment. Added a test with -momit-leaf-frame-pointer as requested by davidxl. http://reviews.llvm.org/D14215 Files: lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp test/CodeGen/x86_64-profiling-keep-fp-1.c

r253694 - Thread Safety Analysis: Fix DenseMap iterator invalidation UAF

2015-11-20 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Nov 20 13:08:30 2015 New Revision: 253694 URL: http://llvm.org/viewvc/llvm-project?rev=253694=rev Log: Thread Safety Analysis: Fix DenseMap iterator invalidation UAF Rather than storing BeforeInfo in the DenseMap by value, this stores a unique_ptr to it, so that we can keep

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. I vaguely recall that android runtime loader had some symbol lookup differencies with glibc and that prevented interceptors (when statically linked into the main executable) from working. Maybe it is not the case now. http://reviews.llvm.org/D14858

r253706 - Fix test case function name checks

2015-11-20 Thread Bill Seurer via cfe-commits
Author: seurer Date: Fri Nov 20 14:47:34 2015 New Revision: 253706 URL: http://llvm.org/viewvc/llvm-project?rev=253706=rev Log: Fix test case function name checks This is similar to the earlier fix I did, r253702, expect that here it is function names that are being searched for. If the

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Dmitry Vyukov via cfe-commits
dvyukov added a comment. > Yes, we should use shared runtime library on Android. Note that tsan is different from all of asan/msan/ubsan in that it does zillions of calls into runtime, so the indirection will have non-zero runtime cost. Is it possible to statically link it into something that

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-11-20 Thread Ben Craig via cfe-commits
bcraig updated the summary for this revision. bcraig updated this revision to Diff 40818. bcraig added a comment. Adding a test to validate non-trivial message components. Adding recommendations to the diagnostic on how to fix and / or suppress the generated report. Changing default padding

[PATCH] D14877: Fix ICE on lowering of constexpr vector splats

2015-11-20 Thread George Burgess IV via cfe-commits
george.burgess.iv created this revision. george.burgess.iv added a reviewer: rsmith. george.burgess.iv added a subscriber: cfe-commits. When evaluating constexpr vector splats, we weren't doing appropriate type conversions on the literal we were splatting, causing assertion failures in cases

Re: [PATCH] D10802: [mips] Interrupt attribute support.

2015-11-20 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:256 @@ +255,3 @@ +def warn_mips_interrupt_attribute : Warning< + "function %0 must %select{take no arguments|have the \'void\' return type}1" + " for the 'interrupt' attribute for

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Dimitry Ivanov via cfe-commits
dimitry added a subscriber: dimitry. dimitry added a comment. In http://reviews.llvm.org/D14858#294082, @eugenis wrote: > I vaguely recall that android runtime loader had some symbol lookup > differencies with glibc and that prevented interceptors (when statically > linked into the main

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. In http://reviews.llvm.org/D14858#293651, @danalbert wrote: > I assume we're going to actually want to go the other direction on this and > build a shared library for Android's TSAN (see eugenis' comment on >

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Kostya Serebryany via cfe-commits
kcc added a comment. performance is a very strong reason to have tsan linked statically. every memory access in the app is instrumented with a function call, if we make this call go through PLT we'll get significant drop in performance. This is not a blocker, but I want to explicitly mention

Re: [PATCH] D14858: Support building tsan on android.

2015-11-20 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. OK, it sounds like static runtime would work fine. We would still need a way to switch to the shared runtime for the apps (the workflow when we LD_PRELOAD the runtime into the Zygote to run instrumented apps on a non-instrumented device). Something like -shared-libasan

r253707 - Driver: Defer computation of linker path until it is needed.

2015-11-20 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Nov 20 14:49:39 2015 New Revision: 253707 URL: http://llvm.org/viewvc/llvm-project?rev=253707=rev Log: Driver: Defer computation of linker path until it is needed. This allows us to construct Linux toolchains without a valid linker. This is needed for example to build a

Re: [PATCH] D12700: [clang-tidy] install helper scripts in CMake build

2015-11-20 Thread Paul Robinson via cfe-commits
probinson added a subscriber: probinson. probinson added a comment. Not sure what the exact problem is, but we still have one bot using configure/make, and it dies with this on the install step unless we use -j1. I know the hand-written Makefiles are deprecated and we've worked around it, but

[PATCH] D14887: Make tbm-builtins.c as X86 specific unit test

2015-11-20 Thread Sumanth Gundapaneni via cfe-commits
sgundapa created this revision. sgundapa added reviewers: echristo, craig.topper. sgundapa added a subscriber: cfe-commits. This unit test need not be true on all the targets. http://reviews.llvm.org/D14887 Files: test/CodeGen/tbm-builtins.c Index: test/CodeGen/tbm-builtins.c

Re: [PATCH] D14737: Convert some ObjC msgSends to runtime calls

2015-11-20 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D14737#293967, @pete wrote: > Added a couple of tests for retain returning types other than id. Returning > a pointer should still be converted to a call, while returning a non-pointer > such as float will get a message instead. > > I

r253720 - [CMake] Fix handling of passing through semi-colon separated lists.

2015-11-20 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Fri Nov 20 16:09:03 2015 New Revision: 253720 URL: http://llvm.org/viewvc/llvm-project?rev=253720=rev Log: [CMake] Fix handling of passing through semi-colon separated lists. When passing around CMake arguments as lists of arguments any arguments containing lists need to

r253721 - [CMake] Add support for specifying arguments to the bootstrap build.

2015-11-20 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Fri Nov 20 16:09:06 2015 New Revision: 253721 URL: http://llvm.org/viewvc/llvm-project?rev=253721=rev Log: [CMake] Add support for specifying arguments to the bootstrap build. This adds support for three types of argument specifications for bootstrap builds: (1)

r253738 - [clang] Disable Unicode in asm files

2015-11-20 Thread Vinicius Tinti via cfe-commits
Author: tinti Date: Fri Nov 20 17:42:39 2015 New Revision: 253738 URL: http://llvm.org/viewvc/llvm-project?rev=253738=rev Log: [clang] Disable Unicode in asm files Clang should not convert tokens to Unicode when preprocessing assembly files. Fixes PR25558. Added:

[PATCH] D14891: Replace assert with early-out in tryEmitFMulAdd

2015-11-20 Thread Steve Canon via cfe-commits
scanon created this revision. scanon added reviewers: hfinkel, resistor, lhames. scanon added a subscriber: cfe-commits. r253269 exposed a pre-existing issue in tryEmitFMulAdd, where we would assert if a fusable operation had operands with multiple uses (we didn't see it previously because

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-11-20 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > And I really like how the clang-tidy guys were doing it. It would be great if the clang static analyzer config file would be similar to the clang-tidy one. We would avoid user confusion if they are consistent. Is some reuse possible? Currently, when clang-tidy

r253726 - [coroutines] Support braced-init-list as operand of co_yield expression.

2015-11-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Nov 20 16:47:10 2015 New Revision: 253726 URL: http://llvm.org/viewvc/llvm-project?rev=253726=rev Log: [coroutines] Support braced-init-list as operand of co_yield expression. Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp cfe/trunk/test/SemaCXX/coroutines.cpp

Re: [PATCH] D14887: Make tbm-builtins.c as X86 specific unit test

2015-11-20 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. This is fine. One inline comment. -eric Comment at: test/CodeGen/tbm-builtins.c:2-3 @@ -1,3 +1,4 @@ // RUN: %clang_cc1 %s -O3 -triple=x86_64-unknown-unknown

Re: [PATCH] D14686: Protect against overloaded comma in random_shuffle and improve tests

2015-11-20 Thread Dmitri Gribenko via cfe-commits
gribozavr added inline comments. Comment at: test/std/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.pass.cpp:35 @@ -30,1 +34,3 @@ } + +template gribozavr wrote: > mclow.lists wrote: > > This is not how I would rewrite this test. > > I

r253725 - [coroutines] Synthesize yield_value call for co_yield.

2015-11-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Nov 20 16:40:06 2015 New Revision: 253725 URL: http://llvm.org/viewvc/llvm-project?rev=253725=rev Log: [coroutines] Synthesize yield_value call for co_yield. Modified: cfe/trunk/lib/Sema/SemaCoroutine.cpp cfe/trunk/test/SemaCXX/coroutines.cpp Modified:

Re: [PATCH] D14804: [clang] Disable Unicode in asm files

2015-11-20 Thread Vinicius Tinti via cfe-commits
tinti closed this revision. tinti added a comment. r253738 Repository: rL LLVM http://reviews.llvm.org/D14804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12700: [clang-tidy] install helper scripts in CMake build

2015-11-20 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I think will be good idea to ask specialist in configure build to look on make file. I used other Clang or LLVM make file as example. Frankly, I don't see anything bad with it. However this fix was backported to 3.7.x and configure build is still supported

r253741 - Fix testcase when building on darwin

2015-11-20 Thread Matthias Braun via cfe-commits
Author: matze Date: Fri Nov 20 18:56:41 2015 New Revision: 253741 URL: http://llvm.org/viewvc/llvm-project?rev=253741=rev Log: Fix testcase when building on darwin Explicitely specify a target to avoid "_" prefixes on the names. Modified: cfe/trunk/test/CodeGen/c-unicode.c Modified:

[libcxxabi] r253748 - Creating release candidate rc2 from release_371 branch

2015-11-20 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Fri Nov 20 19:32:08 2015 New Revision: 253748 URL: http://llvm.org/viewvc/llvm-project?rev=253748=rev Log: Creating release candidate rc2 from release_371 branch Added: libcxxabi/tags/RELEASE_371/rc2/ (props changed) - copied from r253747,

[libcxx] r253747 - Creating release candidate rc2 from release_371 branch

2015-11-20 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Fri Nov 20 19:32:06 2015 New Revision: 253747 URL: http://llvm.org/viewvc/llvm-project?rev=253747=rev Log: Creating release candidate rc2 from release_371 branch Added: libcxx/tags/RELEASE_371/rc2/ (props changed) - copied from r253746,

[libunwind] r253754 - Creating release candidate rc2 from release_371 branch

2015-11-20 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Fri Nov 20 19:32:21 2015 New Revision: 253754 URL: http://llvm.org/viewvc/llvm-project?rev=253754=rev Log: Creating release candidate rc2 from release_371 branch Added: libunwind/tags/RELEASE_371/rc2/ (props changed) - copied from r253753,

r253654 - Regenerate ASTMatchersReference without CRLF.

2015-11-20 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Nov 20 01:57:46 2015 New Revision: 253654 URL: http://llvm.org/viewvc/llvm-project?rev=253654=rev Log: Regenerate ASTMatchersReference without CRLF. Modified: cfe/trunk/docs/LibASTMatchersReference.html Modified: cfe/trunk/docs/LibASTMatchersReference.html URL:

r253758 - Fix c-unicode.c testcase again.

2015-11-20 Thread Matthias Braun via cfe-commits
Author: matze Date: Fri Nov 20 20:13:29 2015 New Revision: 253758 URL: http://llvm.org/viewvc/llvm-project?rev=253758=rev Log: Fix c-unicode.c testcase again. Specifying a fixed triple is not possible because that target may not even be compiler. Go for a simpler fix by using a _? regex for the

Re: r253721 - [CMake] Add support for specifying arguments to the bootstrap build.

2015-11-20 Thread Sean Silva via cfe-commits
On Fri, Nov 20, 2015 at 2:09 PM, Chris Bieneman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: cbieneman > Date: Fri Nov 20 16:09:06 2015 > New Revision: 253721 > > URL: http://llvm.org/viewvc/llvm-project?rev=253721=rev > Log: > [CMake] Add support for specifying arguments to the

r253760 - Let's try to fix this test again with a fixed target triple

2015-11-20 Thread Matthias Braun via cfe-commits
Author: matze Date: Fri Nov 20 20:28:42 2015 New Revision: 253760 URL: http://llvm.org/viewvc/llvm-project?rev=253760=rev Log: Let's try to fix this test again with a fixed target triple Modified: cfe/trunk/test/CodeGen/c-unicode.c Modified: cfe/trunk/test/CodeGen/c-unicode.c URL:

Re: [PATCH] D10833: Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface

2015-11-20 Thread guibufolo+l...@gmail.com via cfe-commits
RedX2501 added a comment. Ping http://reviews.llvm.org/D10833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits