r283724 - Mark aligned allocation as done.

2016-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 10 01:55:42 2016 New Revision: 283724 URL: http://llvm.org/viewvc/llvm-project?rev=283724&view=rev Log: Mark aligned allocation as done. Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp cfe/trunk/test/Lexer/cxx-features.cpp cfe/trunk/www/cxx_status.ht

[PATCH] D25004: [x86][inline-asm][clang] accept 'v' constraint

2016-10-10 Thread coby via cfe-commits
coby closed this revision. coby added a comment. Commitd to revision 283716 https://reviews.llvm.org/D25004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. I have submitted the same change https://reviews.llvm.org/D25256 a few days ago but this one seems to be getting more traction so I'm going to abandon mine in favor of this one. Comment at: lib/Driver/Driver.cpp:1000 +case ToolChain::RLT_CompilerRT

[PATCH] D25256: [Driver] Print path to correct rtlib for -print-libgcc-file-name

2016-10-10 Thread Petr Hosek via cfe-commits
phosek abandoned this revision. phosek added a comment. Michał Górny has submitted the same change as https://reviews.llvm.org/D25338 and his change seems to be getting more traction. Repository: rL LLVM https://reviews.llvm.org/D25256 ___ cfe-c

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-10 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki added inline comments. Comment at: test/Analysis/unreachable-code-path.c:201 +static int inlineFunction(const int i) { + if (table[i] != 0) +return 1; NoQ wrote: > a.sidorin wrote: > > I have a small question. Is it possible to simplify this

r283725 - Fix style issue. Spaces in argument list.

2016-10-10 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Mon Oct 10 02:39:39 2016 New Revision: 283725 URL: http://llvm.org/viewvc/llvm-project?rev=283725&view=rev Log: Fix style issue. Spaces in argument list. Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h Modified: cfe/trunk/include

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-10 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki added a comment. In https://reviews.llvm.org/D25326#564584, @zaks.anna wrote: > Please, fix the style issues before committing. Sorry I missed that. Ideally it would be possible to run clang-format on the files before committing. but currently I get lots of unrelated changes t

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Is this *all* that's needed to get libc++ working? Repository: rL LLVM https://reviews.llvm.org/D25414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-10 Thread Artem Dergachev via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D25326#565919, @danielmarjamaki wrote: > Ideally it would be possible to run clang-format on the files before > committing. but currently I get lots of unrelated changes then. > > Would it be ok to run clang-format on some files to clean up the fo

[PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
ABataev added a comment. I think the fix is not quite correct. I believe it's better to replace a call of getVariableArrayDecayedType() in CGStmtOpenMP.cpp by a call to getCanonicalParamType(). Try to replace it and check the result. Repository: rL LLVM https://reviews.llvm.org/D25373 __

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Artem Dergachev via cfe-commits
NoQ created this revision. NoQ added reviewers: zaks.anna, dcoughlin, xazax.hun, a.sidorin, alexfh. NoQ added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. ASTMatchers are sometimes handy in the Analyzer, and there are more patches to make use of them. However, it turns out

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. I might be confused, but as far as I remember, when you do static linking, symbols tend to be linked in lazily. So as long as you do not use the matchers, those numbers might be misleading. https://reviews.llvm.org/D25429 __

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Artem Dergachev via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D25429#565939, @xazax.hun wrote: > I might be confused, but as far as I remember, when you do static linking, > symbols tend to be linked in lazily. So as long as you do not use the > matchers, those numbers might be misleading. Yep, i did actu

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In https://reviews.llvm.org/D25429#565940, @NoQ wrote: > In https://reviews.llvm.org/D25429#565939, @xazax.hun wrote: > > > I might be confused, but as far as I remember, when you do static linking, > > symbols tend to be linked in lazily. So as long as you do not use

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. Currently yes, we've been using libc++ (and libc++abi which doesn't need any changes) for a few months now without any problems. Our C library is a fork of musl so we rely on all the changes that have already been done to support it. However, we're building libc++ with `

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. Cool! This patch LGTM then. > we're slowly diverging from the upstream version so it might be better to > stop relying on that option. I'd have to copy include/support/musl/xlocale.h > to inc

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. PS. If your not already locked into an ABI you'll want to look into enabling the most recent ABI breaking changes. See the `_LIBCPP_ABI_VERSION` configuration at the top of `__config` for more info. Repository: rL LLVM https://reviews.llvm.org/D25414 _

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
phosek added a comment. > That sounds fine. Shall I send it as a separate patch or update this one? > PS. If your not already locked into an ABI you'll want to look into enabling > the most recent ABI breaking changes. See the `_LIBCPP_ABI_VERSION` > configuration at the top of `__config` for

[PATCH] D25353: Implement __emul, __emulu, _mul128 and _umul128 MS intrinsics

2016-10-10 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm with some nits Comment at: lib/CodeGen/CGBuiltin.cpp:7592 Value *LHS = EmitScalarExpr(E->getArg(0)); Value *RHS = EmitScalarExpr(E->getArg(1)); llvm::Type *Re

[PATCH] D25419: Use unique_ptr in LLVMContextImpl's constant maps.

2016-10-10 Thread Tim Shen via cfe-commits
timshen added inline comments. Comment at: llvm/lib/IR/LLVMContextImpl.cpp:106 for (auto &CDSConstant : CDSConstants) delete CDSConstant.second; CDSConstants.clear(); Do you want to change this one as well? https://reviews.llvm.org/D25419

[libcxx] r283726 - [libcxx] Add the missing limits.h header

2016-10-10 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Mon Oct 10 03:38:51 2016 New Revision: 283726 URL: http://llvm.org/viewvc/llvm-project?rev=283726&view=rev Log: [libcxx] Add the missing limits.h header The implementation of [depr.c.headers] in D12747 introduced the necessary C headers into libc++. This patch adds one more mi

[PATCH] D25361: [libcxx] Add the missing limits.h header

2016-10-10 Thread Asiri Rathnayake via cfe-commits
rmaprath closed this revision. rmaprath added a comment. Thanks. Committed as r283726. https://reviews.llvm.org/D25361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25420: [AST] Convert MangleNumberingContext to a unique_ptr.

2016-10-10 Thread Tim Shen via cfe-commits
timshen accepted this revision. timshen added inline comments. This revision is now accepted and ready to land. Comment at: clang/include/clang/Sema/Sema.h:879 /// do not have lambda expressions or block literals. -IntrusiveRefCntPtr MangleNumbering; +std::unique_ptr

[PATCH] D25425: [AST] Convert Marshallers to use unique_ptr.

2016-10-10 Thread Tim Shen via cfe-commits
timshen added inline comments. Comment at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:514 + MutableArrayRef> Callbacks) + : Overloads(std::make_move_iterator(Callbacks.begin()), + std::make_move_iterator(Callbacks.end())) {} Notice tha

[PATCH] D25427: [Analysis] Use unique_ptr for CallGraph::FunctionMap.

2016-10-10 Thread Tim Shen via cfe-commits
timshen added inline comments. Comment at: clang/include/clang/Analysis/CallGraph.h:204 + static clang::CallGraphNode * + CGGetValue(decltype(*std::declval()) &P) { +return P.second.get(); Does clang::CallGraph::const_iterator::value_type work? https://re

[PATCH] D25430: [Sema] Prevent using member declaration diagnostic if the base class is invalid.

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: rsmith, majnemer, aaron.ballman. EricWF added a subscriber: cfe-commits. Once a base class has been made invalid (by a static_assert for example) all using-member declarations in the derived classes will result in a "not a base class" diagnos

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D25414#565956, @phosek wrote: > > That sounds fine. > > Shall I send it as a separate patch or update this one? I would send a separate patch. This one is already good to go so you might as well commit it. > > >> PS. If your not already lo

[PATCH] D25430: [Sema] Prevent using member declaration diagnostic if the base class is invalid.

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 74112. EricWF added a comment. Simplify test case. https://reviews.llvm.org/D25430 Files: lib/Sema/SemaDeclCXX.cpp test/SemaCXX/using-decl-templates.cpp Index: test/SemaCXX/using-decl-templates.cpp ==

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74111. mgorny added a comment. Updated to use TC.getCompilerRT(). https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp test/Driver/montavista-gcc-toolchain.c test/Driver/print-libg

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use (\"bfd\" or \"gold\" or \"lld\", empty for platform default") Is there a reason not to allow using the absolute path here, like for

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25402#565557, @joerg wrote: > No, they are not desirable, in fact, they pretty much break clang. That's why > I wanted to see the test diff... Thank you for your feedback. However, I would really appreciate if you kindly said what you meant

Re: [libcxx] r283659 - [cmake] Split linked libraries into private & public, for linker script

2016-10-10 Thread Renato Golin via cfe-commits
On 9 October 2016 at 22:45, Eric Fiselier wrote: > Hi Renato, Hal, > > I've hopefully fixed this in r283700. I'll be watching the bots to ensure > everything works. All green, thanks! :) --renato ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] r283736 - Use `let' instead of `let*' in one place where `let*' isn't necessary

2016-10-10 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Oct 10 05:22:40 2016 New Revision: 283736 URL: http://llvm.org/viewvc/llvm-project?rev=283736&view=rev Log: Use `let' instead of `let*' in one place where `let*' isn't necessary Differential Revision: https://reviews.llvm.org/D25395 Patch by Philipp Stephani. Modified:

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[Driver] Pass -lunwind when using libc++ + compiler-rt" to "[Driver] Pass -lunwind when using libc++ + compiler-rt on Linux". mgorny updated the summary for this revision. mgorny updated this revision to Diff 74115. https://reviews.llvm.org/D25402 Files: li

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. I've updated the patch to apply to Linux toolchain only. https://reviews.llvm.org/D25402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25363: Store a SourceRange for multi-token builtin types

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74117. malcolm.parsons added a comment. Ensure SourceRange is initialized https://reviews.llvm.org/D25363 Files: include/clang/AST/TypeLoc.h include/clang/Sema/DeclSpec.h lib/Sema/DeclSpec.cpp lib/Sema/SemaType.cpp Index: lib/Sema/SemaType.

[PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-10-10 Thread Dean Michael Berris via cfe-commits
dberris requested changes to this revision. dberris added a comment. This revision now requires changes to proceed. Sorry, I forgot to update the status. I made a few more comments to make this part a little more readable. https://reviews.llvm.org/D24799 _

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. It's difficult to say whether if one change to certain driver functions affect some target or not. That's one reason why the test change is so important. Looking at the latest version, I still don't understand why the change for Linux is needed. libc++ should provide a li

Re: r283716 - [x86][inline-asm][clang] accept 'v' constraint

2016-10-10 Thread Ismail Donmez via cfe-commits
Hi, On Mon, Oct 10, 2016 at 8:45 AM, Michael Zuckerman via cfe-commits wrote: > Author: mzuckerm > Date: Mon Oct 10 00:45:54 2016 > New Revision: 283716 > > URL: http://llvm.org/viewvc/llvm-project?rev=283716&view=rev > Log: > [x86][inline-asm][clang] accept 'v' constraint > > Commit in the name

r283743 - Revert "[x86][inline-asm][clang] accept 'v' constraint"

2016-10-10 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Oct 10 06:40:28 2016 New Revision: 283743 URL: http://llvm.org/viewvc/llvm-project?rev=283743&view=rev Log: Revert "[x86][inline-asm][clang] accept 'v' constraint" This reverts commit r283716. Breaks buildbot: http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rl

Re: r283716 - [x86][inline-asm][clang] accept 'v' constraint

2016-10-10 Thread Daniel Jasper via cfe-commits
I have reverted this in r283743 for now. On Mon, Oct 10, 2016 at 1:43 PM, Ismail Donmez via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi, > > On Mon, Oct 10, 2016 at 8:45 AM, Michael Zuckerman via cfe-commits > wrote: > > Author: mzuckerm > > Date: Mon Oct 10 00:45:54 2016 > > New Revis

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25402#566070, @joerg wrote: > It's difficult to say whether if one change to certain driver functions > affect some target or not. That's one reason why the test change is so > important. > > Looking at the latest version, I still don't under

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Gabor Greif via cfe-commits
ggreif accepted this revision. ggreif added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

r283746 - [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Mon Oct 10 07:23:40 2016 New Revision: 283746 URL: http://llvm.org/viewvc/llvm-project?rev=283746&view=rev Log: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. Thanks for the review. https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

RE: r283716 - [x86][inline-asm][clang] accept 'v' constraint

2016-10-10 Thread Zuckerman, Michael via cfe-commits
Thanks , We will check it. From: Daniel Jasper [mailto:djas...@google.com] Sent: Monday, October 10, 2016 14:50 To: Ismail Donmez Cc: Zuckerman, Michael ; cfe-commits Subject: Re: r283716 - [x86][inline-asm][clang] accept 'v' constraint I have reverted this in r283743 for now. On Mon, Oct 10,

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-10 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: EricWF, theraven. mgorny added a subscriber: cfe-commits. Herald added a subscriber: beanz. Build the Solaris compatibility code (C) as a separate static library rather than appending it to libc++ sources, in order to prevent the -std=c++11 fla

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-10 Thread David Chisnall via cfe-commits
theraven added a comment. It sounds as if the bug here is either that the .c files are being treated as c++, or that we're sticking -std=c++{whatever} in CFLAGS as well as CXXFLAGS. This is probably the bug that should be fixed. https://reviews.llvm.org/D25431 _

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25431#566096, @theraven wrote: > It sounds as if the bug here is either that the .c files are being treated as > c++, or that we're sticking -std=c++{whatever} in CFLAGS as well as CXXFLAGS. > This is probably the bug that should be fixed.

[PATCH] D24339: [clang-tidy] Add check 'readability-redundant-member-init'

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D24339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D25238: [clang-tidy] Ignore empty members and bases in cppcoreguidelines-pro-type-member-init

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, with one small commenting nit. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:320 +// copied from clang/lib/Sema/SemaDeclCXX.cpp +s

[PATCH] D24669: {Sema] Gcc compatibility of vector shift.

2016-10-10 Thread Vladimir Yakovlev via cfe-commits
vbyakovlcl updated this revision to Diff 74123. https://reviews.llvm.org/D24669 Files: llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td llvm/tools/clang/lib/Sema/SemaExpr.cpp llvm/tools/clang/test/CodeGen/vecshift.c llvm/tools/clang/test/Sema/vecshift.c Index: llvm/tools/clang

[PATCH] D24669: {Sema] Gcc compatibility of vector shift.

2016-10-10 Thread Vladimir Yakovlev via cfe-commits
vbyakovlcl added inline comments. Comment at: llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td:2306 + "vector operands do not have the same elements sizes (%0 and %1)">, + InGroup>, DefaultError; def err_ext_vector_component_exceeds_length : Error<

[PATCH] D25363: Store a SourceRange for multi-token builtin types

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74124. malcolm.parsons added a comment. Add unit tests https://reviews.llvm.org/D25363 Files: include/clang/AST/TypeLoc.h include/clang/Sema/DeclSpec.h lib/Sema/DeclSpec.cpp lib/Sema/SemaType.cpp unittests/AST/SourceLocationTest.cpp Index

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added inline comments. Comment at: include/clang/Sema/Sema.h:9747 + AvailabilityResult ShouldDiagnoseAvailabilityOfDecl(NamedDecl *&D, + std::string *Message); ---

[PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman requested changes to this revision. aaron.ballman added inline comments. This revision now requires changes to proceed. Comment at: lib/Sema/SemaDeclAttr.cpp:3011 const AttributeList &Attr) { + if (S.getLangOpts().CPlusPlus)

[PATCH] D25238: [clang-tidy] Ignore empty members and bases in cppcoreguidelines-pro-type-member-init

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74125. malcolm.parsons added a comment. Mark comment as FIXME. https://reviews.llvm.org/D25238 Files: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp Index: test/clang-tidy/cpp

[PATCH] D20428: Tracking exception specification source locations

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D20428#564511, @sbarzowski wrote: > What's happening here? It's accepted, but not merged and the last activity is > 3 months old while my change is waiting for it. Can I help somehow? It was accepted, but then caused build failures. I

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-10 Thread Sebastian Pop via cfe-commits
sebpop added a comment. In https://reviews.llvm.org/D24991#565861, @EricWF wrote: > Please provide benchmark tests which demonstrate that these benefits are > concrete and not just "potential". Moving methods out of the dylib is no > easy task so I would like hard evidence that it's worth whil

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D24991#566140, @sebpop wrote: > In https://reviews.llvm.org/D24991#565861, @EricWF wrote: > > > Please provide benchmark tests which demonstrate that these benefits are > > concrete and not just "potential". Moving methods out of the dylib is

r283747 - Revert r283680.

2016-10-10 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Oct 10 09:10:00 2016 New Revision: 283747 URL: http://llvm.org/viewvc/llvm-project?rev=283747&view=rev Log: Revert r283680. Breaks bootstrap builds on (at least) Windows: In file included from D:\buildslave\clang-x64-ninja-win7\llvm\lib\Support\Allocator.cpp:14: In file in

Re: r283680 - [CUDA] Support and std::min/max on the device.

2016-10-10 Thread Nico Weber via cfe-commits
This broke bootstrap builds, I reverted it for now in r283747. On Sat, Oct 8, 2016 at 6:16 PM, Justin Lebar via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: jlebar > Date: Sat Oct 8 17:16:12 2016 > New Revision: 283680 > > URL: http://llvm.org/viewvc/llvm-project?rev=283680&view=re

[libcxx] r283749 - Add tests for LWG2544. We already implement this; just adding tests to make sure that we keep doing it.

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 09:10:45 2016 New Revision: 283749 URL: http://llvm.org/viewvc/llvm-project?rev=283749&view=rev Log: Add tests for LWG2544. We already implement this; just adding tests to make sure that we keep doing it. Modified: libcxx/trunk/test/std/iterators/stream.ite

[libcxx] r283752 - Mark issues 2544, 2567, 2569, 2686 and 2694 as ready/done.

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 09:15:56 2016 New Revision: 283752 URL: http://llvm.org/viewvc/llvm-project?rev=283752&view=rev Log: Mark issues 2544, 2567, 2569, 2686 and 2694 as ready/done. Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:346 -const auto *NewExpr = cast(V->getInit()->IgnoreParenImpCasts()); -// Ensure that every VarDecl has a CXXNewExpr initializer. -if (!NewExpr) +const auto *Expr = cast(V->g

r283753 - Revert r283683 because r283680 got reverted.

2016-10-10 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Oct 10 09:20:35 2016 New Revision: 283753 URL: http://llvm.org/viewvc/llvm-project?rev=283753&view=rev Log: Revert r283683 because r283680 got reverted. Modified: cfe/trunk/lib/Headers/CMakeLists.txt Modified: cfe/trunk/lib/Headers/CMakeLists.txt URL: http://llvm.org/

[PATCH] D25430: [Sema] Prevent using member declaration diagnostic if the base class is invalid.

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D25430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: r283753 - Revert r283683 because r283680 got reverted.

2016-10-10 Thread Renato Golin via cfe-commits
On 10 October 2016 at 15:20, Nico Weber via cfe-commits wrote: > Author: nico > Date: Mon Oct 10 09:20:35 2016 > New Revision: 283753 > > URL: http://llvm.org/viewvc/llvm-project?rev=283753&view=rev > Log: > Revert r283683 because r283680 got reverted. Great commit message! :D ___

r283755 - [Sema] Prevent using member declaration diagnostic if the base class is invalid.

2016-10-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Oct 10 09:26:40 2016 New Revision: 283755 URL: http://llvm.org/viewvc/llvm-project?rev=283755&view=rev Log: [Sema] Prevent using member declaration diagnostic if the base class is invalid. Summary: Once a base class has been made invalid (by a static_assert for example) a

[PATCH] D25430: [Sema] Prevent using member declaration diagnostic if the base class is invalid.

2016-10-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Thanks @aaron.ballman! https://reviews.llvm.org/D25430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r283754 - [include-fixer] query-mode should be false by default.

2016-10-10 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Oct 10 09:21:55 2016 New Revision: 283754 URL: http://llvm.org/viewvc/llvm-project?rev=283754&view=rev Log: [include-fixer] query-mode should be false by default. Makes it consistent with documentations. Modified: clang-tools-extra/trunk/include-fixer/tool/clang-incl

[PATCH] D25406: Fix doubled whitespace in modernize-use-auto fixit

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:378 + Lexer::getLocForEndOfToken(Range.getEnd(), 0, SM, Context->getLangOpts()); + bool Whitespace = isWhitespace(*FullSourceLoc(Next, SM).getCharacterData()); + Oye, th

[libcxx] r283757 - Add whitespace to make not_fn_impl more clear. NFC.

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 09:37:18 2016 New Revision: 283757 URL: http://llvm.org/viewvc/llvm-project?rev=283757&view=rev Log: Add whitespace to make not_fn_impl more clear. NFC. Modified: libcxx/trunk/include/functional Modified: libcxx/trunk/include/functional URL: http://llvm.org

[libcxx] r283759 - Fix documentation mis-spelling.

2016-10-10 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Oct 10 09:45:06 2016 New Revision: 283759 URL: http://llvm.org/viewvc/llvm-project?rev=283759&view=rev Log: Fix documentation mis-spelling. I promise to stop misspelling things when the English language gains a program that does strict semantic checking. Modified: li

[PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Alex Lorenz via cfe-commits
arphaman updated this revision to Diff 74127. arphaman marked an inline comment as done. arphaman added a comment. The updated patch uses a proper way to mark the attribute as C only. Repository: rL LLVM https://reviews.llvm.org/D25308 Files: include/clang/Basic/Attr.td test/SemaCXX/attr

[PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Alex Lorenz via cfe-commits
arphaman added a comment. The updated patch now makes clang warn every time it encounters this attribute in C++ mode. Would that be the desired behaviour? Repository: rL LLVM https://reviews.llvm.org/D25308 ___ cfe-commits mailing list cfe-commi

[PATCH] D24508: PR28752: Do not instantiate var decls which are not visible.

2016-10-10 Thread Vassil Vassilev via cfe-commits
v.g.vassilev updated this revision to Diff 74129. v.g.vassilev marked 3 inline comments as done. v.g.vassilev added a comment. Address comments. https://reviews.llvm.org/D24508 Files: include/clang/AST/Decl.h lib/AST/Decl.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaTemplate.cpp lib/Sema/Se

[PATCH] D25414: [libcxx] Add support for Fuchsia

2016-10-10 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. @EricWF > Cool! This patch LGTM then. This looks fine to me, too. Repository: rL LLVM https://reviews.llvm.org/D25414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:346 -const auto *NewExpr = cast(V->getInit()->IgnoreParenImpCasts()); -// Ensure that every VarDecl has a CXXNewExpr initializer. -if (!NewExpr) +const auto *Expr = cast(V-

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-10 Thread Devin Coughlin via cfe-commits
dcoughlin added inline comments. Comment at: test/Analysis/unreachable-code-path.c:201 +static int inlineFunction(const int i) { + if (table[i] != 0) +return 1; danielmarjamaki wrote: > NoQ wrote: > > a.sidorin wrote: > > > I have a small question. Is it pos

Re: [libcxx] r283757 - Add whitespace to make not_fn_impl more clear. NFC.

2016-10-10 Thread Eric Fiselier via cfe-commits
Thanks. I should have done that a while ago. On Mon, Oct 10, 2016 at 8:37 AM, Marshall Clow via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: marshall > Date: Mon Oct 10 09:37:18 2016 > New Revision: 283757 > > URL: http://llvm.org/viewvc/llvm-project?rev=283757&view=rev > Log: > Add

[PATCH] D21706: [libcxx] refactor for throw

2016-10-10 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. I think we've got most of this now. Do we still need this patch? https://reviews.llvm.org/D21706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25406: Fix doubled whitespace in modernize-use-auto fixit

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74131. malcolm.parsons added a comment. Only insert whitespace when removing stars https://reviews.llvm.org/D25406 Files: clang-tidy/modernize/UseAutoCheck.cpp clang-tidy/modernize/UseAutoCheck.h test/clang-tidy/modernize-use-auto-new-remove-s

[PATCH] D25326: [StaticAnalyser] Don't merge different returns in ExplodedGraph

2016-10-10 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. In https://reviews.llvm.org/D25326#565919, @danielmarjamaki wrote: > In https://reviews.llvm.org/D25326#564584, @zaks.anna wrote: > > > Please, fix the style issues before committing. > > > Would it be ok to run clang-format on some files to clean up the formatting? >

[PATCH] D25406: Fix doubled whitespace in modernize-use-auto fixit

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:378 + Lexer::getLocForEndOfToken(Range.getEnd(), 0, SM, Context->getLangOpts()); + bool Whitespace = isWhitespace(*FullSourceLoc(Next, SM).getCharacterData()); + aaron

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74134. malcolm.parsons added a comment. Fix ast matcher Add test Fix parameter case Inline lambdas Doc fixes https://reviews.llvm.org/D25316 Files: clang-tidy/modernize/UseAutoCheck.cpp clang-tidy/modernize/UseAutoCheck.h docs/clang-tidy/check

Re: r283680 - [CUDA] Support and std::min/max on the device.

2016-10-10 Thread Justin Lebar via cfe-commits
As discussed over IM, builds are still failing after reverting this. The issue seems to be that the stage 1 build in bootstrap compiles is not a clean build. Therefore the errant and headers are never removed from the install directory. I believe I fixed the cmake in r283683 (sent a few hours

[PATCH] D25425: [AST] Convert Marshallers to use unique_ptr.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar marked 2 inline comments as done. jlebar added inline comments. Comment at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:514 + MutableArrayRef> Callbacks) + : Overloads(std::make_move_iterator(Callbacks.begin()), + std::make_move_iterator(Callback

[libcxx] r283762 - [libcxx] Fix gcc build.

2016-10-10 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Mon Oct 10 10:56:01 2016 New Revision: 283762 URL: http://llvm.org/viewvc/llvm-project?rev=283762&view=rev Log: [libcxx] Fix gcc build. Attempt to fix a horrible gcc include order problem. Modified: libcxx/trunk/include/limits.h Modified: libcxx/trunk/include/limits.h UR

[PATCH] D25427: [Analysis] Use unique_ptr for CallGraph::FunctionMap.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar marked an inline comment as done. jlebar added inline comments. Comment at: clang/include/clang/Analysis/CallGraph.h:204 + static clang::CallGraphNode * + CGGetValue(decltype(*std::declval()) &P) { +return P.second.get(); timshen wrote: > Does clang:

[PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Erich Keane via cfe-commits
erichkeane added a comment. Andrey- It seems that getVariableArrayDecayedType and getCanonicalParamType return the same type in this case (at least in the reproduction). I could definitely change the call, though the changes to CGDebugInfo.cpp are apparently also necessary even in that case.

[PATCH] D25419: Use unique_ptr in LLVMContextImpl's constant maps.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar marked an inline comment as done. jlebar added inline comments. Comment at: llvm/lib/IR/LLVMContextImpl.cpp:106 for (auto &CDSConstant : CDSConstants) delete CDSConstant.second; CDSConstants.clear(); timshen wrote: > Do you want to change this o

[PATCH] D25419: Use unique_ptr in LLVMContextImpl's constant maps.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: llvm/lib/IR/LLVMContextImpl.cpp:106 for (auto &CDSConstant : CDSConstants) delete CDSConstant.second; CDSConstants.clear(); jlebar wrote: > timshen wrote: > > Do you want to change this one as well? > Sure, but

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno accepted this revision. bruno added a comment. LGTM https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r283766 - [Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:08 2016 New Revision: 283766 URL: http://llvm.org/viewvc/llvm-project?rev=283766&view=rev Log: [Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map. Summary: This is possible now that MapVector supports move-only values. Depends on

r283768 - [AST] Convert MangleNumberingContext to a unique_ptr.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:19 2016 New Revision: 283768 URL: http://llvm.org/viewvc/llvm-project?rev=283768&view=rev Log: [AST] Convert MangleNumberingContext to a unique_ptr. Summary: It doesn't need to be refcounted anymore, either. Reviewers: timshen Subscribers: cfe-commits Diff

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons marked 15 inline comments as done. malcolm.parsons added inline comments. Comment at: test/clang-tidy/modernize-use-auto-cast.cpp:14 + long l = 1; + int i1 = static_cast(l); + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use auto when initializing with a cast t

r283771 - Use unique_ptr for VTableBuilder::VFTableLayouts map.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:33 2016 New Revision: 283771 URL: http://llvm.org/viewvc/llvm-project?rev=283771&view=rev Log: Use unique_ptr for VTableBuilder::VFTableLayouts map. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25423 Modified

r283769 - [AST] Use unique_ptr for VTableLayout.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:24 2016 New Revision: 283769 URL: http://llvm.org/viewvc/llvm-project?rev=283769&view=rev Log: [AST] Use unique_ptr for VTableLayout. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25421 Modified: cfe/trunk

r283773 - [AST] Convert Marshallers to use unique_ptr.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:40 2016 New Revision: 283773 URL: http://llvm.org/viewvc/llvm-project?rev=283773&view=rev Log: [AST] Convert Marshallers to use unique_ptr. Reviewers: timshen Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D25425 Modified:

  1   2   3   >