Re: [PATCH] D24879: [libc++] Remove math_win32.h

2016-09-23 Thread Shoaib Meenai via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282328: [libc++] Remove math_win32.h (authored by smeenai). Changed prior to commit: https://reviews.llvm.org/D24879?vs=72330&id=72389#toc Repository: rL LLVM https://reviews.llvm.org/D24879 Files:

[libcxx] r282328 - [libc++] Remove math_win32.h

2016-09-23 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Sat Sep 24 01:27:28 2016 New Revision: 282328 URL: http://llvm.org/viewvc/llvm-project?rev=282328&view=rev Log: [libc++] Remove math_win32.h Visual Studio 2013 and onward have all the required functions in their CRT headers, and we don't support older versions anymore. Diff

Re: [PATCH] D24879: [libc++] Remove math_win32.h

2016-09-23 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. It's worth noting that the entirety of the deleted file was guarded by a `#if ((_VC_CRT_MAJOR_VERSION-0) < 12)` anyway (i.e. it would only be included on Visual Studio 2012 and below), so the code was already dead :) https://reviews.llvm.org/D24879 _

Re: [PATCH] D24879: [libc++] Remove math_win32.h

2016-09-23 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. I'll take your word for it. Thanks for the patch. https://reviews.llvm.org/D24879 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

Re: [PATCH] D24754: [cleanup] Remove excessive padding from RedeclarableResult

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282322: Remove excessive padding from RedeclarableResult (authored by alexshap). Changed prior to commit: https://reviews.llvm.org/D24754?vs=71903&id=72388#toc Repository: rL LLVM https://reviews.ll

r282322 - Remove excessive padding from RedeclarableResult

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Fri Sep 23 23:21:53 2016 New Revision: 282322 URL: http://llvm.org/viewvc/llvm-project?rev=282322&view=rev Log: Remove excessive padding from RedeclarableResult This diff reorders the fields of the class RedeclarableResult to remove excessive padding. Test plan: make -j8

Re: [PATCH] D22968: [analyzer] A checker for macOS-specific bool-like objects.

2016-09-23 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Here are more comments. Could you address/answer these and upload the latest patch that compares NSNumber to other numbers? Thanks! Comment at: lib/StaticAnalyzer/Checkers/BoolConversionChecker.cpp:88 @@ +87,3 @@ + +auto NSNumberExprM = +

Re: [PATCH] D24652: [clang-tidy] readability-avoid-const-params-in-decls template instantiation bugfix

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/AvoidConstParamsInDecls.cpp:39 @@ -38,2 +38,3 @@ // generate a non-definition FunctionDecl too. Ignore those. - unless

Re: [PATCH] D23765: Fix for clang PR 29087

2016-09-23 Thread Taewook Oh via cfe-commits
twoh added a comment. ping https://reviews.llvm.org/D23765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r282319 - [clang-tidy] Cleaning up language options.

2016-09-23 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 23 21:13:45 2016 New Revision: 282319 URL: http://llvm.org/viewvc/llvm-project?rev=282319&view=rev Log: [clang-tidy] Cleaning up language options. Differential Revision: https://reviews.llvm.org/D24881 Modified: clang-tools-extra/trunk/clang-tidy/cert/StrToNumChec

Re: [PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. If this kind of an error is not too frequent, it might make sense as a clang diagnostic, indeed. Having it in clang-tidy until then doesn't hurt, though. Comment at

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282319: [clang-tidy] Cleaning up language options. (authored by xazax). Changed prior to commit: https://reviews.llvm.org/D24881?vs=72341&id=72387#toc Repository: rL LLVM https://reviews.llvm.org/D2

r282318 - Remove excessive padding from ObjCCategoriesVisitor

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Fri Sep 23 21:07:19 2016 New Revision: 282318 URL: http://llvm.org/viewvc/llvm-project?rev=282318&view=rev Log: Remove excessive padding from ObjCCategoriesVisitor This diff reorders the fields of ObjCCategoriesVisitor to remove excessive padding. Test plan: make -j8 che

Re: [PATCH] D24845: [clang-tidy] fix for NOLINT after macro expansion

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Awesome, thanks! Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:303 @@ +302,3 @@ +if (!Loc.isMacroID()) + break; +Loc = SM.getImmediateExpansionRange(Loc)

Re: [PATCH] D22507: Clang-tidy - Enum misuse check

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. Thank you for the updates! Please re-run the check on LLVM to see what has changed. Comment at: clang-tidy/misc/SuspiciousEnumUsageCheck.cpp:53 @@ +52,3 @@ +} +stat

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Thank you for the cleanup! Please clang-format-diff the files before submitting. Otherwise looks good. Repository: rL LLVM https://reviews.llvm.org/D24881 __

Re: [PATCH] D18325: export additional header modules from xmmintrin

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in r264092. https://reviews.llvm.org/D18325 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

Re: [PATCH] D18639: Use __builtin_isnan/isinf/isfinite in complex

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was not committed. https://reviews.llvm.org/D18639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I think it's reasonable to compile code in C++11 with minimal changes (only modernize-replace-auto-ptr is really needed) and test it before further modernization. Repository: rL LLVM https://reviews.llvm.org/D24881 _

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In https://reviews.llvm.org/D24881#551487, @Eugene.Zelenko wrote: > I think will be good idea to enable modernize-loop-convert, > modernize-use-auto, modernize-use-default, modernize-use-nullptr only in > C++11 mode. > > Probably modernize-avoid-bind code code be simp

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. I think will be good idea to enable modernize-loop-convert, modernize-use-auto, modernize-use-default, modernize-use-nullptr only in C++11 mode. Probably modernize-avoid-bind code code be simplified too. Reposit

Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module

2016-09-23 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist closed this revision. rizsotto.mailinglist added a comment. commited at r282317 https://reviews.llvm.org/D19260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r282317 - [analyzer][scan-build-py] subprocess output handling reviewed in clang module

2016-09-23 Thread Laszlo Nagy via cfe-commits
Author: rizsotto Date: Fri Sep 23 19:20:59 2016 New Revision: 282317 URL: http://llvm.org/viewvc/llvm-project?rev=282317&view=rev Log: [analyzer][scan-build-py] subprocess output handling reviewed in clang module Modified: cfe/trunk/tools/scan-build-py/libscanbuild/analyze.py cfe/trunk/to

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Andrew Ford via cfe-commits
andrewford added a subscriber: andrewford. andrewford added a comment. This is breaking our android lldb build, because it uses std::to_string. Looks like there is llvm::to_string, which should be preferred. Would someone mind changing it? I don't have commit access or I would myself. :) Than

Re: [PATCH] D24884: Fix PR30274

2016-09-23 Thread Alex Lorenz via cfe-commits
arphaman added a comment. (Forgot to mention) This is a a fix for the regression introduced by r274049. Repository: rL LLVM https://reviews.llvm.org/D24884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
On Fri, Sep 23, 2016, 4:38 PM Andrew Ford wrote: > andrewford added a subscriber: andrewford. > andrewford added a comment. > > This is breaking our android lldb build, because it uses std::to_string. > Looks like there is llvm::to_string, which should be preferred. Would > someone mind changing

Re: r274222 - [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-09-23 Thread Alex L via cfe-commits
Hi Dmitry, I think that this commit has caused a regression that's tracked by PR 30440. I'll try working on a fix for it. Alex On 30 June 2016 at 02:40, Dmitry Polukhin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: dpolukhin > Date: Thu Jun 30 04:40:38 2016 > New Revision: 2742

Re: [PATCH] D19170: [safestack] Link SafeStack runtime only when not using separate stack segment

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. Please add dependencies to Differential revisions, so reasons for holding will be clear. https://reviews.llvm.org/D19170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

Re: [PATCH] D19170: [safestack] Link SafeStack runtime only when not using separate stack segment

2016-09-23 Thread Michael LeMay via cfe-commits
mlemay-intel added a comment. In https://reviews.llvm.org/D19170#551426, @Eugene.Zelenko wrote: > Looks like patch was not committed. This patch, https://reviews.llvm.org/D17092, https://reviews.llvm.org/D17094, and https://reviews.llvm.org/D17095 are all interdependent. I think it makes sen

Re: [PATCH] D19170: [safestack] Link SafeStack runtime only when not using separate stack segment

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was not committed. https://reviews.llvm.org/D19170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was not committed. https://reviews.llvm.org/D19260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D24820: Add -stats-stats option

2016-09-23 Thread Matthias Braun via cfe-commits
MatzeB added inline comments. Comment at: test/Driver/save-stats.c:1 @@ +1,2 @@ +// RUN: %clang -target x86_64-apple-darwin -save-stats %s -### 2>&1 | FileCheck %s +// RUN: %clang -target x86_64-apple-darwin -save-stats=cwd %s -### 2>&1 | FileCheck %s bruno wrot

Re: [PATCH] D24820: Add -stats-file option

2016-09-23 Thread Matthias Braun via cfe-commits
MatzeB updated this revision to Diff 72376. MatzeB marked an inline comment as done. MatzeB added a comment. Thanks for the reviews. Addressed comments. Repository: rL LLVM https://reviews.llvm.org/D24820 Files: docs/CommandGuide/clang.rst include/clang/Basic/DiagnosticFrontendKinds.td

r282308 - Use llvm::to_string instead of std::to_string to fix bot

2016-09-23 Thread Teresa Johnson via cfe-commits
Author: tejohnson Date: Fri Sep 23 17:25:03 2016 New Revision: 282308 URL: http://llvm.org/viewvc/llvm-project?rev=282308&view=rev Log: Use llvm::to_string instead of std::to_string to fix bot This should fix the android build in this bot: http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.0

Re: [PATCH] D24481: make “#pragma STDC FP_CONTRACT” on by default

2016-09-23 Thread Steve Canon via cfe-commits
That's not a great long-term solution for obvious reasons, but I think it's a great quick fix. Sent from my iPhone > On Sep 23, 2016, at 5:53 PM, Hal Finkel wrote: > > We currently have logic in the test suite that sets -ffp-contract=off on > PowerPC (because the default for GCC and other com

Re: [PATCH] D19854: Define Contiki OS toolchain

2016-09-23 Thread Michael LeMay via cfe-commits
mlemay-intel added a comment. In https://reviews.llvm.org/D19854#551260, @Eugene.Zelenko wrote: > Looks like patch was not committed. This patch is only useful in combination with https://reviews.llvm.org/D19852, so I was waiting for that one to be approved so these can be committed at the sa

Re: [PATCH] D24821: [ASTMatcher] Add isStaticStorageClass matcher for varDecl and functionDecl.

2016-09-23 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D24821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute

2016-09-23 Thread Matthias Gehre via cfe-commits
mgehre updated this revision to Diff 72366. mgehre added a comment. Include link to corresponding clang-tidy patch https://reviews.llvm.org/D24886 Files: include/clang/Basic/Attr.td lib/Sema/SemaDeclAttr.cpp lib/Sema/SemaStmtAttr.cpp Index: lib/Sema/SemaStmtAttr.cpp =

Re: [PATCH] D24888: [clang-tidy] Use [[clang::suppress]] with cppcoreguidelines-pro-type-reinterpret-cast

2016-09-23 Thread Matthias Gehre via cfe-commits
mgehre updated this revision to Diff 72365. mgehre added a comment. Minor fix https://reviews.llvm.org/D24888 Files: clang-tidy/cppcoreguidelines/ProTypeReinterpretCastCheck.cpp clang-tidy/cppcoreguidelines/Suppression.h docs/clang-tidy/checks/cppcoreguidelines-pro-type-reinterpret-cast.r

[PATCH] D24888: [clang-tidy] Use [[clang::suppress]] with cppcoreguidelines-pro-type-reinterpret-cast

2016-09-23 Thread Matthias Gehre via cfe-commits
mgehre created this revision. mgehre added reviewers: alexfh, aaron.ballman. mgehre added a subscriber: cfe-commits. Herald added a subscriber: nemanjai. This is a proof-of-concept how the [[clang::suppress(tags,...)]] attribute can work with suppressing clang-tidy warnings. The list of tags that

Re: [PATCH] D24481: make “#pragma STDC FP_CONTRACT” on by default

2016-09-23 Thread Hal Finkel via cfe-commits
We currently have logic in the test suite that sets -ffp-contract=off on PowerPC (because the default for GCC and other compilers on PowerPC/Linux systems is essentially -ffp-contract=fast). We might just want to do this now for all platforms. -Hal - Original Message - > From: "Steve

r282301 - Update clang for r282299.

2016-09-23 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Sep 23 16:43:51 2016 New Revision: 282301 URL: http://llvm.org/viewvc/llvm-project?rev=282301&view=rev Log: Update clang for r282299. Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp URL: http://llvm.org/viewvc/llvm-projec

Re: [PATCH] D24361: hasDeclaration(qualType(...)) matcher should unwrap ElaboratedType and TemplateSpecializationType

2016-09-23 Thread Łukasz Anforowicz via cfe-commits
lukasza updated the summary for this revision. lukasza updated this revision to Diff 72350. lukasza marked an inline comment as done. lukasza added a comment. - Added test where both TemplateSpecializationType and TypedefType are present and both should match regardless of code order inside HasD

Re: [PATCH] D24361: hasDeclaration(qualType(...)) matcher should unwrap ElaboratedType and TemplateSpecializationType

2016-09-23 Thread Łukasz Anforowicz via cfe-commits
lukasza added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:750 @@ +749,3 @@ +else if (auto *ET = Node->getAs()) + return matchesSpecialized(ET->getNamedType(), Finder, Builder); +else if (auto *TST = Node->getAs()) luka

Re: [PATCH] D24472: [Sema] Support lax conversions for compound assignments

2016-09-23 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: lib/Sema/SemaExpr.cpp:8090 @@ +8089,3 @@ + *RHSExpr = ImpCastExprToType(RHSExpr->get(), LHSType, CK_BitCast); + return VecType; +} ahatanak wrote: > Sorry I wasn't clear, but I was asking whether you were plan

Re: [PATCH] D24481: make “#pragma STDC FP_CONTRACT” on by default

2016-09-23 Thread Steve Canon via cfe-commits
Without digging into them yet, these are almost caused by overly-sensitive tests that are erroneously expecting bit-exact results. - Steve Sent from my iPhone > On Sep 23, 2016, at 4:42 PM, Renato Golin wrote: > > rengolin added a subscriber: rengolin. > rengolin added a comment. > > Folks,

[libcxxabi] r282300 - annotate more function visibility

2016-09-23 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Sep 23 16:36:24 2016 New Revision: 282300 URL: http://llvm.org/viewvc/llvm-project?rev=282300&view=rev Log: annotate more function visibility These data and text symbols were missing annotations for building with hidden visibility. As we do not currently enable hidden

[PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute

2016-09-23 Thread Matthias Gehre via cfe-commits
mgehre created this revision. mgehre added reviewers: alexfh, aaron.ballman, rsmith. mgehre added a subscriber: cfe-commits. This patch implements parsing of [[clang::suppress(rule, ...)]] attributes. C++ Core Guidelines depend heavily on tool support for rule enforcement. They also propose a way

Re: [PATCH] D23096: [Sema] Pass CombineWithOuterScope = true to constructor of LocalInstantiationScope

2016-09-23 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 72356. ahatanak added a comment. I agree that extending the logic of getTemplateInstantiationArgs seems like a better approach. I changed Sema::getTemplateInstantiationArgs to search for the template arguments twice, first for the initializer's template arg

Re: [PATCH] D24693: [CodeGen] Don't emit lifetime intrinsics for some local variables

2016-09-23 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. In https://reviews.llvm.org/D24693#551050, @vitalybuka wrote: > I can see how to insert starts, e.g. on every label which bypass declaration, > but I am not sure where to put ends. > Probably it's possible, but patch will be significantly more complicated. > I'd prefe

Re: [PATCH] D24820: Add -stats-file option

2016-09-23 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Maybe add some docs to explain the new flags? Comment at: lib/Driver/Tools.cpp:6102 @@ +6101,3 @@ +StatsFile.assign(Output.getFilename()); +llvm::sys::path::remove_filename(StatsFile); + } MatzeB wrote: > bruno wrote:

Re: [PATCH] D19854: Define Contiki OS toolchain

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was not committed. https://reviews.llvm.org/D19854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D24792: [analyzer] Fix crash in RetainCountChecker::checkEndFunction

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282293: [analyzer] Fix crash in RetainCountChecker::checkEndFunction (authored by alexshap). Changed prior to commit: https://reviews.llvm.org/D24792?vs=72206&id=72354#toc Repository: rL LLVM https:

r282293 - [analyzer] Fix crash in RetainCountChecker::checkEndFunction

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Fri Sep 23 15:49:01 2016 New Revision: 282293 URL: http://llvm.org/viewvc/llvm-project?rev=282293&view=rev Log: [analyzer] Fix crash in RetainCountChecker::checkEndFunction The class BodyFarm creates bodies for OSAtomicCompareAndSwap*, objc_atomicCompareAndSwap*, dispatch_s

Re: [PATCH] D23752: cmake: Supporting overriding runtime libdir via CLANG_LIBDIR_SUFFIX

2016-09-23 Thread Chris Bieneman via cfe-commits
beanz added a reviewer: rnk. beanz added a comment. This looks reasonable to me, but I'm not super familiar with multi-lib conventions. I think @chandlerc is more familiar with how that stuff works. https://reviews.llvm.org/D23752 ___ cfe-commits m

[PATCH] D24884: Fix PR30274

2016-09-23 Thread Alex Lorenz via cfe-commits
arphaman created this revision. arphaman added a reviewer: rsmith. arphaman added a subscriber: cfe-commits. arphaman set the repository for this revision to rL LLVM. This fixes PR 30274 by making sure that we skip the 'Using' and 'ConstructorUsingShadowDecl' declarations when evaluating the '__

Re: Broken bot

2016-09-23 Thread Renato Golin via cfe-commits
Funny, git-svnrevert is buggy, I had to do it by hand, but now it's done: r282289. Let me know if you need help testing it. --renato On 23 September 2016 at 21:28, Renato Golin wrote: > Now has broken the other: > > http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/3162 > > But

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282291: [LTO] Add -flto-jobs=N to control backend parallelism (authored by tejohnson). Changed prior to commit: https://reviews.llvm.org/D24826?vs=72317&id=72349#toc Repository: rL LLVM https://revi

r282291 - [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
Author: tejohnson Date: Fri Sep 23 15:38:09 2016 New Revision: 282291 URL: http://llvm.org/viewvc/llvm-project?rev=282291&view=rev Log: [LTO] Add -flto-jobs=N to control backend parallelism Summary: Currently, a linker option must be used to control the backend parallelism of ThinLTO. The linker

Re: [PATCH] D24481: make “#pragma STDC FP_CONTRACT” on by default

2016-09-23 Thread Renato Golin via cfe-commits
rengolin added a subscriber: rengolin. rengolin added a comment. Folks, this commit has broken both AArch64 test-suite buildbots: http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/3162 http://lab.llvm.org:8011/builders/clang-cmake-aarch64-quick/builds/10449 I have reverted in r2

Re: [PATCH] D22270: [ASTImporter] Properly report the locations of anonymous structs declared as part of named fields

2016-09-23 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in r275460. Repository: rL LLVM https://reviews.llvm.org/D22270 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Gábor Horváth via cfe-commits
xazax.hun created this revision. xazax.hun added reviewers: hokein, alexfh. xazax.hun added a subscriber: cfe-commits. xazax.hun set the repository for this revision to rL LLVM. xazax.hun added a project: clang-tools-extra. Herald added a subscriber: nemanjai. In some cases do not register the mat

Re: Broken bot

2016-09-23 Thread Renato Golin via cfe-commits
Now has broken the other: http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/3162 But when I try to revert, git get entangled with another commit and brings a lot of unrelated changes to it. I'll continue trying to revert, but if you can do it faster, I'd appreciate. thanks! --re

Re: [PATCH] D24878: ASTImporter: expressions, pt.2

2016-09-23 Thread Kareem Khazem via cfe-commits
khazem added a comment. This diff is a continuation of https://reviews.llvm.org/D14326, which was accepted for inclusion but has not been merged in for the past couple of months. I added a small patch so that it rebases cleanly onto master: --- a/lib/AST/ASTImporter.cpp +++ b/lib/AST/ASTImp

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Mehdi AMINI via cfe-commits
mehdi_amini accepted this revision. mehdi_amini added a comment. This revision is now accepted and ready to land. LGTM, Thanks! https://reviews.llvm.org/D24826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D24879: [libc++] Remove math_win32.h

2016-09-23 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added reviewers: compnerd, EricWF, mclow.lists. smeenai added a subscriber: cfe-commits. Visual Studio 2013 and onward have all the required functions in their CRT headers, and we don't support older versions anymore. https://reviews.llvm.org/D24879 Files:

[PATCH] D24878: ASTImporter: expressions, pt.2

2016-09-23 Thread Kareem Khazem via cfe-commits
khazem created this revision. khazem added reviewers: spyffe, sepavloff. khazem added subscribers: phosek, khazem, NoQ, xazax.hun, cfe-commits. This patch implements some expression-related AST node import (patch #2). - Some code cleanup - Add tests not present in http://reviews.llvm.org/D14

[PATCH] D24877: [libc++] Default to DLL semantics on Windows

2016-09-23 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added reviewers: compnerd, EricWF, mclow.lists. smeenai added a subscriber: cfe-commits. On Windows builds, we currently require `_LIBCPP_DLL` to be specified in order for dllexport/dllimport annotations to be generated. I believe it's better to do the opposi

Re: [PATCH] D14326: ASTImporter: expressions, pt.2

2016-09-23 Thread Kareem Khazem via cfe-commits
khazem added a comment. I'm updating this patch so that it rebases cleanly onto master, as this patch hasn't been updated for a couple of months... At the time of writing, one of Clang's tests is failing with this patch. Specifically, there is a segfault at line 130 of test/ASTMerge/Inputs/exp

Re: [PATCH] D24693: [CodeGen] Don't emit lifetime intrinsics for some local variables

2016-09-23 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. In https://reviews.llvm.org/D24693#550119, @ahatanak wrote: > Thank you for the great example! I can now see this patch does fix > mis-compiles. > > There are probably other lifetime bugs you'll see when the code being > compiled includes gotos that jump past variabl

Re: [PATCH] D21066: Pass MCSubtargetInfo instead of CPU and Triple to createMCAsmBackend

2016-09-23 Thread Andrey Turetskiy via cfe-commits
aturetsk abandoned this revision. aturetsk added a comment. New version in https://reviews.llvm.org/D21374 https://reviews.llvm.org/D21066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D14326: ASTImporter rebased onto master

2016-09-23 Thread Kareem Khazem via cfe-commits
Hello, https://reviews.llvm.org/D14326 has been accepted but hasn't seen any activity for a couple of months. Are there any plans to merge it? There is now a small conflict with master, which I have resolved in the patch below. There is currently one test failing, which I am working to fix now.

Re: [PATCH] D24861: [Sema] extend Wshift-op-parentheses so it warns for multiplicative operators

2016-09-23 Thread David Blaikie via cfe-commits
Do you have some data on the true/false positive rate for this warning? On Fri, Sep 23, 2016 at 6:12 AM Daniel Marjamäki < daniel.marjam...@evidente.se> wrote: > danielmarjamaki created this revision. > danielmarjamaki added reviewers: dblaikie, rtrieu. > danielmarjamaki added a subscriber: cfe-c

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
tejohnson updated this revision to Diff 72317. tejohnson added a comment. Update option help message per Mehdi's suggestion https://reviews.llvm.org/D24826 Files: include/clang/Driver/Options.td lib/Driver/Tools.cpp test/Driver/lto-jobs.c Index: test/Driver/lto-jobs.c ===

Re: [PATCH] D24820: Add -stats-file option

2016-09-23 Thread Matthias Braun via cfe-commits
MatzeB added inline comments. Comment at: lib/Driver/Tools.cpp:6102 @@ +6101,3 @@ +StatsFile.assign(Output.getFilename()); +llvm::sys::path::remove_filename(StatsFile); + } bruno wrote: > Why removing StatsFile here? IIUC, at this point StatsF

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

2016-09-23 Thread Serge Rogatch via cfe-commits
rSerge updated this revision to Diff 72312. rSerge added a comment. Herald added a subscriber: rampitec. Added a test. Changed the error message to: > clang++.exe: error: the clang compiler does not support '-fxray-instrument on > armv6kz--linux-gnueabihf' https://reviews.llvm.org/D24799 Fil

Re: [PATCH] D24820: Add -stats-file option

2016-09-23 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: lib/Driver/Tools.cpp:6102 @@ +6101,3 @@ +StatsFile.assign(Output.getFilename()); +llvm::sys::path::remove_filename(StatsFile); + } Why removing StatsFile here? IIUC, at this point StatsFile is still the

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Mehdi AMINI via cfe-commits
mehdi_amini added inline comments. Comment at: include/clang/Driver/Options.td:818 @@ -815,1 +817,3 @@ + HelpText<"Controls the backend parallelism of -flto=thin (default " + "of 0 means use std::thread::hardware_concurrency)">; def fthinlto_index_EQ : Joined<["-"], "f

Re: r282255 - Fix for r280064 that added options for fp denormals and exceptions.

2016-09-23 Thread Renato Golin via cfe-commits
On 23 September 2016 at 17:12, Sjoerd Meijer wrote: > I don't think I am committing at will: I thought it was okay to commit > directly because it is a simple fix (or should be) for my own previous > half-working patch, but I don't mind going through phab. A review would have caught many issu

[PATCH] D24874: Fully implement the matcher for CXXCtorInitializer

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: klimek, sbenza. aaron.ballman added a subscriber: cfe-commits. Herald added a subscriber: klimek. It turns out that our support for the `cxxCtorInitializer()` matcher was incomplete in that it could not be used as a top-level mat

Re: [PATCH] D24792: [analyzer] Fix crash in RetainCountChecker::checkEndFunction

2016-09-23 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. Thanks, Chris has recently granted me commit access, i will rebase, rerun all the tests and then commit. Repository: rL LLVM https://reviews.llvm.org/D24792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

Re: [PATCH] D24792: [analyzer] Fix crash in RetainCountChecker::checkEndFunction

2016-09-23 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Thanks! @alexshap, Do yon have commit access or should we commit on your behalf? Repository: rL LLVM https://reviews.llvm.org/D24792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
tejohnson added a comment. > > I do see other uses of -mllvm in lib/Driver/Tools.cpp, but are you talking > > about something else? > > I think this is okay, since clang is talking to the same version of > libLTO.dylib. I feel like there might be another case where > clang talks to libLTO

Re: [PATCH] D24826: [LTO] Add -flto-jobs=N to control backend parallelism

2016-09-23 Thread Teresa Johnson via cfe-commits
tejohnson updated this revision to Diff 72301. tejohnson added a comment. Update option description as per decision to split from parallel code gen. https://reviews.llvm.org/D24826 Files: include/clang/Driver/Options.td lib/Driver/Tools.cpp test/Driver/lto-jobs.c Index: test/Driver/lto-j

Re: [PATCH] D24867: Request init/fini array on FreeBSD 12 and later

2016-09-23 Thread Dimitry Andric via cfe-commits
dim accepted this revision. dim added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D24867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

Re: r282255 - Fix for r280064 that added options for fp denormals and exceptions.

2016-09-23 Thread Renato Golin via cfe-commits
On 23 September 2016 at 16:21, Sjoerd Meijer via cfe-commits wrote: > Author: sjoerdmeijer > Date: Fri Sep 23 10:21:33 2016 > New Revision: 282255 > > URL: http://llvm.org/viewvc/llvm-project?rev=282255&view=rev > Log: > Fix for r280064 that added options for fp denormals and exceptions. > These o

Re: [PATCH] D24481: make “#pragma STDC FP_CONTRACT” on by default

2016-09-23 Thread Sebastian Pop via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282259: set the underlying value of “#pragma STDC FP_CONTRACT” on by default (authored by spop). Changed prior to commit: https://reviews.llvm.org/D24481?vs=72186&id=72299#toc Repository: rL LLVM ht

RE: r282255 - Fix for r280064 that added options for fp denormals and exceptions.

2016-09-23 Thread Sjoerd Meijer via cfe-commits
Nothing was breaking, but it wasn't working either (because those options were not copied). I've reverted the patch directly after the first buildbot failure. I don't think I am committing at will: I thought it was okay to commit directly because it is a simple fix (or should be) for my own pr

r282257 - Revert of r282255 because of "Fell off the end of a string-switch" buildbot

2016-09-23 Thread Sjoerd Meijer via cfe-commits
Author: sjoerdmeijer Date: Fri Sep 23 10:37:17 2016 New Revision: 282257 URL: http://llvm.org/viewvc/llvm-project?rev=282257&view=rev Log: Revert of r282255 because of "Fell off the end of a string-switch" buildbot failures. Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk

Re: [PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-09-23 Thread Michał Górny via cfe-commits
mgorny added a comment. For the record: I've tested the patch with and without zlib installed, using in-tree and stand-alone builds. https://reviews.llvm.org/D24869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-09-23 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: rsmith, beanz, samsonov. mgorny added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. Fix the test run to declare missing HAVE_LIBZ value in stand-alone builds, using the LLVM_ENABLE_ZLIB that is exported in LLVMConfig.cmak

r282255 - Fix for r280064 that added options for fp denormals and exceptions.

2016-09-23 Thread Sjoerd Meijer via cfe-commits
Author: sjoerdmeijer Date: Fri Sep 23 10:21:33 2016 New Revision: 282255 URL: http://llvm.org/viewvc/llvm-project?rev=282255&view=rev Log: Fix for r280064 that added options for fp denormals and exceptions. These options were forgotten to be copied in setCommandLineOpts. Modified: cfe/trunk/l

r282253 - [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Sep 23 10:10:56 2016 New Revision: 282253 URL: http://llvm.org/viewvc/llvm-project?rev=282253&view=rev Log: [clang-format] support header deletion in cleanupAroundReplacemnts. Summary: - If a replacement has offset UINT_MAX, length 0, and a replacement text that is an #

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72284. ioeric marked 3 inline comments as done. ioeric added a comment. - Addressed review comments. https://reviews.llvm.org/D24862 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-

Re: [PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282253: [clang-format] support header deletion in cleanupAroundReplacemnts. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24829?vs=72285&id=72286#toc Repository: rL LLVM h

Re: [PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72285. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed comments. https://reviews.llvm.org/D24829 Files: include/clang/Format/Format.h lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTe

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric added a comment. Thanks for the comments! Comment at: change-namespace/ChangeNamespace.cpp:279 @@ -276,2 +278,3 @@ Finder->addMatcher( - usingDecl(hasAnyUsingShadowDecl(IsInMovedNs)).bind("using_decl"), this); + usingDecl(IsInMovedNs, hasAnyUsingShadowDecl(de

[PATCH] D24867: Request init/fini array on FreeBSD 12 and later

2016-09-23 Thread Ed Maste via cfe-commits
emaste created this revision. emaste added reviewers: dim, brooks. emaste added a subscriber: cfe-commits. Herald added a subscriber: emaste. It seems a bad idea to change the default in the middle of a release branch due to possible changes in global ctor / dtor ordering between .ctors and .ini

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D24862#550665, @ioeric wrote: > Sorry for the confusion. I guess I should've been clearer in the comments and > patch summary... The changes would've been what we wanted even without the > underlying bugs and would not be reverted after

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D24862#550654, @aaron.ballman wrote: > In https://reviews.llvm.org/D24862#550646, @ioeric wrote: > > > Acked, and I totally agree with you :) It's just that the change in this > > patch would still be valid after the underlying bugs are fixed,

  1   2   >