Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. I just wrote how I tested this in the bugzilla report page below: https://llvm.org/bugs/show_bug.cgi?id=28660 https://reviews.llvm.org/D22666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Well, in this case `SourceMgr` should be removed... Please accept patches so fast; at least let the others take a look at it. https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. *please don't accept patches so fast https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. if (auto *RD = Loc.getType()->getAsCXXRecordDecl()) return setResult(RD, TypeBeginLoc, TypeEndLoc); This isn't needed, too... https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D22904: Fix two bugs for musl-libc on ARM

2016-07-28 Thread Lei Zhang via cfe-commits
zlei created this revision. zlei added reviewers: cfe-commits, rafael. Herald added subscribers: samparker, srhines, danalbert, tberghammer, rengolin, aemerson. Bug #1: triples like `armv7-pc-linux-musl` uses wrong linker name `ld-musl-armv7.so.1`; the right name should be `ld-musl-arm.so.1`, di

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. inside setResult Decl->getQualifiedNameAsString() is used so RD should not be nullptr there. we get there in the newly added test. https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D22881#498911, @alexshap wrote: > inside setResult Decl->getQualifiedNameAsString() is used > so RD should not be nullptr there. > we get there in the newly added test. It is used, but then we should add this check to setResult, don't we?

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. i took a look at handleNestedNameSpecifierLoc: const auto *Decl = NameLoc.getNestedNameSpecifier()->getAsNamespace(); if (Decl) { setResult(Decl, NameLoc.getLocalBeginLoc(), NameLoc.getLocalEndLoc()); } and added this check to VisitTypeLoc. the other Visit* methods ar

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D22881#498919, @alexshap wrote: > i took a look at handleNestedNameSpecifierLoc: > > const auto *Decl = NameLoc.getNestedNameSpecifier()->getAsNamespace(); > if (Decl) { >setResult(Decl, NameLoc.getLocalBeginLoc(), NameLoc.getLocalEndLo

Re: [PATCH] D22862: [analyzer] Fix for PR15623: eliminate unwanted ProgramState checker data propagation.

2016-07-28 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/misc-ps-region-store.m:332 @@ -330,3 +331,3 @@ if (p < q) { // If we reach here, 'p' cannot be null. If 'p' is null, then 'n' must // be '0', meaning that this branch is not feasible. ayartsev wrot

[PATCH] D22906: Refactor NamedDeclFindingASTVisitor

2016-07-28 Thread Alexander Shaposhnikov via cfe-commits
alexshap created this revision. alexshap added reviewers: omtcyfz, klimek, compnerd. alexshap added a subscriber: cfe-commits. alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users". Address the comments on the diff D22881. Remove SourceMgr.

[clang-tools-extra] r276967 - [clang-rename] USRFinder.cpp cleanup

2016-07-28 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Jul 28 04:05:06 2016 New Revision: 276967 URL: http://llvm.org/viewvc/llvm-project?rev=276967&view=rev Log: [clang-rename] USRFinder.cpp cleanup Modified: clang-tools-extra/trunk/clang-rename/USRFinder.cpp Modified: clang-tools-extra/trunk/clang-rename/USRFinder.cpp

Re: [PATCH] D22906: Refactor NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Fixed in https://reviews.llvm.org/rL276967 https://reviews.llvm.org/D22906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22906: Refactor NamedDeclFindingASTVisitor

2016-07-28 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. Thanks! https://reviews.llvm.org/D22906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22725: [clang-tidy] Add check 'misc-replace-memcpy'

2016-07-28 Thread Jonas Devlieghere via cfe-commits
JDevlieghere added a comment. Thanks for the reviews everyone! I'm currently still stuck on an issue I discovered when processing LLVM. I asked for help on the mailing list [0] but maybe someone here can help. Basically the issue is that sometimes pointers are passed to memcpy for which the ty

Re: [PATCH] D20561: Warn when taking address of packed member

2016-07-28 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 added a comment. Hi, friendly ping. @rsmith any further comment on this? Thank you very much. https://reviews.llvm.org/D20561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang-tools-extra] r276971 - [clang-rename] remove redundant *_cast<> traversal

2016-07-28 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Jul 28 05:31:16 2016 New Revision: 276971 URL: http://llvm.org/viewvc/llvm-project?rev=276971&view=rev Log: [clang-rename] remove redundant *_cast<> traversal Modified: clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp Modified: clang-tools-extra/trunk/clang-ren

Re: [PATCH] D22862: [analyzer] Fix for PR15623: eliminate unwanted ProgramState checker data propagation.

2016-07-28 Thread Anton Yartsev via cfe-commits
ayartsev added inline comments. Comment at: test/Analysis/misc-ps-region-store.m:332 @@ -330,3 +331,3 @@ if (p < q) { // If we reach here, 'p' cannot be null. If 'p' is null, then 'n' must // be '0', meaning that this branch is not feasible. zaks.ann

D22910 Add support for CXXOperatorCallExpr in Expr::HasSideEffects

2016-07-28 Thread Andi Bogdan Postelnicu via cfe-commits
I’m trying to get reviews for this patch that modifies Expr::HasSideEffects in order to have better support for CXXOperatorCallExpr and i don’t know from who i can ask review. Thanks ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-07-28 Thread Anton Yartsev via cfe-commits
ayartsev added inline comments. Comment at: test/Analysis/PR12421.c:11 @@ +10,2 @@ + +// CHECK: warning: Path diagnostic report is not generated. HTMLDiagnostics does not support diagnostics that cross file boundaries. zaks.anna wrote: > ayartsev wrote: > > zaks.

Re: [PATCH] D20811: [analyzer] Model some library functions

2016-07-28 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:509 @@ +508,3 @@ + //} + // } + //} dcoughlin wrote: > I disagree about compactness being valuable here. I think it is more > important to intrinsically docu

[PATCH] D22913: Mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes

2016-07-28 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added a reviewer: hans. andreybokhanko added a subscriber: cfe-commits. This add mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes. https://reviews.llvm.org/D22913 Files: docs/ReleaseNotes.rst Index: doc

Re: [PATCH] D22910: Add support for CXXOperatorCallExpr in Expr::HasSideEffects

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Thank you for the patch! One thing this patch is missing is a test case that exercises this code path. For instance, there are diagnostics triggered for expressions with side effects when used as part of an unevaluated expression like sizeof, noexcept, etc. You s

Re: [PATCH] D22514: CloneDetection now respects statement specific data when searching for clones.

2016-07-28 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 65909. teemperor added a comment. - Actually removed the duplicate test now. https://reviews.llvm.org/D22514 Files: lib/Analysis/CloneDetection.cpp test/Analysis/copypaste/false-positives.cpp test/Analysis/copypaste/functions.cpp test/Analysis/cop

Re: [PATCH] D21070: Pass the ABI in the triple when appropriate (currently for MIPS) for 'clang -cc1' and 'clang -cc1as'

2016-07-28 Thread Daniel Sanders via cfe-commits
dsanders updated this revision to Diff 65918. dsanders added a comment. Refresh and ping https://reviews.llvm.org/D21070 Files: lib/Basic/Targets.cpp lib/Driver/ToolChains.cpp lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp tools/driver/cc1as_main.cpp Index: tools/driver/cc1

[clang-tools-extra] r276973 - Reapply r276856 "Adjust Registry interface to not require plugins to export a registry"

2016-07-28 Thread John Brawn via cfe-commits
Author: john.brawn Date: Thu Jul 28 07:48:17 2016 New Revision: 276973 URL: http://llvm.org/viewvc/llvm-project?rev=276973&view=rev Log: Reapply r276856 "Adjust Registry interface to not require plugins to export a registry" This version has two fixes compared to the original: * In Registry.h t

r276973 - Reapply r276856 "Adjust Registry interface to not require plugins to export a registry"

2016-07-28 Thread John Brawn via cfe-commits
Author: john.brawn Date: Thu Jul 28 07:48:17 2016 New Revision: 276973 URL: http://llvm.org/viewvc/llvm-project?rev=276973&view=rev Log: Reapply r276856 "Adjust Registry interface to not require plugins to export a registry" This version has two fixes compared to the original: * In Registry.h t

Re: [PATCH] D22766: Handle -mlong-calls on Hexagon

2016-07-28 Thread Krzysztof Parzyszek via cfe-commits
kparzysz updated this revision to Diff 65919. kparzysz marked 2 inline comments as done. kparzysz added a comment. Removed the cleanup part. Repository: rL LLVM https://reviews.llvm.org/D22766 Files: include/clang/Driver/Options.td lib/Basic/Targets.cpp lib/Driver/Tools.cpp test/Driv

Re: [PATCH] D22208: [clang-tidy] Fixes to modernize-use-emplace

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.h:36-37 @@ -32,1 +35,4 @@ +private: + std::vector ContainersWithPushBack; + std::vector SmartPointers; }; What about `llvm::make_range()`? https://reviews.llvm.org/D22208

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp:62 @@ +61,3 @@ +std::string +SpecialMemberFunctionsCheck::join(llvm::ArrayRef SMFS, + llvm::StringRef AndOr) { I think this j

Re: [PATCH] D22910: Add support for CXXOperatorCallExpr in Expr::HasSideEffects

2016-07-28 Thread Andi via cfe-commits
Abpostelnicu added a comment. In https://reviews.llvm.org/D22910#499082, @aaron.ballman wrote: > Thank you for the patch! > > One thing this patch is missing is a test case that exercises this code path. > For instance, there are diagnostics triggered for expressions with side > effects when us

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-28 Thread Yaxun Liu via cfe-commits
yaxunl updated the summary for this revision. yaxunl updated this revision to Diff 65928. yaxunl added a comment. Use 'opencl.sampler_t' as opque type name for sampler in LLVM IR. https://reviews.llvm.org/D21567 Files: include/clang/AST/OperationKinds.def include/clang/Basic/DiagnosticGroup

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I don't suppose there's a way to test these changes, is there? Comment at: include/llvm/Support/MathExtras.h:682 @@ +681,3 @@ + +// alignTo for contexts where a constant expression is required. +// FIXME: remove when LLVM_CONSTEXPR becomes really c

r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 09:23:26 2016 New Revision: 276977 URL: http://llvm.org/viewvc/llvm-project?rev=276977&view=rev Log: [OpenMP] Codegen for use_device_ptr clause. Summary: This patch adds support for the use_device_ptr clause. It includes changes in SEMA that could not be tested w

r276978 - [OpenMP] Code generation for the is_device_ptr clause

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 09:25:09 2016 New Revision: 276978 URL: http://llvm.org/viewvc/llvm-project?rev=276978&view=rev Log: [OpenMP] Code generation for the is_device_ptr clause Summary: This patch adds support for the is_device_ptr clause. It expands SEMA to use the mappable expressio

r276979 - [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 09:29:18 2016 New Revision: 276979 URL: http://llvm.org/viewvc/llvm-project?rev=276979&view=rev Log: [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions. Summary: This patch prevents OpenMP flags from being forwarded to CUDA device commands. That w

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: klimek. Comment at: clang-tidy/misc/MoveForwardingReferenceCheck.cpp:44-54 @@ +43,13 @@ +if (OriginalText == "::std::move") { + Diag << FixItHint::CreateReplacement(CallRange, "::std::" + ForwardName); + // If the original text was s

Re: [PATCH] D22824: MathExtras.h: add LLVM_CONSTEXPR where simple

2016-07-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/llvm/Support/MathExtras.h:672 @@ -669,2 +671,3 @@ inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) { + assert(Align != 0u); Skew %= Align; Usually preferred to put in && "ratio

r276981 - [OpenMP] Do not use default argument in lambda from mappable expressions handlers.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 09:47:35 2016 New Revision: 276981 URL: http://llvm.org/viewvc/llvm-project?rev=276981&view=rev Log: [OpenMP] Do not use default argument in lambda from mappable expressions handlers. Windows bots were complaining about that. Modified: cfe/trunk/lib/CodeGen

r276983 - [OpenMP] Fix link command pattern in offloading interoperability test.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 09:56:19 2016 New Revision: 276983 URL: http://llvm.org/viewvc/llvm-project?rev=276983&view=rev Log: [OpenMP] Fix link command pattern in offloading interoperability test. It was causing a few bots to fail. Modified: cfe/trunk/test/Driver/offloading-interope

Re: r276350 - [CodeGen] Fix a crash when constant folding switch statement

2016-07-28 Thread Hans Wennborg via cfe-commits
I see, thanks. I've taken a second look at the patch and it seems straight-forward to me, so I've merged it in r276985. Cheers, Hans On Wed, Jul 27, 2016 at 5:16 PM, David Majnemer wrote: > I hear that he is on vacation. > > > On Wednesday, July 27, 2016, Hans Wennborg via cfe-commits > wrote:

Re: [PATCH] D22904: Fix two bugs for musl-libc on ARM

2016-07-28 Thread Renato Golin via cfe-commits
rengolin added a comment. Hi Lei, Thanks for the fix. A few comments. Also, please, add some tests. cheers, --renato Comment at: lib/Driver/ToolChains.cpp:4266 @@ -4266,1 +4265,3 @@ + if (Triple.isAndroid()) { return Triple.isArch64Bit() ? "/system/bin/linker64" : "/sys

r276988 - [OpenMP] Change name of variable in mappble expression.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 10:31:29 2016 New Revision: 276988 URL: http://llvm.org/viewvc/llvm-project?rev=276988&view=rev Log: [OpenMP] Change name of variable in mappble expression. This attempts to fix a failure in Windows bots pottentially related with a reserved keyword. Modified:

RE: [ReviewRequest] [Sema/Parser] GCC Compatibility Patch: Support for __final specifier

2016-07-28 Thread Keane, Erich via cfe-commits
I’ve put this review up on the Phabricator site so that it is easier to look at, see here: https://reviews.llvm.org/D22919 Thanks! -Erich From: David Majnemer [mailto:david.majne...@gmail.com] Sent: Monday, July 25, 2016 1:18 PM To: Keane, Erich Cc: cfe-commits@lists.llvm.org Subject: Re: [Revi

Re: [PATCH] D22913: Mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes

2016-07-28 Thread Hans Wennborg via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276994: Mention of proper support for "__unaligned" type qualifier in 3.9 clang… (authored by hans). Changed prior to commit: https://reviews.llvm.org/D22913?vs=65914&id=65943#toc Repository: rL LLVM

Re: [PATCH] D21459: Implement http://wg21.link/P0254R1: "Integrating std::string_view and std::string"

2016-07-28 Thread Kim Gräsman via cfe-commits
kimgr added a comment. This is probably not the right place for this discussion, but I thought I'd offer one more note. Comment at: include/string_view:216 @@ +215,3 @@ + basic_string_view(const _CharT* __s) + : __data(__s), __size(_Traits::length(__s)) {} +

[PATCH] D22920: [codeview] Emit information about vftables

2016-07-28 Thread Reid Kleckner via cfe-commits
rnk created this revision. rnk added reviewers: amccarth, aprantl, dblaikie, dexonsmith. rnk added a subscriber: cfe-commits. rnk added a dependency: D22884: [codeview] Emit vftable records. MSVC emits codeview records describing all the methods contained in a vftable. This is observable in windbg

r276995 - [CUDA] Rename cuda_phases.cu test to cuda-phases.cu to be consistent with the other tests.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 11:12:30 2016 New Revision: 276995 URL: http://llvm.org/viewvc/llvm-project?rev=276995&view=rev Log: [CUDA] Rename cuda_phases.cu test to cuda-phases.cu to be consistent with the other tests. Added: cfe/trunk/test/Driver/cuda-phases.cu Added: cfe/trunk/test/

Re: [PATCH] D22919: GCC Compatibility: Support for __final specifier

2016-07-28 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM as-is, clang's behavior would be congruent with GCC's. Comment at: lib/Parse/ParseDeclCXX.cpp:3024-3026 @@ -3013,2 +3023,5 @@ Diag(FinalLoc, diag::ext_ms_seale

r276996 - [CUDA] Remove duplicated test that should have been removed in r276995.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 11:18:31 2016 New Revision: 276996 URL: http://llvm.org/viewvc/llvm-project?rev=276996&view=rev Log: [CUDA] Remove duplicated test that should have been removed in r276995. Removed: cfe/trunk/test/Driver/cuda_phases.cu Removed: cfe/trunk/test/Driver/cuda_phas

Re: [PATCH] D22919: GCC Compatibility: Support for __final specifier

2016-07-28 Thread Erich Keane via cfe-commits
erichkeane removed rL LLVM as the repository for this revision. erichkeane updated this revision to Diff 65951. https://reviews.llvm.org/D22919 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Parse/Parser.h include/clang/Sema/DeclSpec.h lib/Parse/ParseDeclCXX.cpp lib/Sem

Re: [PATCH] D22919: GCC Compatibility: Support for __final specifier

2016-07-28 Thread Erich Keane via cfe-commits
erichkeane marked an inline comment as done. erichkeane added a comment. Fixed the braces mentioned. https://reviews.llvm.org/D22919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21946: Subject: [PATCH] [Driver] fix windows SDK detect

2016-07-28 Thread Zachary Turner via cfe-commits
Sorry for the delay, I had forgotten about this. I will check it in today. On Wed, Jul 27, 2016 at 5:57 PM comicfans44 wrote: > comicfans44 added a comment. > > In https://reviews.llvm.org/D21946#473071, @zturner wrote: > > > In https://reviews.llvm.org/D21946#473070, @comicfans44 wrote: > > >

Re: [PATCH] D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments infunction call expression.

2016-07-28 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:83 @@ -80,3 +82,3 @@ if (const auto *Used = Result.Nodes.getNodeAs("used")) { -if (const auto *Specialization = -dyn_cast(Used)) +if (const auto *FD = dyn_cast(Used)) {

Re: [PATCH] D22514: CloneDetection now respects statement specific data when searching for clones.

2016-07-28 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:91 @@ +90,3 @@ + ASTContext &Context; + std::vector &CollectedData; + Maybe it's a good idea to introduce a typedef for `unsigned` here, because it'd be nice to be able to change it (eg., so

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-28 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! Could you please address these small comments before committing! Comment at: lib/Sema/SemaInit.cpp:6959 @@ +6958,3 @@ +// this has already been don

Re: [PATCH] D22913: Mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes

2016-07-28 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm, thanks! https://reviews.llvm.org/D22913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

Re: r276979 - [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions.

2016-07-28 Thread Hans Wennborg via cfe-commits
Should we merge this to 3.9? Cheers, Hans On Thu, Jul 28, 2016 at 7:29 AM, Samuel Antao via cfe-commits wrote: > Author: sfantao > Date: Thu Jul 28 09:29:18 2016 > New Revision: 276979 > > URL: http://llvm.org/viewvc/llvm-project?rev=276979&view=rev > Log: > [OpenMP][CUDA] Do not forward OpenMP

Re: r276979 - [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions.

2016-07-28 Thread Samuel F Antao via cfe-commits
Hi Hans,   I think it should. All the stuff that enables this fix seems to be in 3.9 already.   Thanks! Samuel     - Original message -From: Hans Wennborg Sent by: hwennb...@google.comTo: Samuel F Antao/Watson/IBM@IBMUS, "Bataev, Alexey" Cc: cfe-commits Subject: Re: r276979 - [OpenMP][CUDA]

Re: r276979 - [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions.

2016-07-28 Thread Hans Wennborg via cfe-commits
I've merged it in r277004. Cheers, Hans On Thu, Jul 28, 2016 at 10:15 AM, Samuel F Antao wrote: > Hi Hans, > > I think it should. All the stuff that enables this fix seems to be in 3.9 > already. > > Thanks! > Samuel > > > > - Original message - > From: Hans Wennborg > Sent by: hwennb..

r277005 - [Driver] Fix Windows SDK Detection

2016-07-28 Thread Zachary Turner via cfe-commits
Author: zturner Date: Thu Jul 28 12:13:32 2016 New Revision: 277005 URL: http://llvm.org/viewvc/llvm-project?rev=277005&view=rev Log: [Driver] Fix Windows SDK Detection This fixes a couple of bugs in Windows SDK Detection. 1. `readFullStringValue` returns a bool, but was being compared with E

Re: [PATCH] D21946: Subject: [PATCH] [Driver] fix windows SDK detect

2016-07-28 Thread Zachary Turner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277005: [Driver] Fix Windows SDK Detection (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D21946?vs=62570&id=65958#toc Repository: rL LLVM https://reviews.llvm.org/D21946

Re: [PATCH] D21946: Subject: [PATCH] [Driver] fix windows SDK detect

2016-07-28 Thread Zachary Turner via cfe-commits
Committed in r277005 On Thu, Jul 28, 2016 at 9:38 AM Zachary Turner wrote: > Sorry for the delay, I had forgotten about this. I will check it in today. > > On Wed, Jul 27, 2016 at 5:57 PM comicfans44 wrote: > >> comicfans44 added a comment. >> >> In https://reviews.llvm.org/D21946#473071, @ztu

[clang-tools-extra] r277008 - Revert r276973 "Adjust Registry interface to not require plugins to export a registry"

2016-07-28 Thread John Brawn via cfe-commits
Author: john.brawn Date: Thu Jul 28 12:17:22 2016 New Revision: 277008 URL: http://llvm.org/viewvc/llvm-project?rev=277008&view=rev Log: Revert r276973 "Adjust Registry interface to not require plugins to export a registry" Buildbot failures when building with clang -Werror. Reverting while I tr

r277008 - Revert r276973 "Adjust Registry interface to not require plugins to export a registry"

2016-07-28 Thread John Brawn via cfe-commits
Author: john.brawn Date: Thu Jul 28 12:17:22 2016 New Revision: 277008 URL: http://llvm.org/viewvc/llvm-project?rev=277008&view=rev Log: Revert r276973 "Adjust Registry interface to not require plugins to export a registry" Buildbot failures when building with clang -Werror. Reverting while I tr

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-28 Thread Yaxun Liu via cfe-commits
yaxunl marked 2 inline comments as done. Comment at: lib/Sema/SemaInit.cpp:6961 @@ +6960,3 @@ +// the initializer. +if (!Init->isConstantInitializer(S.Context, false)) + break; Anastasia wrote: > I think you don't need this check any more

r277009 - [analyzer] Fix misleading indentation in ObjCDeallocChecker. NFC.

2016-07-28 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Jul 28 12:18:33 2016 New Revision: 277009 URL: http://llvm.org/viewvc/llvm-project?rev=277009&view=rev Log: [analyzer] Fix misleading indentation in ObjCDeallocChecker. NFC. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp Modified: cfe/trunk/l

Re: [PATCH] D22767: [OpenCL] Added CLK_ABGR definition for get_image_channel_order return value

2016-07-28 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! Repository: rL LLVM https://reviews.llvm.org/D22767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22637: [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-28 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! Repository: rL LLVM https://reviews.llvm.org/D22637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-28 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaInit.cpp:6961 @@ +6960,3 @@ +// the initializer. +if (!Init->isConstantInitializer(S.Context, false)) + break; yaxunl wrote: > Anastasia wrote: > > I think you don't need this check

[PATCH] D22926: Static Analyzer - Localizability Checker: New Localizable APIs for macOS Sierra

2016-07-28 Thread Kulpreet Chilana via cfe-commits
kulpreet created this revision. kulpreet added reviewers: zaks.anna, dcoughlin. kulpreet added a subscriber: cfe-commits. - Added in new iOS and macOS APIs that require a localized string - Removed two APIs that incorrectly were marked as requiring a localized string https://reviews.llv

[PATCH] D22927: [OpenCL] Fix size of image type

2016-07-28 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: Anastasia. yaxunl added subscribers: cfe-commits, tstellarAMD. The size of image type is reported incorrectly as size of a pointer to address space 0, which causes error when casting image type to pointers by __builtin_astype. The fix is to

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Hal Finkel via cfe-commits
hfinkel accepted this revision. hfinkel added a comment. This revision is now accepted and ready to land. Comments about the comment, but otherwise, LGTM. Comment at: lib/CodeGen/CodeGenFunction.cpp:789 @@ -796,1 +788,3 @@ + // Since emitting mcount call here impacts optimiza

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

2016-07-28 Thread Peter Szecsi via cfe-commits
szepet updated this revision to Diff 65966. szepet marked 12 inline comments as done. szepet added a comment. updates based on comments, counter and search functions replaced by std functions https://reviews.llvm.org/D22507 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/EnumMisuseCh

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

2016-07-28 Thread Peter Szecsi via cfe-commits
szepet marked 2 inline comments as done. szepet added a comment. https://reviews.llvm.org/D22507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r277024 - [OpenCL] Generate opaque type for sampler_t and function call for the initializer

2016-07-28 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Thu Jul 28 14:26:30 2016 New Revision: 277024 URL: http://llvm.org/viewvc/llvm-project?rev=277024&view=rev Log: [OpenCL] Generate opaque type for sampler_t and function call for the initializer Currently Clang use int32 to represent sampler_t, which have been a source of is

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-28 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. yaxunl marked an inline comment as done. Closed by commit rL277024: [OpenCL] Generate opaque type for sampler_t and function call for the… (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D21567?vs=

[PATCH] D22929: [CodeGen][ObjC] Fix infinite recursion in getObjCEncodingForTypeImpl

2016-07-28 Thread Akira Hatanaka via cfe-commits
ahatanak created this revision. ahatanak added reviewers: doug.gregor, akyrtzi. ahatanak added a subscriber: cfe-commits. This patch fixes a stack overflow bug in ASTContext::getObjCEncodingForTypeImpl where it keeps expanding a class recursively. I added a check to avoid expanding a class if Ex

[PATCH] D22930: [Parser] only correct delayed typos for conditional expressions when needed.

2016-07-28 Thread David Tarditi via cfe-commits
dtarditi created this revision. dtarditi added a reviewer: erik.pilkington. dtarditi added a subscriber: cfe-commits. r272587 (http://reviews.llvm.org/D20490) fixed an issue where typo correction could cause a crash when compiling C programs.The problem was that a typo expression could be in

[PATCH] D22931: Add __declspec code_seg support

2016-07-28 Thread Andrew Artz via cfe-commits
kbdsmoke created this revision. kbdsmoke added a subscriber: cfe-commits. kbdsmoke set the repository for this revision to rL LLVM. clang does not support this by default. By default, if you want to utilize __declspec to assign a SectionAttr to a function, you should use __declspec allocate. How

Re: [PATCH] D22931: Add __declspec code_seg support

2016-07-28 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. Needs tests, though. The MSDN sample code is probably a good starting point. Comment at: lib/Sema/SemaDeclAttr.cpp:2659 @@ -2658,1 +2658,3 @@ + // code_seg only ever applies to functions. + if (Attr.getName()->getName() == "c

Re: [PATCH] D22931: Add __declspec code_seg support

2016-07-28 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. majnemer requested changes to this revision. majnemer added a reviewer: majnemer. majnemer added a comment. This revision now requires changes to proceed. Thanks for contributing this! I actually worked on an implementation of this feature but never sent it

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-07-28 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/misc/MoveForwardingReferenceCheck.cpp:93 @@ +92,3 @@ + hasArgument(0, ignoringParenImpCasts(declRefExpr( + to(ForwardingReferenceParmMatcher) + .bind("call-move"),

Re: [PATCH] D22874: [analyzer] Fixes to the checker developer manual.

2016-07-28 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277029: [analyzer] Update the web manual for checker developers. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D22874?vs=65762&id=65979#toc Repository: rL LLVM https://r

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-28 Thread Samuel F Antao via cfe-commits
Hi Mike,   I've already pushed r276981 and r276988 to fix those failures shortly after I pushed the patch. After that I didn't receive any bot message complaining about that code.    Do you still see the issues?   Thanks, Samuel   - Original message -From: Mike Aizatsky To: Samuel F Antao/W

Re: [PATCH] D22926: Static Analyzer - Localizability Checker: New Localizable APIs for macOS Sierra

2016-07-28 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. This doesn't compile for me. It looks like there are two separate declarations of 'buttonWithTitleNSButton'. https://reviews.llvm.org/D22926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

Re: [PATCH] D22931: Add __declspec code_seg support

2016-07-28 Thread Andrew Artz via cfe-commits
kbdsmoke added a comment. Indeed I was incorrect, and I agree with your analysis of the problem @majnemer I'll try to correct this issue in my own time and get some tests going Repository: rL LLVM https://reviews.llvm.org/D22931 ___ cfe-commits

r277029 - [analyzer] Update the web manual for checker developers.

2016-07-28 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Jul 28 15:13:14 2016 New Revision: 277029 URL: http://llvm.org/viewvc/llvm-project?rev=277029&view=rev Log: [analyzer] Update the web manual for checker developers. Fix the explanation of how to run tests after migration from autotools to cmake. Significantly expand t

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread John McCall via cfe-commits
rjmccall added a comment. LGTM, too. https://reviews.llvm.org/D22666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22926: Static Analyzer - Localizability Checker: New Localizable APIs for macOS Sierra

2016-07-28 Thread Kulpreet Chilana via cfe-commits
kulpreet updated this revision to Diff 66006. kulpreet added a comment. Sorry, uploaded the wrong patch. This one should compile with the unique variable names. https://reviews.llvm.org/D22926 Files: lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp Index: lib/StaticAnalyzer/Checkers/Loca

[PATCH] D22940: [OpenCL] Handle -cl-fp32-correctly-rounded-divide-sqrt

2016-07-28 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: Anastasia, nhaustov. yaxunl added subscribers: cfe-commits, tstellarAMD. Let the driver pass the option to frontend. Do not set precision metadata for division instructions when this option is set. Set function attribute "correctly-rounded-di

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-28 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 66011. jbcoe added a comment. Minor changes from review. https://reviews.llvm.org/D22513 Files: clang-tidy/cppcoreguidelines/CMakeLists.txt clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp clang-tidy/cppcoreguidelines/SpecialMemberFunctionsC

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-28 Thread Jonathan B Coe via cfe-commits
jbcoe added inline comments. Comment at: clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp:62 @@ +61,3 @@ +std::string +SpecialMemberFunctionsCheck::join(llvm::ArrayRef SMFS, + llvm::StringRef AndOr) { aaron.ballman wrote: >

Re: [PATCH] D22697: [ObjC Availability] Consider lexical context of use of declaration when emitting availability diagnostics

2016-07-28 Thread Manman Ren via cfe-commits
manmanren added a comment. Yes, this still looks good to me. Please commit. Manman https://reviews.llvm.org/D22697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21840: [Driver][CUDA][OpenMP] Reimplement tool selection in the driver.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66017. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21840 Files: include/clang/Driver/Action.h lib/Driver/Driver.cpp Index: lib/Driver/Driver.cpp === --- lib/Driver/Driver.

Re: [PATCH] D18172: [CUDA][OpenMP] Add a generic offload action builder

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66016. sfantao added a comment. - Remove redundant phases from cuda-phases.cu and use DAG check. - Rebase. https://reviews.llvm.org/D18172 Files: include/clang/Driver/Compilation.h lib/Driver/Driver.cpp test/Driver/cuda-phases.cu Index: test/Driver/c

Re: [PATCH] D21843: [Driver][OpenMP] Create tool chains for OpenMP offloading kind.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66018. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21843 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Driver/Action.h include/clang/Driver/Driver.h lib/Driver/Action.cpp lib/Driver/Driver.cpp lib/Driver/Tool

Re: [PATCH] D21845: [Driver][OpenMP] Add specialized action builder for OpenMP offloading actions.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66019. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21845 Files: lib/Driver/Driver.cpp test/Driver/openmp-offload.c Index: test/Driver/openmp-offload.c === --- test/Driver/

Re: [PATCH] D21847: [Driver][OpenMP] Build jobs for OpenMP offloading actions for targets using gcc tool chains.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66020. sfantao added a comment. - Add option to dump and test the linker script contents. - Rebase. https://reviews.llvm.org/D21847 Files: include/clang/Driver/Options.td lib/Driver/Driver.cpp lib/Driver/Tools.cpp test/Driver/openmp-offload.c Index

Re: [PATCH] D13909: clang-offload-bundler - offload files bundling/unbundling tool

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66023. sfantao added a comment. - Fix bug in conditional. - Rebase. https://reviews.llvm.org/D13909 Files: test/CMakeLists.txt test/Driver/clang-offload-bundler.c tools/CMakeLists.txt tools/clang-offload-bundler/CMakeLists.txt tools/clang-offload-

  1   2   >