[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Shoaib Meenai via cfe-commits
smeenai updated this revision to Diff 78324. smeenai added a comment. Moving explanation to comment instead of referencing Phabricator https://reviews.llvm.org/D26657 Files: lib/Sema/SemaTemplate.cpp test/CodeGenCXX/dllexport.cpp test/CodeGenCXX/windows-itanium-dllexport.cpp Index: test

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:7683-7685 +// or implicit instantiation. MinGW doesn't allow this. In the implicit +// instantiation case, we limit clang to only adding dllexport; see the +// discussion in https://revi

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Shoaib Meenai via cfe-commits
smeenai updated this revision to Diff 78322. smeenai added a comment. Limiting to dllexport after discussion with @hans https://reviews.llvm.org/D26657 Files: lib/Sema/SemaTemplate.cpp test/CodeGenCXX/dllexport.cpp test/CodeGenCXX/windows-itanium-dllexport.cpp Index: test/CodeGenCXX/win

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Shoaib Meenai via cfe-commits
smeenai added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:7670-7673 +if ((Old_TSK == TSK_ExplicitInstantiationDeclaration || + Old_TSK == TSK_ImplicitInstantiation) && (TSK == TSK_ExplicitInstantiationDefinition || DLLImportExplicitInstan

[PATCH] D26773: [analyzer] Refactor recursive symbol reachability check to use symbol_iterator

2016-11-16 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Thank you for the cleanup!!! For bonus points, please add comments to the class APIs:) https://reviews.llvm.org/D26773 ___ cfe-commits mai

[PATCH] D26782: [libcxx] [test] Test changes for P0504R0 "Revisiting in-place tag types for any/optional/variant"

2016-11-16 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Do these tests pass with the current `` implementation, or will they have to wait? Comment at: test/std/utilities/utility/utility.inplace/inplace.pass.cpp:40 -template -struct CheckRet : std::false_type {}; -template -struct CheckRet : std::tru

[PATCH] D26782: [libcxx] [test] Test changes for P0504R0 "Revisiting in-place tag types for any/optional/variant"

2016-11-16 Thread Casey Carter via cfe-commits
CaseyCarter updated this revision to Diff 78311. CaseyCarter added a comment. Remove unused reference variable in any_cast_reference.pass.cpp. https://reviews.llvm.org/D26782 Files: test/std/utilities/any/any.class/any.cons/in_place_type.pass.cpp test/std/utilities/any/any.class/any.cons/va

Re: [PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Richard Smith via cfe-commits
On 16 November 2016 at 18:38, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > I'm a bit surprised that this landed, given that gcc bug. I can see the > motivation for the gcc bug: If you say your enum is going to need > underlying 8 bits, then warning that your bitfield where you

Re: [PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Nico Weber via cfe-commits
I'm a bit surprised that this landed, given that gcc bug. I can see the motivation for the gcc bug: If you say your enum is going to need underlying 8 bits, then warning that your bitfield where you store it is smaller _is_ surprising. I'm not sure if landing this while gcc still behaves the way i

[PATCH] D26782: [libcxx] [test] Test changes for P0504R0 "Revisiting in-place tag types for any/optional/variant"

2016-11-16 Thread Casey Carter via cfe-commits
CaseyCarter created this revision. CaseyCarter added reviewers: mclow.lists, EricWF. CaseyCarter added a subscriber: cfe-commits. Note that this does not implement the product code changes to and , this is only the necessary changes to accompanying test code. https://reviews.llvm.org/D26782 F

r287193 - Remove -Wsigned-enum-bitfield from -Wmost. On a wide set of ABIs, this warning

2016-11-16 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Nov 16 20:16:09 2016 New Revision: 287193 URL: http://llvm.org/viewvc/llvm-project?rev=287193&view=rev Log: Remove -Wsigned-enum-bitfield from -Wmost. On a wide set of ABIs, this warning is completely irrelevant, producing (effectively) false positives, and -Wmost is used

[PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Mehdi AMINI via cfe-commits
mehdi_amini added a comment. What is the correct solution for MSVC in C? (If any) Repository: rL LLVM https://reviews.llvm.org/D24289 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Richard Smith via cfe-commits
rsmith added a comment. This is causing warnings to fire for headers shared between C and C++, where the "give the enum an unsigned underlying type" advice doesn't work, and where the code in question will never be built for the MS ABI. It seems really hard to justify this being on by default.

[PATCH] D21099: [Sema] Teach -Wcast-align to look at the aligned attribute of the declared variables

2016-11-16 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 78300. ahatanak added a comment. Rebase and ping. https://reviews.llvm.org/D21099 Files: lib/Sema/SemaChecking.cpp test/Sema/warn-cast-align.c Index: test/Sema/warn-cast-align.c === ---

r287187 - [Sema] Fix a bug in enable_if condition instantiation.

2016-11-16 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed Nov 16 19:33:54 2016 New Revision: 287187 URL: http://llvm.org/viewvc/llvm-project?rev=287187&view=rev Log: [Sema] Fix a bug in enable_if condition instantiation. During template instantiation, we currently fall back to just calling Sema::SubstExpr for enable_if attributes

[PATCH] D26780: [CUDA] Wrapper header changes necessary to support MacOS.

2016-11-16 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. https://reviews.llvm.org/D26780 Files: clang/lib/Headers/__clang_cuda_cmath.h clang/lib/Headers/__clang_cuda_runtime_wrapper.h Index: clang/lib/Headers/__clang_cuda_runtime_wrapper.h

r287185 - Explicitly specify that ubsan-vtable-checks is x86-64.

2016-11-16 Thread Ivan Krasin via cfe-commits
Author: krasin Date: Wed Nov 16 19:09:04 2016 New Revision: 287185 URL: http://llvm.org/viewvc/llvm-project?rev=287185&view=rev Log: Explicitly specify that ubsan-vtable-checks is x86-64. This should fix a failure on PowerPC introduced by r287181. Modified: cfe/trunk/test/CodeGenCXX/ubsan-vt

[PATCH] D26777: [CUDA] Use the right section and constant names for fatbins when compiling for macos.

2016-11-16 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. https://reviews.llvm.org/D26777 Files: clang/lib/CodeGen/CGCUDANV.cpp Index: clang/lib/CodeGen/CGCUDANV.cpp === --- clang/lib/Cod

[PATCH] D26776: [CUDA] Initialize our header search using the host triple.

2016-11-16 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. This used to work because system headers are found in a (somewhat) predictable set of locations on Linux. But this is not the case on MacOS; without this change, we don't look in the right places f

r287181 - Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
Author: krasin Date: Wed Nov 16 18:39:48 2016 New Revision: 287181 URL: http://llvm.org/viewvc/llvm-project?rev=287181&view=rev Log: Insert a type check before reading vtable. Summary: this is to prevent a situation when a pointer is invalid or null, but we get to reading from vtable before we ca

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287181: Insert a type check before reading vtable. (authored by krasin). Changed prior to commit: https://reviews.llvm.org/D26559?vs=78279&id=78288#toc Repository: rL LLVM https://reviews.llvm.org/D

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-11-16 Thread Reid Kleckner via cfe-commits
rnk added a comment. If I understand correctly, this patch takes template function patterns, copies them into instantiated context, parses them in that context, and then instantiates them in that context. The key difference is that today's fdelayed-template-parsing doesn't parse the body of the

[PATCH] D26773: [analyzer] Refactor recursive symbol reachability check to use symbol_iterator

2016-11-16 Thread Dominic Chen via cfe-commits
ddcc created this revision. ddcc added reviewers: zaks.anna, dcoughlin. ddcc added a subscriber: cfe-commits. https://reviews.llvm.org/D26773 Files: lib/StaticAnalyzer/Core/ProgramState.cpp Index: lib/StaticAnalyzer/Core/ProgramState.cpp ===

[PATCH] D26649: [CMake] Support lld with LTO bootstrap

2016-11-16 Thread Petr Hosek via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287179: [CMake] Support lld with LTO bootstrap (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D26649?vs=78096&id=78283#toc Repository: rL LLVM https://reviews.llvm.org/D2664

r287179 - [CMake] Support lld with LTO bootstrap

2016-11-16 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Nov 16 17:59:06 2016 New Revision: 287179 URL: http://llvm.org/viewvc/llvm-project?rev=287179&view=rev Log: [CMake] Support lld with LTO bootstrap lld has LTO support, if requested we should add a dependency on lld rather than LLVMgold when doing LTO bootstrap build. Dif

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:7670-7673 +if ((Old_TSK == TSK_ExplicitInstantiationDeclaration || + Old_TSK == TSK_ImplicitInstantiation) && (TSK == TSK_ExplicitInstantiationDefinition || DLLImportExplicitInstantiat

[PATCH] D26649: [CMake] Support lld with LTO bootstrap

2016-11-16 Thread Chris Bieneman via cfe-commits
beanz added a comment. Yep, LGTM. Thanks! Repository: rL LLVM https://reviews.llvm.org/D26649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287177: Add warning when assigning enums to bitfields without an explicit unsigned… (authored by rnk). Changed prior to commit: https://reviews.llvm.org/D24289?vs=70760&id=78281#toc Repository: rL LL

r287177 - Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-11-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Nov 16 17:40:00 2016 New Revision: 287177 URL: http://llvm.org/viewvc/llvm-project?rev=287177&view=rev Log: Add warning when assigning enums to bitfields without an explicit unsigned underlying type Summary: Add a warning when assigning enums to bitfields without an explici

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Comment at: lib/CodeGen/CGExprCXX.cpp:1768 QualType ElementType) { + CGF.EmitTypeCheck(CodeGenFunction::TCK_MemberCall, +DE-

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
krasin updated this revision to Diff 78279. krasin added a comment. inline https://reviews.llvm.org/D26559 Files: lib/CodeGen/CGExprCXX.cpp test/CodeGenCXX/ubsan-vtable-checks.cpp Index: test/CodeGenCXX/ubsan-vtable-checks.cpp ==

[PATCH] D26762: Add a method to obtain this SVal of a method that created given StackFrameCtx

2016-11-16 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Thanks for the patch! How does this differ from `getCXXThisVal()` on `CXXInstanceCall` and its subclasses in CallEvent.h? Can that be used instead? Or are there places where you need access to this without a CallEvent? Also: it seems like there are a lot of places in

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
krasin updated this revision to Diff 78277. krasin added a comment. Address minor comment. https://reviews.llvm.org/D26559 Files: lib/CodeGen/CGExprCXX.cpp test/CodeGenCXX/ubsan-vtable-checks.cpp Index: test/CodeGenCXX/ubsan-vtable-checks.cpp ==

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
krasin marked an inline comment as done. krasin added inline comments. Comment at: test/CodeGenCXX/ubsan-vtable-checks.cpp:23 + // CHECK-NULL: [[UBSAN_CMP_RES:%[0-9]+]] = icmp ne %struct.T* %{{[_a-z0-9]+}}, null + // CHECK-NULL-NEXT: br i1 [[UBSAN_CMP_RES]], label %cont, label

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
krasin updated this revision to Diff 78276. krasin added a comment. Fix the test under -Asserts build. https://reviews.llvm.org/D26559 Files: lib/CodeGen/CGExprCXX.cpp test/CodeGenCXX/ubsan-vtable-checks.cpp Index: test/CodeGenCXX/ubsan-vtable-checks.cpp ===

[PATCH] D26759: Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287175: [analyzer] Remove unused check::RegionChanges::wantsRegionChangeUpdate callback (authored by zaks). Changed prior to commit: https://reviews.llvm.org/D26759?vs=78249&id=78271#toc Repository:

r287175 - [analyzer] Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Anna Zaks via cfe-commits
Author: zaks Date: Wed Nov 16 16:59:01 2016 New Revision: 287175 URL: http://llvm.org/viewvc/llvm-project?rev=287175&view=rev Log: [analyzer] Remove unused check::RegionChanges::wantsRegionChangeUpdate callback Remove the check::RegionChanges::wantsRegionChangeUpdate callback as it is no longer u

[PATCH] D24933: Enable configuration files in clang

2016-11-16 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: docs/UsersManual.rst:655-656 + +Command line option `--config` can be used to specify configuration file in +a clang invocation. For instance: + Rather than inventing a new mechanism, could we extend our existing `@file`

[PATCH] D26768: [analyzer] Improve VirtualCallChecker diagnostics and move out of alpha

2016-11-16 Thread Devin Coughlin via cfe-commits
dcoughlin created this revision. dcoughlin added reviewers: zaks.anna, NoQ. dcoughlin added subscribers: cfe-commits, alexfh. The VirtualCallChecker is in alpha because its interprocedural diagnostics represent the call path textually in the diagnostic message rather than with a path sensitive d

[libcxx] r287164 - [libc++] Introduce `_LIBCPP_OVERRIDABLE_FUNC_VIS`

2016-11-16 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Wed Nov 16 16:18:10 2016 New Revision: 287164 URL: http://llvm.org/viewvc/llvm-project?rev=287164&view=rev Log: [libc++] Introduce `_LIBCPP_OVERRIDABLE_FUNC_VIS` This is a generalization of `_LIBCPP_NEW_DELETE_VIS`; the new macro name captures the semantics better, and also

[PATCH] D26702: [libc++] Introduce `_LIBCPP_OVERRIDABLE_FUNC_VIS`

2016-11-16 Thread Shoaib Meenai via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287164: [libc++] Introduce `_LIBCPP_OVERRIDABLE_FUNC_VIS` (authored by smeenai). Changed prior to commit: https://reviews.llvm.org/D26702?vs=78079&id=78264#toc Repository: rL LLVM https://reviews.ll

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-11-16 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/Expr.h:440 + /// + /// Likewise bitfields, we model gl-values referring to packed-fields as + /// an aspect of the value-kind type system. aaron.ballman wrote: > Like bitfields > glvalues "Likewise bi

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Hans Wennborg via cfe-commits
hans added a comment. In https://reviews.llvm.org/D26657#597859, @smeenai wrote: > In https://reviews.llvm.org/D26657#597523, @hans wrote: > > > In https://reviews.llvm.org/D26657#596897, @smeenai wrote: > > > > > In https://reviews.llvm.org/D26657#596759, @hans wrote: > > > > > > > > On MSVC, if

r287154 - Use the member function location in enable_if diagnostics.

2016-11-16 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed Nov 16 15:31:25 2016 New Revision: 287154 URL: http://llvm.org/viewvc/llvm-project?rev=287154&view=rev Log: Use the member function location in enable_if diagnostics. Before: :3:3: error: no matching member function for call to 'bar' Foo().bar(); ^ After: :3:9: error:

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGExprCXX.cpp:1769 + SourceLocation CallLoc; + if (DE) +CallLoc = DE->getExprLoc(); DE will always be non-null at this point. Comment at: test/CodeGenCXX/ubsan-vtable-checks.cpp:23 + //

[PATCH] D26735: [OpenCL] Disable && (address of label) GNU extension for OpenCL

2016-11-16 Thread Richard Smith via cfe-commits
rsmith added a comment. Please don't ban things just because you can. If there's some reason why this doesn't make sense in OpenCL, this may be fine, but generally you shouldn't be making this language mode deviate from clang's normal behaviour regarding extensions. (It would be great if we ha

[clang-tools-extra] r287153 - [clang-tidy] Fix identifier naming for initializer list member initializers.

2016-11-16 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Nov 16 15:15:58 2016 New Revision: 287153 URL: http://llvm.org/viewvc/llvm-project?rev=287153&view=rev Log: [clang-tidy] Fix identifier naming for initializer list member initializers. Summary: This patch adds handling for member initializers in a constructors initializer

[PATCH] D26744: [clang-tidy] Fix identifier naming for initializer list member initializers.

2016-11-16 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! Comment at: test/clang-tidy/readability-identifier-naming.cpp:155 // CHECK-FIXES: {{^}}class CMyClass {{{$}} +public: my_class(); E

[PATCH] D26744: [clang-tidy] Fix identifier naming for initializer list member initializers.

2016-11-16 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 78252. EricWF added a comment. Fix `auto` usage. https://reviews.llvm.org/D26744 Files: clang-tidy/readability/IdentifierNamingCheck.cpp test/clang-tidy/readability-identifier-naming.cpp Index: test/clang-tidy/readability-identifier-naming.cpp

[PATCH] D26744: [clang-tidy] Fix identifier naming for initializer list member initializers.

2016-11-16 Thread Eric Fiselier via cfe-commits
EricWF marked an inline comment as done. EricWF added inline comments. Comment at: test/clang-tidy/readability-identifier-naming.cpp:155 // CHECK-FIXES: {{^}}class CMyClass {{{$}} +public: my_class(); aaron.ballman wrote: > Why set the access specifier here

[PATCH] D26744: [clang-tidy] Fix identifier naming for initializer list member initializers.

2016-11-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:681 + +for (auto Init : Decl->inits()) { + if (!Init->isWritten() || Init->isInClassMemberInitializer()) Please use `const auto *` instead of just `auto`.

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D26657#597523, @hans wrote: > In https://reviews.llvm.org/D26657#596897, @smeenai wrote: > > > In https://reviews.llvm.org/D26657#596759, @hans wrote: > > > > > > On MSVC, if an implicit instantiation already exists and an explicit > > > > ins

[PATCH] D26759: Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski updated this revision to Diff 78249. k-wisniewski added a comment. Removed a line that leaked from another diff - thanks Anna! https://reviews.llvm.org/D26759 Files: include/clang/StaticAnalyzer/Core/Checker.h include/clang/StaticAnalyzer/Core/CheckerManager.h include/clang/S

[PATCH] D26741: [clang-tidy] Changes to modernize-use-default check

2016-11-16 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/D26741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D26764: [compiler-rt] [cmake] Remove i686 target that is duplicate to i386

2016-11-16 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: samsonov, etienneb, beanz. mgorny added a subscriber: cfe-commits. Herald added subscribers: dberris, kubabrecka. Remove the explicit i686 target that is completely duplicate to the i386 target, with the latter being used more commonly. 1. The

[PATCH] D26760: Add the way to extract SVals of arguments used in a call for a given StackFrameCtx

2016-11-16 Thread Artem Dergachev via cfe-commits
NoQ added a comment. I'm ok with constructing `SymbolRegionValue` for `ArgLoc` manually and adding a comment like `FIXME: leaking implementation details of RegionStoreManager`. https://reviews.llvm.org/D26760 ___ cfe-commits mailing list cfe-commit

[PATCH] D26762: Add a method to obtain this SVal of a method that created given StackFrameCtx

2016-11-16 Thread Artem Dergachev via cfe-commits
NoQ added a comment. I think this method, unlike https://reviews.llvm.org/D26760, doesn't have the problem with overwriting the location in the top frame, because the location of C++ "this" cannot really be assigned to. https://reviews.llvm.org/D26762 ___

[PATCH] D26763: [compiler-rt] [asan] Use __SSE2__ (rather than __i686__...) for SSE2 test

2016-11-16 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: kcc. mgorny added a subscriber: cfe-commits. Herald added subscribers: dberris, kubabrecka. Use the __SSE2__ to determine whether SSE2 is enabled in the ASAN tests rather than relying on either of the __i686__ and __x86_64__. The former is onl

[PATCH] D26702: [libc++] Introduce `_LIBCPP_OVERRIDABLE_FUNC_VIS`

2016-11-16 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D26702#597377, @EricWF wrote: > What happens on windows when `operator new` isn't overridden and has to be > imported from the DLL? Does that work? Yup. If you have a function that isn't marked `dllimport` and it's not found locally, the li

[PATCH] D26759: Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/CheckerManager.cpp:535 + ExplicitRegions, Regions, + Call, LCtx); } Looks like the other patch leaked i

[PATCH] D26759: Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Looks great! https://reviews.llvm.org/D26759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D26762: Add a method to obtain this SVal of a method that created given StackFrameCtx

2016-11-16 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski created this revision. k-wisniewski added reviewers: a.sidorin, zaks.anna, NoQ, dcoughlin. k-wisniewski added subscribers: cfe-commits, NoQ. Artem Dergachev (@NoQ ) helped me correctly handle C++ method calls in my RecursionChecker (that finds infnite recursion) and this is the metho

[PATCH] D26759: Remove unused check::RegionChanges::wantsRegionChangeUpdate callback

2016-11-16 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski created this revision. k-wisniewski added reviewers: NoQ, dcoughlin, zaks.anna, a.sidorin. k-wisniewski added a subscriber: cfe-commits. Hi! I've noticed that check::RegionChanges::wantsRegionChangeUpdate is no longer used - as far as the discussion went it has been unused at least

[PATCH] D26760: Add the way to extract SVals of arguments used in a call for a given StackFrameCtx

2016-11-16 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski created this revision. k-wisniewski added reviewers: a.sidorin, NoQ, dcoughlin, zaks.anna. k-wisniewski added a subscriber: cfe-commits. This patch adds getArgsSVal method to ProgramState that allows the user to obtain SVals of argumetns used in a call that created the given StackFra

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-16 Thread Ivan Krasin via cfe-commits
krasin updated this revision to Diff 78240. krasin marked an inline comment as done. krasin added a comment. Sync to Clang ToT. https://reviews.llvm.org/D26559 Files: lib/CodeGen/CGExprCXX.cpp test/CodeGenCXX/ubsan-vtable-checks.cpp Index: test/CodeGenCXX/ubsan-vtable-checks.cpp ==

[PATCH] D24933: Enable configuration files in clang

2016-11-16 Thread Hans Wennborg via cfe-commits
hans added a subscriber: srhines. hans added a comment. I'm still skeptical, but I think this is an improvement over the previous patch. I think your best bet to get this landed is to find someone from the cfe-dev thread who is in favour of config files and have them review it. I'm also cc'ing

r287141 - Relax testcase.

2016-11-16 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 16 13:31:44 2016 New Revision: 287141 URL: http://llvm.org/viewvc/llvm-project?rev=287141&view=rev Log: Relax testcase. This removes checks that are irrelevant for what is being tested. Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk-msabi.cpp Modified: cfe/

r287139 - Add the missing FileCheck invocation to this testcase.

2016-11-16 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 16 13:26:11 2016 New Revision: 287139 URL: http://llvm.org/viewvc/llvm-project?rev=287139&view=rev Log: Add the missing FileCheck invocation to this testcase. Modified: cfe/trunk/test/CodeGenCXX/debug-info-thunk-msabi.cpp Modified: cfe/trunk/test/CodeGenCXX/debug

r287138 - Rangify for loops, NFC.

2016-11-16 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Wed Nov 16 13:24:10 2016 New Revision: 287138 URL: http://llvm.org/viewvc/llvm-project?rev=287138&view=rev Log: Rangify for loops, NFC. Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp URL: http://llvm.org/viewvc/l

[PATCH] D26753: ASTImporter: improve support for C++ templates

2016-11-16 Thread Sean Callanan via cfe-commits
spyffe requested changes to this revision. spyffe added a comment. This revision now requires changes to proceed. This looks amazing. I have a few minor quibbles and a testing concern, but overall this looks like a great step forward! Thank you! Comment at: lib/AST/ASTImport

[PATCH] D26742: [RecursiveASTVisitor] Fix post-order traversal of UnaryOperator

2016-11-16 Thread Raphael Isemann via cfe-commits
teemperor added a reviewer: rsmith. teemperor added a comment. Looks good to me. I'll add Richard because he also merged/approved the original post-order patch. https://reviews.llvm.org/D26742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r287134 - Fix PR31029 by attaching an artificial debug location to msabi thunks.

2016-11-16 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Wed Nov 16 12:49:47 2016 New Revision: 287134 URL: http://llvm.org/viewvc/llvm-project?rev=287134&view=rev Log: Fix PR31029 by attaching an artificial debug location to msabi thunks. This was a latent bug that was recently uncovered by r286400. Added: cfe/trunk/test/CodeG

[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++

2016-11-16 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. More info - The following code: #include int main () {} fails to compile on either gcc 6.2 (locally), gcc 7 head (online compiler) or MSVC (online compiler). https://reviews.llvm.org/D26376 ___ cfe-commits mailin

[PATCH] D26753: ASTImporter: improve support for C++ templates

2016-11-16 Thread Kareem Khazem via cfe-commits
khazem added a comment. Thanks very much for this patch! It certainly fixes the infinite recursion issue on our codebase. It LGTM, but I'd like to add a test case before landing it. https://reviews.llvm.org/D26753 ___ cfe-commits mailing list cfe-

[PATCH] D26503: [Parser][ObjC] Improve diagnostics and recovery when C++ keywords are used as identifiers in Objective-C++

2016-11-16 Thread Alex Lorenz via cfe-commits
arphaman added inline comments. Comment at: lib/Parse/ParseDecl.cpp:5405 + // Objective-C++: Detect C++ keywords and try to prevent further errors by + // treating these keyword as valid member names. + if (getLangOpts().ObjC1 && getLangOpts().CPlusPlus && ---

[PATCH] D26503: [Parser][ObjC] Improve diagnostics and recovery when C++ keywords are used as identifiers in Objective-C++

2016-11-16 Thread Alex Lorenz via cfe-commits
arphaman updated this revision to Diff 78218. arphaman marked 4 inline comments as done. arphaman added a comment. Addressed review comments by renaming the diagnostic and simplifying the name and the use of the `expectIdentifier ` method. Repository: rL LLVM https://reviews.llvm.org/D26503

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-16 Thread Serge Rogatch via cfe-commits
rSerge updated this revision to Diff 78216. rSerge added a comment. Rebased to the latest version of LLVM sources. https://reviews.llvm.org/D26415 Files: lib/Driver/Tools.cpp test/Driver/XRay/xray-instrument-cpu.c test/Driver/XRay/xray-instrument-os.c Index: test/Driver/XRay/xray-instru

[PATCH] D26571: Clean up layout of ASTMerge tests

2016-11-16 Thread Sean Callanan via cfe-commits
spyffe closed this revision. spyffe added a comment. Committed r287129 Repository: rL LLVM https://reviews.llvm.org/D26571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r287129 - Fixed layout of test/ASTMerge.

2016-11-16 Thread Sean Callanan via cfe-commits
Author: spyffe Date: Wed Nov 16 12:21:00 2016 New Revision: 287129 URL: http://llvm.org/viewvc/llvm-project?rev=287129&view=rev Log: Fixed layout of test/ASTMerge. As outlined in a previous RFC, the test/ASTMerge/Inputs folder is getting full and the tests are starting to become interdependent.

r287128 - [Frontend] Allow attaching an external sema source to compiler instance and extra diags to TypoCorrections

2016-11-16 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Wed Nov 16 12:15:26 2016 New Revision: 287128 URL: http://llvm.org/viewvc/llvm-project?rev=287128&view=rev Log: [Frontend] Allow attaching an external sema source to compiler instance and extra diags to TypoCorrections This can be used to append alternative typo corrections to

[PATCH] D26745: [Frontend] Allow attaching an external sema source to compiler instance and extra diags to TypoCorrections

2016-11-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287128: [Frontend] Allow attaching an external sema source to compiler instance and… (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D26745?vs=78179&id=78213#toc Repository: rL L

[PATCH] D26753: ASTImporter: improve support for C++ templates

2016-11-16 Thread Aleksei Sidorin via cfe-commits
a.sidorin created this revision. a.sidorin added reviewers: spyffe, khazem. a.sidorin added a subscriber: cfe-commits. - Support template partial specialization - Avoid infinite recursion in IsStructurallyEquivalent for TemplateArgument with implementing IsStructurallyEquivalent for TemplateName

[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-11-16 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Ping! https://reviews.llvm.org/D26267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26752: [include-fixer] Refactor include fixer to be usable as a plugin

2016-11-16 Thread Benjamin Kramer via cfe-commits
bkramer created this revision. bkramer added reviewers: klimek, hokein, ioeric. bkramer added a subscriber: cfe-commits. Herald added a subscriber: mgorny. - Refactor the external sema source into a visible class - Add support for emitting FixIts - Wrap up include fixer as a plugin as I did with c

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-11-16 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 updated this revision to Diff 78209. rogfer01 added a comment. Changes: - Rebase patch to trunk - Fixes as pointed out by reviewers TODO: - Diagnose and drop the packed attribute of a class with a nontrivially constructed data member. https://reviews.llvm.org/D23325 Files: includ

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-11-16 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 marked 15 inline comments as done. rogfer01 added a comment. I am retaking this, will upload an updated patch soon. Comment at: lib/AST/Decl.cpp:3523 + return !isBitField() && + (this->hasAttr() || getParent()->hasAttr()) && + Context.getDeclAlign(this

[PATCH] D26746: [OpenCL] Split PipeType into ReadPipe/WritePipe

2016-11-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Earlier related discussion: https://reviews.llvm.org/D17821 Repository: rL LLVM https://reviews.llvm.org/D26746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

Re: [PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++

2016-11-16 Thread Richard Smith via cfe-commits
On 16 Nov 2016 10:04 am, "Marshall Clow" wrote: mclow.lists added a comment. Ok - looking just at `kill_dependency`, this was added to the C standard in C11. It's required to be a macro. `atomic_is_lock_free` appears to be a function, as does `atomic_load`. Haven't checked the rest. That's a b

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-11-16 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-default-member-init.rst:7 +This check converts a default constructor's member initializers into default +member initializers. Other member initializers that match the default +member initializ

[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++

2016-11-16 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Ok - looking just at `kill_dependency`, this was added to the C standard in C11. It's required to be a macro. `atomic_is_lock_free` appears to be a function, as does `atomic_load`. Haven't checked the rest. I see that Bionic (sometimes) defines `atomic_is_lock_free`

[PATCH] D26735: [OpenCL] Disable && (address of label) GNU extension for OpenCL

2016-11-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. It seems that this bit is accepted under -std=c99 and the warning is given with the -pedantic flag. I am not sure whether it adds much deviating the implementation from C here. The OpenCL spec doesn't seem to contain anything on this matter? But if we decide to be mor

[PATCH] D26657: [Sema] Respect DLL attributes more faithfully

2016-11-16 Thread Hans Wennborg via cfe-commits
hans added a comment. In https://reviews.llvm.org/D26657#596897, @smeenai wrote: > In https://reviews.llvm.org/D26657#596759, @hans wrote: > > > > On MSVC, if an implicit instantiation already exists and an explicit > > > instantiation definition with a DLL attribute is created, the DLL > > > a

[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++

2016-11-16 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. I'll do some research. https://reviews.llvm.org/D26376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26376: Undef stdatomic.h macro definitions that are defining functions provided in libc++

2016-11-16 Thread Richard Smith via cfe-commits
rsmith added a comment. Hmm, this won't help when building libc++ as a module, and we don't have a wrapper header to hold these undefs since is not part of c++. So either that combination of includes gives a broken or a broken , or we do something nonstandard like reimplementing the latter in

[PATCH] D26751: [clang-tidy] Ignore template instantiations in modernize-use-equals-delete check

2016-11-16 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, alexfh. malcolm.parsons added a subscriber: cfe-commits. Template instantiations were causing misplaced fixits. https://reviews.llvm.org/D26751 Files: clang-tidy/modernize/UseEqualsDeleteCheck.cpp test/cl

r287115 - target-data test update for TCE and TCELE

2016-11-16 Thread Pekka Jaaskelainen via cfe-commits
Author: pjaaskel Date: Wed Nov 16 10:21:59 2016 New Revision: 287115 URL: http://llvm.org/viewvc/llvm-project?rev=287115&view=rev Log: target-data test update for TCE and TCELE Modified: cfe/trunk/test/CodeGen/target-data.c Modified: cfe/trunk/test/CodeGen/target-data.c URL: http://llvm.org

[PATCH] D26637: [change-namespace] handle constructor initializer: Derived : Base::Base() {} and added conflict detections

2016-11-16 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287118: [change-namespace] handle constructor initializer: Derived : Base::Base() {}… (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D26637?vs=78190&id=78201#toc Repository:

[clang-tools-extra] r287118 - [change-namespace] handle constructor initializer: Derived : Base::Base() {} and added conflict detections

2016-11-16 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Nov 16 10:54:53 2016 New Revision: 287118 URL: http://llvm.org/viewvc/llvm-project?rev=287118&view=rev Log: [change-namespace] handle constructor initializer: Derived : Base::Base() {} and added conflict detections Summary: namespace nx { namespace ny { class Base { publ

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-11-16 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, Eugene.Zelenko, alexfh. malcolm.parsons added a subscriber: cfe-commits. Herald added subscribers: modocache, mgorny. Fixes PR18858 https://reviews.llvm.org/D26750 Files: clang-tidy/modernize/CMakeLists.txt

r287114 - Remove duplicate condition (PR30648). NFCI.

2016-11-16 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Wed Nov 16 10:11:08 2016 New Revision: 287114 URL: http://llvm.org/viewvc/llvm-project?rev=287114&view=rev Log: Remove duplicate condition (PR30648). NFCI. We only need to check that the bitstream entry is a Record. Modified: cfe/trunk/lib/Serialization/ASTReader.cpp M

  1   2   >