r303803 - [coroutines] Add support for coroutines with non-scalar parameters

2017-05-24 Thread Gor Nishanov via cfe-commits
Author: gornishanov Date: Wed May 24 15:09:14 2017 New Revision: 303803 URL: http://llvm.org/viewvc/llvm-project?rev=303803&view=rev Log: [coroutines] Add support for coroutines with non-scalar parameters Summary: Simple types like int are handled by LLVM Coroutines just fine. But for non-scalar

[PATCH] D33507: [coroutines] Add support for coroutines with non-scalar parameters

2017-05-24 Thread Gor Nishanov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303803: [coroutines] Add support for coroutines with non-scalar parameters (authored by GorNishanov). Changed prior to commit: https://reviews.llvm.org/D33507?vs=100132&id=100152#toc Repository: rL L

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-05-24 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:83 + + Finds uses of __func__ or __FUNCTION__ inside lambdas. + Please highlight __func__ and __FUNCTION__ with ``. https://reviews.llvm.org/D33497

r303804 - Basic: fix whitespace in file header (NFC)

2017-05-24 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed May 24 15:27:09 2017 New Revision: 303804 URL: http://llvm.org/viewvc/llvm-project?rev=303804&view=rev Log: Basic: fix whitespace in file header (NFC) Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.org/viewvc/l

[PATCH] D33356: [Nios2] Changes in frontend to support Nios2 LLVM target

2017-05-24 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Is there enough functional here that there should be tests for? i.e. make sure march/mcpu switches are recognized, that the target is recognized, etc. https://reviews.llvm.org/D33356 ___ cfe-commits mailing list cfe-co

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a comment. oss-fuzz finds the assertion failure in this new code: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1834 Repository: rL LLVM https://reviews.llvm.org/D33368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-05-24 Thread Bryce Liu via Phabricator via cfe-commits
brycel updated this revision to Diff 100159. brycel marked an inline comment as done. brycel added a comment. Fixed ReleaseNotes.rst https://reviews.llvm.org/D33497 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/LambdaFunctionNameCheck.cpp clang-tidy/misc/LambdaFunctionNameCheck.h

[libcxxabi] r303806 - [Demangler] Remove a failing assert introduced in r303718

2017-05-24 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Wed May 24 15:53:13 2017 New Revision: 303806 URL: http://llvm.org/viewvc/llvm-project?rev=303806&view=rev Log: [Demangler] Remove a failing assert introduced in r303718 Modified: libcxxabi/trunk/src/cxa_demangle.cpp Modified: libcxxabi/trunk/src/cxa_demangle.cpp URL: ht

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. r303806 removes the assertion (instead just returning first). I though this should never happen, I'm looking into this testcase to see if there is another bug here. Thanks, Erik Repository: rL LLVM https://reviews.llvm.org/D33368 _

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a comment. I also encourage you to run the fuzzer on every change in this code. Repository: rL LLVM https://reviews.llvm.org/D33368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a comment. Also, are you now maintaining this code? I am trying to find someone who wants to be CC-ed to other demangler bugs automatically reported by oss-fuzz. Repository: rL LLVM https://reviews.llvm.org/D33368 ___ cfe-commits mail

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-05-24 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:83 + + Finds uses of __func__ or __FUNCTION__ inside lambdas. + Eugene.Zelenko wrote: > Please highlight __func__ and __FUNCTION__ with ``. I meant double ``, not single `. https://re

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-05-24 Thread Bryce Liu via Phabricator via cfe-commits
brycel marked an inline comment as done. brycel added inline comments. Comment at: docs/ReleaseNotes.rst:83 + + Finds uses of __func__ or __FUNCTION__ inside lambdas. + Eugene.Zelenko wrote: > Eugene.Zelenko wrote: > > Please highlight __func__ and __FUNCTI

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-05-24 Thread Bryce Liu via Phabricator via cfe-commits
brycel updated this revision to Diff 100161. brycel added a comment. Double backticks, not single. https://reviews.llvm.org/D33497 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/LambdaFunctionNameCheck.cpp clang-tidy/misc/LambdaFunctionNameCheck.h clang-tidy/misc/MiscTidyModule.c

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. > Also, are you now maintaining this code? > I am trying to find someone who wants to be CC-ed to other demangler bugs > automatically reported by oss-fuzz. I don’t think I’ll accept the title of maintainer, (I only have one commit in this file!) but I have som

[PATCH] D33368: [libcxxabi][demangler] Fix a crash in the demangler

2017-05-24 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a comment. Done (see https://github.com/google/oss-fuzz/blob/master/projects/llvm_libcxxabi/project.yaml) Repository: rL LLVM https://reviews.llvm.org/D33368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. This broke a libc++ test. The following is expected to fail to compile: #include #include int main() { std::complex foo = 1.0if; // should fail w/conversion operator not found } when build as C++1z https://reviews.llvm.org/D33424 ___

Re: [PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Richard Smith via cfe-commits
On 24 May 2017 at 14:35, Marshall Clow via Phabricator via cfe-commits < cfe-commits@lists.llvm.org> wrote: > mclow.lists added a comment. > > This broke a libc++ test. The following is expected to fail to compile: > > #include > #include > > int main() > { > std::complex foo = 1

r303813 - Revert "Sema: allow imaginary constants via GNU extension if UDL overloads not present."

2017-05-24 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Wed May 24 17:18:35 2017 New Revision: 303813 URL: http://llvm.org/viewvc/llvm-project?rev=303813&view=rev Log: Revert "Sema: allow imaginary constants via GNU extension if UDL overloads not present." This reverts commit r303697. It broke libc++ tests that were specifica

Re: [PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Tim Northover via cfe-commits
On 24 May 2017 at 15:06, Richard Smith wrote: > I think this is expected. Clang has an extension where it treats 1.0if as a > _Complex float if no operator""if is available; Since it's breaking some bots, I've reverted my commit while we hash this out. r303813. > libc++ has an extension > where

[PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. More. Trying the above code on godbolt.org, gcc 6.1/6.2/6.3/7.1 all reject it (with `-std=c++14` and `-std=c++1z`) with the error message: > : In function 'int main()': > :4:30: error: unable to find numeric literal operator 'operator""if' > > { std::complex foo

[PATCH] D33259: Don't defer to the GCC driver for linking arm-baremetal

2017-05-24 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs updated this revision to Diff 100177. jroelofs marked an inline comment as done. jroelofs added a comment. Fix a cmake warning: Platform/baremetal to use this system, please send your config file to cm...@www.cmake.org so it can be added to cmake Your CMakeCache.txt file was copied

[PATCH] D33357: Avoid calling report_fatal_error in the destructor of raw_fd_ostream when saving a module timestamp file

2017-05-24 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. This revision is now accepted and ready to land. Makes sense. LGTM! Repository: rL LLVM https://reviews.llvm.org/D33357 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

[PATCH] D33328: [CodeGen] Pessimize aliasing for union members (and may-alias) objects

2017-05-24 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks, that looks great. Repository: rL LLVM https://reviews.llvm.org/D33328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D33525: [ThinLTO] Migrate ThinLTOBitcodeWriter to the new PM.

2017-05-24 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. Herald added subscribers: eraman, inglorion, Prazek, mehdi_amini. Also see https://reviews.llvm.org/D33429 for other ThinLTO + New PM related changes. https://reviews.llvm.org/D33525 Files: clang/lib/CodeGen/BackendUtil.cpp clang/test/CodeGen/thin_link_bitcod

[PATCH] D33525: [ThinLTO] Migrate ThinLTOBitcodeWriter to the new PM.

2017-05-24 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp:423 + +class AARGetter { + FunctionAnalysisManager &AM; Can't you do it with a lambda? https://reviews.llvm.org/D33525 __

[libcxx] r303824 - Add some constexpr tests for optional's move/copy ctor

2017-05-24 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed May 24 19:22:33 2017 New Revision: 303824 URL: http://llvm.org/viewvc/llvm-project?rev=303824&view=rev Log: Add some constexpr tests for optional's move/copy ctor Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/copy.pass.cpp

[PATCH] D33525: [ThinLTO] Migrate ThinLTOBitcodeWriter to the new PM.

2017-05-24 Thread Tim Shen via Phabricator via cfe-commits
timshen added inline comments. Comment at: llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp:423 + +class AARGetter { + FunctionAnalysisManager &AM; mehdi_amini wrote: > Can't you do it with a lambda? I can, except that AAR needs to be allocated outside of the la

Re: [PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Richard Smith via cfe-commits
On 24 May 2017 3:19 pm, "Tim Northover" wrote: On 24 May 2017 at 15:06, Richard Smith wrote: > I think this is expected. Clang has an extension where it treats 1.0if as a > _Complex float if no operator""if is available; Since it's breaking some bots, I've reverted my commit while we hash this

Re: [PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

2017-05-24 Thread Tim Northover via cfe-commits
On 24 May 2017 at 15:32, Marshall Clow via Phabricator wrote: > More. Trying the above code on godbolt.org, gcc 6.1/6.2/6.3/7.1 all reject it > (with `-std=c++14` and `-std=c++1z`) with the error message: This was a pretty explicit intent in Richard's proposal: treat incoming code as charitably

[PATCH] D33532: [coroutines] Fix fallthrough diagnostics for coroutines

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This patch fixes a number of issues with the analysis warnings emitted when a coroutine may reach the end of the function w/o returning. - Fix bug where coroutines with `return_value` are incorrectly diagnosed as missing `co_return`'s. - Rework diagnostic message t

[PATCH] D33532: [coroutines] Fix fallthrough diagnostics for coroutines

2017-05-24 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: lib/Sema/AnalysisBasedWarnings.cpp:378 const Stmt *S = CS.getStmt(); -if ((isa(S) && !IsCoroutine) || isa(S)) { +if (isa(S) || isa(S)) { HasLiveReturn = true; Is this check no longer needed becaus

[PATCH] D33532: [coroutines] Fix fallthrough diagnostics for coroutines

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: lib/Sema/AnalysisBasedWarnings.cpp:378 const Stmt *S = CS.getStmt(); -if ((isa(S) && !IsCoroutine) || isa(S)) { +if (isa(S) || isa(S)) { HasLiveReturn = true; GorNishanov wrote: > Is this check no long

[PATCH] D33532: [coroutines] Fix fallthrough diagnostics for coroutines

2017-05-24 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov accepted this revision. GorNishanov added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D33532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

r303831 - [coroutines] Fix fallthrough diagnostics for coroutines

2017-05-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 24 21:16:53 2017 New Revision: 303831 URL: http://llvm.org/viewvc/llvm-project?rev=303831&view=rev Log: [coroutines] Fix fallthrough diagnostics for coroutines Summary: This patch fixes a number of issues with the analysis warnings emitted when a coroutine may reach

[libcxx] r303833 - Add non-parallel version of for_each_n (+tests) from the Parallelism TS

2017-05-24 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed May 24 21:29:54 2017 New Revision: 303833 URL: http://llvm.org/viewvc/llvm-project?rev=303833&view=rev Log: Add non-parallel version of for_each_n (+tests) from the Parallelism TS Added: libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.

[PATCH] D33534: [coroutines] Diagnose when promise types fail to declare either return_void or return_value.

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. According to the PDTS it's perfectly legal to have a promise type that defines neither `return_value` nor `return_void`. However a coroutine that uses such a promise type will almost always have UB, because it can never `co_return`. This patch changes Clang to diag

[PATCH] D32332: Add support for transparent overloadable functions in clang

2017-05-24 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv updated this revision to Diff 100201. george.burgess.iv added a comment. Herald added a subscriber: jfb. Fix the aforementioned issue; PTAL. Note that this fix is slightly backwards incompatible. It disallows code like: void foo(int); void foo(int) __attribute__((overloadab

[libcxx] r303835 - Fix broken links on C++1z status page

2017-05-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 24 23:09:07 2017 New Revision: 303835 URL: http://llvm.org/viewvc/llvm-project?rev=303835&view=rev Log: Fix broken links on C++1z status page Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html URL: http://llvm.org/viewvc/ll

[libcxx] r303836 - Add

2017-05-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 24 23:36:24 2017 New Revision: 303836 URL: http://llvm.org/viewvc/llvm-project?rev=303836&view=rev Log: Add This patch adds the library portions of the coroutines PDTS, which should now be supported by Clang. Added: libcxx/trunk/include/experimental/coroutine

[libcxx] r303837 - Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect recent changes

2017-05-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 25 00:11:40 2017 New Revision: 303837 URL: http://llvm.org/viewvc/llvm-project?rev=303837&view=rev Log: Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect recent changes Modified: libcxx/trunk/utils/libcxx/test/config.py Modified: libcxx/

[PATCH] D33536: [coroutines] Bump __cpp_coroutines version

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This patch is needed so that Libc++ can actually tess if Clang supports coroutines, instead of just paying lip service with a partial implementation. Otherwise the libc++ test suite will fail against older versions of Clang https://reviews.llvm.org/D33536 Files:

[libcxx] r303838 - Remove from the module map for now. It doesn't work unless modules are enabled

2017-05-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 25 00:30:05 2017 New Revision: 303838 URL: http://llvm.org/viewvc/llvm-project?rev=303838&view=rev Log: Remove from the module map for now. It doesn't work unless modules are enabled Modified: libcxx/trunk/include/module.modulemap Modified: libcxx/trunk/include

[PATCH] D33537: [clang-tidy] Exception Escape Checker

2017-05-24 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware created this revision. Herald added a subscriber: mgorny. Finds functions which should not throw exceptions: Destructors, move constructors, move assignment operators, the main() function, swap() functions, functions marked with throw() or noexcept and functions given as optio

[PATCH] D33538: [coroutines] Support "coroutines" feature to module map "requires"

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. In order for libc++ to add `` to its module map, there has to be a feature that can be used to detect if coroutines support is enabled in Clang. https://reviews.llvm.org/D33538 Files: docs/Modules.rst lib/Basic/Module.cpp test/Modules/Inputs/DependsOnModule

[PATCH] D33537: [clang-tidy] Exception Escape Checker

2017-05-24 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. Supersedes https://reviews.llvm.org/D32350 https://reviews.llvm.org/D33537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32350: [Analyzer] Exception checker for misuse: uncaught/noncompliant throws

2017-05-24 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware abandoned this revision. baloghadamsoftware added a comment. Superseded by https://reviews.llvm.org/D33537 https://reviews.llvm.org/D32350 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D33538: [coroutines] Support "coroutines" feature to module map "requires"

2017-05-24 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 100207. EricWF added a comment. - Alphabetize newly added switch case. https://reviews.llvm.org/D33538 Files: docs/Modules.rst lib/Basic/Module.cpp test/Modules/Inputs/DependsOnModule.framework/Headers/coroutines.h test/Modules/Inputs/DependsOnModule

[PATCH] D32592: [Analyzer] Iterator Checker - Part 1: Minimal Checker for a Simple Test Case

2017-05-24 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. Any comments regarding the last changes? https://reviews.llvm.org/D32592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31745: [OpenCL] Added diagnostic for implicit declaration of function in OpenCL

2017-05-24 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 100210. https://reviews.llvm.org/D31745 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/SemaOpenCL/clang-builtin-version.cl test/SemaOpenCL/to_addr_builtin.cl Index: test/SemaOpenCL/to_addr_builtin.cl ===

<    1   2