Re: r338602 - Revert r338455 "[constexpr] Support for constant evaluation of __builtin_memcpy and __builtin_memmove (in non-type-punning cases)."

2018-08-01 Thread Hans Wennborg via cfe-commits
Merged to 7.0 in r338674. On Wed, Aug 1, 2018 at 7:51 PM, Hans Wennborg via cfe-commits wrote: > Author: hans > Date: Wed Aug 1 10:51:23 2018 > New Revision: 338602 > > URL: http://llvm.org/viewvc/llvm-project?rev=338602&view=rev > Log: > Revert r338455 "[constexpr] Support for constant evaluati

[PATCH] D49922: [P0936R0] add [[clang::lifetimebound]] attribute

2018-08-01 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. Potential typo in the tests Comment at: test/SemaCXX/attr-lifetimebound.cpp:24 + + // Do not diagnose non-void return types; they can still be lifetime-bound. + long long ptrintcast(int ¶m [[clang::lifetimebound]]) { Should this say 'no

[PATCH] D50003: Sema: Fix explicit address space cast involving void pointers

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/Sema/SemaCast.cpp:1050 + SrcType->getAs()->getPointeeType().getAddressSpace() != + DestType->getAs()->getPointeeType().getAddressSpace(); +} yaxunl wrote: > rjmccall wrote: > > I know the code w

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-01 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added inline comments. Comment at: compiler-explorer-llvm-commit.sh:1 +# This is the commit of LLVM that we're currently based on. +git reset --hard 1fa19f68007cd126a04448093c171f40e556087e What's this file? A mistake? Comment at: in

[PATCH] D50003: Sema: Fix explicit address space cast involving void pointers

2018-08-01 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Sema/SemaCast.cpp:1050 + SrcType->getAs()->getPointeeType().getAddressSpace() != + DestType->getAs()->getPointeeType().getAddressSpace(); +} rjmccall wrote: > I know the code was like this before,

[PATCH] D49403: More aggressively complete RecordTypes with Function Pointers

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. My point is that IR pointer type information can't be "incorrect", because there is no semantic meaning for pointer types in LLVM IR. That has never been a part of the semantics of LLVM IR. Even if it were possible to change that — and I don't think it is, not withou

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:1638 +switch (E.Kind) { +case BlockCaptureEntityKind::CXXRecord: { + Name += "c"; I forget whether this case has already filtered out trivial copy-constructors, but if not, you sho

[PATCH] D49361: [analyzer] Detect pointers escaped after return statement execution in MallocChecker

2018-08-01 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs updated this revision to Diff 158681. rnkovacs marked an inline comment as done. rnkovacs added a comment. Add helper function to be used in both callbacks. https://reviews.llvm.org/D49361 Files: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/inner-pointer.cpp test/A

[PATCH] D49811: [analyzer] Obtain a ReturnStmt from a CFGAutomaticObjDtor

2018-08-01 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs updated this revision to Diff 158680. rnkovacs added a comment. In https://reviews.llvm.org/D49811#1175726, @NoQ wrote: > I guess you could write a test with `debug.AnalysisOrder` (by making its > `checkEndFunction` callback (that you'll have to define) print different > things dependi

[PATCH] D49715: [analyzer] CallEvent: Add partially working methods for obtaining the callee stack frame.

2018-08-01 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:431 +return ExprEngine::getObjectUnderConstruction( +getState(), {getOriginExpr(), Index}, getCalleeStackFrame()).hasValue(); + } Whoops, t

[libcxx] r338668 - Implement P1023: constexpr comparison operators for std::array

2018-08-01 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Aug 1 19:11:06 2018 New Revision: 338668 URL: http://llvm.org/viewvc/llvm-project?rev=338668&view=rev Log: Implement P1023: constexpr comparison operators for std::array Modified: libcxx/trunk/include/array libcxx/trunk/test/std/containers/sequences/array/compa

r338667 - [analyzer] Extend NoStoreFuncVisitor to follow fields.

2018-08-01 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 1 19:02:40 2018 New Revision: 338667 URL: http://llvm.org/viewvc/llvm-project?rev=338667&view=rev Log: [analyzer] Extend NoStoreFuncVisitor to follow fields. rdar://39701823 Differential Revision: https://reviews.llvm.org/D49901 Modified: cfe/trunk/li

[libcxx] r338666 - Implement P0887: The identity metafunction

2018-08-01 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Aug 1 18:56:02 2018 New Revision: 338666 URL: http://llvm.org/viewvc/llvm-project?rev=338666&view=rev Log: Implement P0887: The identity metafunction Added: libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/type_identity.pass.cpp Modified: libcx

r338664 - Pass triple to RUN line to fix failing bots.

2018-08-01 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Wed Aug 1 18:52:17 2018 New Revision: 338664 URL: http://llvm.org/viewvc/llvm-project?rev=338664&view=rev Log: Pass triple to RUN line to fix failing bots. This is a follow-up to r338656. Modified: cfe/trunk/test/PCH/no-escaping-block-tail-calls.cpp Modified: cfe/tru

[PATCH] D49952: Check for NULL Destination-Type when creating ArrayConstant

2018-08-01 Thread Balaji Iyer via Phabricator via cfe-commits
bviyer updated this revision to Diff 158676. bviyer added a comment. Added FileCheck as requested by John McCall Made comments start with "//" instead of /* Removed expected-no-diagnostics from the test case (as requested by Erik) Repository: rC Clang https://reviews.llvm.org/D49952 Files:

[PATCH] D50168: [Builtins] Implement __builtin_clrsb to be compatible with gcc

2018-08-01 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. craig.topper added reviewers: bkramer, efriedma, spatel. Herald added a reviewer: javed.absar. Herald added a subscriber: kristof.beyls. gcc defines an intrinsic called __builtin_clrsb which counts the number of extra sign bits on a number. This is equivalent t

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel accepted this revision. hfinkel added a comment. Assuming that @aaron.ballman is still okay with this, I think that we should move forward. @erichkeane, I suspect that fixing the ordering problems, which were often arbitrary before and are still so, is a larger change that we'd want to

[PATCH] D50160: [c-index-test] Use correct executable path to discover resource directory.

2018-08-01 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi accepted this revision. akyrtzi added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D50160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-08-01 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel accepted this revision. hfinkel added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D48808 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D32747: [Analyzer] Iterator Checker - Part 3: Invalidation check, first for (copy) assignments

2018-08-01 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I suspect that with https://reviews.llvm.org/rC338135 your operator this-argument re-assignment mechanism is no longer necessary. Due to the combination of support for materializing temporaries that i added previously and the change in the AST that turns the operator this-a

[PATCH] D49627: [CFG] [analyzer] Constructors of member CXXOperatorCallExpr's argument 0 are not argument constructors.

2018-08-01 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 158668. NoQ added a comment. Ok, so with https://reviews.llvm.org/rC338135 operator this-argument constructors do indeed work exactly like temporaries. This patch is not necessary anymore. I'd still prefer to add tests and i've added a path-sensitive test as we

[PATCH] D49396: [WebAssembly] Support for atomic.wait / atomic.wake builtins

2018-08-01 Thread Derek Schuff via Phabricator via cfe-commits
dschuff accepted this revision. dschuff added inline comments. This revision is now accepted and ready to land. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:38 +// Atomic wait and wake. +BUILTIN(__builtin_wasm_atomic_wait_i32, "Uii*iLLi", "n") +BUILTIN(__builtin_wasm_a

r338656 - Serialize DoesNotEscape.

2018-08-01 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Wed Aug 1 16:51:53 2018 New Revision: 338656 URL: http://llvm.org/viewvc/llvm-project?rev=338656&view=rev Log: Serialize DoesNotEscape. I forgot to commit this in r326530. Added: cfe/trunk/test/PCH/no-escaping-block-tail-calls.cpp cfe/trunk/test/PCH/no-escaping-bl

[PATCH] D49403: More aggressively complete RecordTypes with Function Pointers

2018-08-01 Thread Andy Kaylor via Phabricator via cfe-commits
andrew.w.kaylor added a comment. The LLVM linker also seems to have a bunch of problems with resolving pointer types in structures. I'm looking into a couple of those now. I am aware of the opaque pointer effort, though as you say it seems to be stalled. I agree that there aren't a lot of thin

[PATCH] D50160: [c-index-test] Use correct executable path to discover resource directory.

2018-08-01 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai marked an inline comment as done. vsapsai added inline comments. Comment at: clang/tools/c-index-test/core_main.cpp:210 + void *P = (void*) (intptr_t) indextest_core_main; + std::string Executable = llvm::sys::fs::getMainExecutable(ProgName, P); SmallVector ArgsWithP

[PATCH] D50160: [c-index-test] Use correct executable path to discover resource directory.

2018-08-01 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 158658. vsapsai added a comment. - Address review comment: move getMainExecutable to indextest_core_main. https://reviews.llvm.org/D50160 Files: clang/tools/c-index-test/core_main.cpp Index: clang/tools/c-index-test/core_main.cpp ===

Re: r338641 - [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into DeclContext

2018-08-01 Thread David Jones via cfe-commits
(And it was fixed in r338648) On Wed, Aug 1, 2018 at 3:24 PM David Jones wrote: > FYI, this breaks clang: > > .../llvm/tools/clang/lib/AST/DeclObjC.cpp:793:7: error: static_assert > expression is not an integral constant expression > static_cast(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth)

[PATCH] D50160: [c-index-test] Use correct executable path to discover resource directory.

2018-08-01 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi added inline comments. Comment at: clang/tools/c-index-test/core_main.cpp:210 + void *P = (void*) (intptr_t) indextest_core_main; + std::string Executable = llvm::sys::fs::getMainExecutable(ProgName, P); SmallVector ArgsWithProgName; Could you move t

[PATCH] D50163: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl

2018-08-01 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC338648: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl (authored by vlad.tsyrklevich, committed by

r338648 - [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl

2018-08-01 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Wed Aug 1 15:41:03 2018 New Revision: 338648 URL: http://llvm.org/viewvc/llvm-project?rev=338648&view=rev Log: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl Summary: This check was introduced by r338641 but this broke some builds. For now r

[PATCH] D49148: [DEBUGINFO] Disable unsupported debug info options for NVPTX target.

2018-08-01 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. We normally do not need to deviate from the host options all that often. I would argue that keeping options identical is a reasonable default for most options. For some options the driver may be able to derive a sensible value based on the host options. E.g. some options ca

[PATCH] D50163: [AST] Remove the static_assert check in ObjCMethodDecl::ObjCMethodDecl

2018-08-01 Thread Bruno Ricci via Phabricator via cfe-commits
bricci created this revision. bricci added a project: clang. Herald added a subscriber: cfe-commits. This check was introduced by r338641 but this broke some builds. For now remove it. Repository: rC Clang https://reviews.llvm.org/D50163 Files: lib/AST/DeclObjC.cpp Index: lib/AST/DeclObj

Re: r338641 - [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into DeclContext

2018-08-01 Thread David Jones via cfe-commits
FYI, this breaks clang: .../llvm/tools/clang/lib/AST/DeclObjC.cpp:793:7: error: static_assert expression is not an integral constant expression static_cast(ObjCMethodDeclBits.ObjCMethodFamilyBitWidth) == ^ .../llvm/too

r338643 - Fix -Wcovered-switch-default uncovered after r338630

2018-08-01 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Aug 1 15:10:03 2018 New Revision: 338643 URL: http://llvm.org/viewvc/llvm-project?rev=338643&view=rev Log: Fix -Wcovered-switch-default uncovered after r338630 Modified: cfe/trunk/lib/AST/DeclBase.cpp Modified: cfe/trunk/lib/AST/DeclBase.cpp URL: http://llvm.org/viewv

[PATCH] D49952: Check for NULL Destination-Type when creating ArrayConstant

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: test/CodeGenCXX/empty-struct-init-list.cpp:11 +} c; +c d{ }; Please make this a `FileCheck` test that tests the actual compiler output. https://reviews.llvm.org/D49952 __

[PATCH] D50003: Sema: Fix explicit address space cast involving void pointers

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. One minor request; feel free to just do that when you commit. Comment at: lib/Sema/SemaCast.cpp:1050 + SrcType->getAs()->getPointeeType().getAddressSpace() != +

[PATCH] D50055: Update the coding standard about NFC changes and whitespace

2018-08-01 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added inline comments. Comment at: docs/DeveloperPolicy.rst:395-408 +Commits with No Functional Change +- + +It may be permissible to commit changes without prior review when the changes +have no semantic impact on the code if the changes

[PATCH] D50160: [c-index-test] Use correct executable path to discover resource directory.

2018-08-01 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: nathawes, akyrtzi, bob.wilson. Herald added a subscriber: dexonsmith. Driver builds resource directory path based on provided executable path. Instead of string "clang" use actual executable path. rdar://problem/42699514 https://reviews.ll

[PATCH] D50144: Add Windows support for the GNUstep Objective-C ABI V2.

2018-08-01 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT accepted this revision. DHowett-MSFT added a comment. This revision is now accepted and ready to land. This looks good to me, but I don't have a strong understanding of "outlining." Comment at: lib/CodeGen/CGBlocks.cpp:1262 + if (IsWindows) { +auto *Init = llv

[PATCH] D49148: [DEBUGINFO] Disable unsupported debug info options for NVPTX target.

2018-08-01 Thread Eric Christopher via Phabricator via cfe-commits
echristo added a comment. In https://reviews.llvm.org/D49148#1184957, @tra wrote: > I wonder, what's the right thing to do to silence the warnings. For instance, > we compile everything with -Werror and the warnings result in build breaks. > > Easy way out is to pass `-Wno-unsupported-target-opt

[PATCH] D49148: [DEBUGINFO] Disable unsupported debug info options for NVPTX target.

2018-08-01 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. I wonder, what's the right thing to do to silence the warnings. For instance, we compile everything with -Werror and the warnings result in build breaks. Easy way out is to pass `-Wno-unsupported-target-opt`. It works, but it does not really solve anything. It also may mas

[PATCH] D49734: [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into DeclContext

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338641: [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into… (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://

r338641 - [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into DeclContext

2018-08-01 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed Aug 1 14:31:08 2018 New Revision: 338641 URL: http://llvm.org/viewvc/llvm-project?rev=338641&view=rev Log: [AST][4/4] Move the bit-fields from ObjCMethodDecl and ObjCContainerDecl into DeclContext This patch follows https://reviews.llvm.org/D49729, https://reviews.l

[PATCH] D50055: Update the coding standard about NFC changes and whitespace

2018-08-01 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: docs/DeveloperPolicy.rst:395-408 +Commits with No Functional Change +- + +It may be permissible to commit changes without prior review when the changes +have no semantic impact on the code i

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: test/CodeGenCXX/block-byref-cxx-objc.cpp:36 +// CHECK: call void @_Block_object_dispose( + +int testB() { ahatanak wrote: > Should the second call to @_Block_object_dispose be an invoke if the > destructor can throw? T

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 158640. ahatanak marked an inline comment as done. ahatanak added a comment. Use llvm::sort. Repository: rC Clang https://reviews.llvm.org/D50152 Files: lib/CodeGen/CGBlocks.cpp lib/CodeGen/CGNonTrivialStruct.cpp lib/CodeGen/CodeGenFunction.cpp

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur updated this revision to Diff 158639. Meinersbur marked an inline comment as done. Meinersbur added a comment. - Remove TODOs about the attribute order Repository: rC Clang https://reviews.llvm.org/D48100 Files: include/clang/Sema/ParsedAttr.h lib/AST/ItaniumMangle.cpp lib/P

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur marked an inline comment as done. Meinersbur added inline comments. Comment at: test/Sema/attr-ownership.c:22 void f15(int, int) - __attribute__((ownership_returns(foo, 1))) // expected-note {{declared with index 1 here}} - __attribute__((ownership_returns(foo, 2)

Re: r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-08-01 Thread Roman Lebedev via cfe-commits
r338640 On Wed, Aug 1, 2018 at 8:38 PM, Roman Lebedev wrote: > On Wed, Aug 1, 2018 at 8:36 PM, Richard Smith wrote: >> On Tue, 31 Jul 2018, 23:06 Roman Lebedev via cfe-commits, >> wrote: >>> >>> Author: lebedevri >>> Date: Tue Jul 31 23:06:16 2018 >>> New Revision: 338489 >>> >>> URL: http://ll

r338640 - [NFC][CodeGenCXX] Use -emit-llvm-only instead of -emit-llvm and ignoring it.

2018-08-01 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Aug 1 14:20:58 2018 New Revision: 338640 URL: http://llvm.org/viewvc/llvm-project?rev=338640&view=rev Log: [NFC][CodeGenCXX] Use -emit-llvm-only instead of -emit-llvm and ignoring it. As pointed out by Richard Smith in post-review of r338489. Modified: cfe/trunk/

[PATCH] D49733: [AST][3/4] Move the bit-fields from BlockDecl, LinkageSpecDecl and OMPDeclareReductionDecl into DeclContext

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338639: [AST][3/4] Move the bit-fields from BlockDecl, LinkageSpecDecl and… (authored by erichkeane, committed by ). Repository: rC Clang https://reviews.llvm.org/D49733 Files: include/clang/AST/Dec

r338639 - [AST][3/4] Move the bit-fields from BlockDecl, LinkageSpecDecl and OMPDeclareReductionDecl into DeclContext

2018-08-01 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed Aug 1 14:16:54 2018 New Revision: 338639 URL: http://llvm.org/viewvc/llvm-project?rev=338639&view=rev Log: [AST][3/4] Move the bit-fields from BlockDecl, LinkageSpecDecl and OMPDeclareReductionDecl into DeclContext This patch follows https://reviews.llvm.org/D49729

[PATCH] D50055: Update the coding standard about NFC changes and whitespace

2018-08-01 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added inline comments. Comment at: docs/CodingStandards.rst:512 +Do not commit changes that include trailing whitespace. Some common editors will +automatically remove trailing whitespace when saving a file which causes This statement is confusing (mos

[PATCH] D49732: [AST][2/4] Move the bit-fields from FunctionDecl and CXXConstructorDecl into DeclContext

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338636: [AST][2/4] Move the bit-fields from FunctionDecl and CXXConstructorDecl into… (authored by erichkeane, committed by ). Repository: rC Clang https://reviews.llvm.org/D49732 Files: include/cla

r338636 - [AST][2/4] Move the bit-fields from FunctionDecl and CXXConstructorDecl into DeclContext

2018-08-01 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed Aug 1 14:02:40 2018 New Revision: 338636 URL: http://llvm.org/viewvc/llvm-project?rev=338636&view=rev Log: [AST][2/4] Move the bit-fields from FunctionDecl and CXXConstructorDecl into DeclContext This patch follows https://reviews.llvm.org/D49729 and is followed by

[PATCH] D48903: [VirtualFileSystem] InMemoryFileSystem::status: Return a Status with the requested name

2018-08-01 Thread Simon Marchi via Phabricator via cfe-commits
simark updated this revision to Diff 158625. simark added a comment. Add -Wno-nonportable-include-path to test/PCH/case-insensitive-include.c Repository: rC Clang https://reviews.llvm.org/D48903 Files: lib/Basic/FileManager.cpp lib/Basic/VirtualFileSystem.cpp test/PCH/case-insensitive-

[PATCH] D49729: [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338630: [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into… (authored by erichkeane, committed by ). Changed prior to commit: https://reviews.llvm.org/D49729?vs=158498&id=158624#t

r338630 - [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext

2018-08-01 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed Aug 1 13:48:16 2018 New Revision: 338630 URL: http://llvm.org/viewvc/llvm-project?rev=338630&view=rev Log: [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext DeclContext has a little less than 8 bytes free due to the alignment requ

[PATCH] D50055: Update the coding standard about NFC changes and whitespace

2018-08-01 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: docs/DeveloperPolicy.rst:395-408 +Commits with No Functional Change +- + +It may be permissible to commit changes without prior review when the changes +have no semantic impact on the code if the cha

r338627 - [test] Fix %hmaptool path for standalone builds

2018-08-01 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Aug 1 13:38:22 2018 New Revision: 338627 URL: http://llvm.org/viewvc/llvm-project?rev=338627&view=rev Log: [test] Fix %hmaptool path for standalone builds Fix %hmaptool path to refer to clang_tools_dir instead of llvm_tools_dir, in order to fix standalone builds. The to

[PATCH] D50156: [test] Fix %hmaptool path for standalone builds

2018-08-01 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338627: [test] Fix %hmaptool path for standalone builds (authored by mgorny, committed by ). Repository: rC Clang https://reviews.llvm.org/D50156 Files: test/lit.cfg.py Index: test/lit.cfg.py

[PATCH] D50104: [OpenCL] Always emit alloca in entry block for enqueue_kernel builtin

2018-08-01 Thread Scott Linder via Phabricator via cfe-commits
scott.linder updated this revision to Diff 158618. scott.linder added a comment. Update test https://reviews.llvm.org/D50104 Files: lib/CodeGen/CGBuiltin.cpp test/CodeGenOpenCL/cl20-device-side-enqueue.cl test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl Index: test/CodeGenOpenCL/enqu

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-01 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone updated this revision to Diff 158615. Quuxplusone added a comment. clang-format. Repository: rC Clang https://reviews.llvm.org/D50119 Files: compiler-explorer-llvm-commit.sh docs/LanguageExtensions.rst include/clang/AST/DeclCXX.h include/clang/Basic/Attr.td include/clan

[PATCH] D50156: [test] Fix %hmaptool path for standalone builds

2018-08-01 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. lg, thanks Repository: rC Clang https://reviews.llvm.org/D50156 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: test/Sema/attr-ownership.c:22 void f15(int, int) - __attribute__((ownership_returns(foo, 1))) // expected-note {{declared with index 1 here}} - __attribute__((ownership_returns(foo, 2))); // expected-error {{'ownership_returns'

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-01 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2942 + "not %select{move-constructible|destructible}2" + >; + > Might be useful to add a note explaining why the type isn't trivially > relocatable instead of the general

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-01 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone updated this revision to Diff 158613. Quuxplusone added a comment. Address feedback from @Rakete. Fix wrong ordering of 'class|struct|...' in the diagnostic. Add `union` test cases. Correctly drop the attribute whenever it is diagnosed as inapplicable. Repository: rC Clang h

[PATCH] D50156: [test] Fix %hmaptool path for standalone builds

2018-08-01 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. mgorny added reviewers: bkramer, bruno. Fix %hmaptool path to refer to clang_tools_dir instead of llvm_tools_dir, in order to fix standalone builds. The tool is built as part of clang, so it won't be found in installed LLVM tools. Repository: rC Clang https://re

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur added a comment. I am unsure how to proceed. Commit since already accepted? Wait for reconfirmation? Open new differential? Repository: rC Clang https://reviews.llvm.org/D48100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur reopened this revision. Meinersbur added a comment. This revision is now accepted and ready to land. Herald added a subscriber: jrtc27. Reopen after revert (and to be able to update the diff) Repository: rC Clang https://reviews.llvm.org/D48100 __

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-08-01 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur updated this revision to Diff 158610. Meinersbur added a comment. Rebase after de-listifying in r336945 Repository: rC Clang https://reviews.llvm.org/D48100 Files: include/clang/Sema/ParsedAttr.h lib/AST/ItaniumMangle.cpp lib/Parse/ParseDeclCXX.cpp lib/Parse/ParseObjc.cpp

[PATCH] D49403: More aggressively complete RecordTypes with Function Pointers

2018-08-01 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. LLVM is sometimes confused by bitcasts of function pointers, but that's just a weird exception to the basic rule that pointer element types aren't supposed to actually matter in LLVM IR. There's a (stalled, unfortunately) effort to remove pointer element types from IR

Re: [clang-tools-extra] r338518 - [clangd] Receive compilationDatabasePath in 'initialize' request

2018-08-01 Thread Alex L via cfe-commits
On 1 August 2018 at 11:21, Simon Marchi wrote: > On 2018-08-01 01:30 PM, Alex L wrote: > > Is there a particular reason why this commit didn't have a corresponding > test included? > > Cheers, > > Alex > > Back when we made the corresponding change in "onChangeConfiguration", > there was no > str

[PATCH] D50101: [asan] Update a vector's storage annotation during destruction.

2018-08-01 Thread Ben via Phabricator via cfe-commits
bobsayshilol added a comment. Thanks! I don't have write access to svn so I can't commit the patch myself, but assuming that I've read the docs correctly if anyone is able to take it I'd be grateful. Repository: rCXX libc++ https://reviews.llvm.org/D50101

[PATCH] D50154: [clangd] capitalize diagnostic messages if '-capitialize-diagnostic-text' is provided

2018-08-01 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added reviewers: ilya-biryukov, ioeric, hokein, jkorous. Herald added subscribers: dexonsmith, MaskRay. This patch adds support for diagnostic message capitalization to Clangd. This is enabled when '-capitialize-diagnostic-text' is provided to Clangd. R

[PATCH] D48903: [VirtualFileSystem] InMemoryFileSystem::status: Return a Status with the requested name

2018-08-01 Thread Eric Niebler via Phabricator via cfe-commits
eric_niebler added a comment. > It seems to me like the warning is valid, even though we use precompiled > headers. Agreed. Repository: rC Clang https://reviews.llvm.org/D48903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:1593 + // Sort the captures by offset. + std::sort(ManagedCaptures.begin(), ManagedCaptures.end()); } Please use llvm::sort instead of std::sort. See https://llvm.org/docs/CodingStandards.html

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: test/CodeGenCXX/block-byref-cxx-objc.cpp:36 +// CHECK: call void @_Block_object_dispose( + +int testB() { Should the second call to @_Block_object_dispose be an invoke if the destructor can throw? The FIXME in CodeGenF

[PATCH] D50152: [CodeGen] Merge equivalent block copy/helper functions

2018-08-01 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rjmccall, arphaman. Herald added subscribers: dexonsmith, mgrang. Currently, clang generates different copy or dispose helper functions for each block literal on the stack if the block has the possibility of being copied to the heap. This

[PATCH] D49438: [analyzer][UninitializedObjectChecker] New flag to turn off dereferencing

2018-08-01 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. @Szelethus Hi, do you plan to finish this patch soon-ish? I would like to evaluate it on a few codebases, but the pointer chasing is currently way too fragile / generates too many FPs. Repository: rC Clang https://reviews.llvm.org/D49438

[PATCH] D49403: More aggressively complete RecordTypes with Function Pointers

2018-08-01 Thread Andy Kaylor via Phabricator via cfe-commits
andrew.w.kaylor added a comment. I've talked to Olga about this, and I think we have a way to handle the problem she was working on without this change. However, I think this change is worth considering anyway. The test case shows an example where clang is clearly not producing the output it i

Re: [PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-08-01 Thread Arnaud Coomans via cfe-commits
Thanks for the review. I’ll update when I’m back from vacation Arnaud > On Jul 30, 2018, at 6:09 AM, Jacek Olesiak via Phabricator > wrote: > > jolesiak added a comment. > > In https://reviews.llvm.org/D49580#1179924, @djasper wrote: > >> Ok, so IIUC, understanding that @end effective ends a

Re: [clang-tools-extra] r338518 - [clangd] Receive compilationDatabasePath in 'initialize' request

2018-08-01 Thread Simon Marchi via cfe-commits
On 2018-08-01 01:30 PM, Alex L wrote: > Is there a particular reason why this commit didn't have a corresponding test > included? > Cheers, > Alex Back when we made the corresponding change in "onChangeConfiguration", there was no straightforward way to make a lit test for it: https://reviews.ll

Re: [clang-tools-extra] r338518 - [clangd] Receive compilationDatabasePath in 'initialize' request

2018-08-01 Thread Simon Marchi via cfe-commits
On 2018-08-01 01:30 PM, Alex L wrote: > Is there a particular reason why this commit didn't have a corresponding test > included? > Cheers, > Alex Back when we made the corresponding change in "onChangeConfiguration", there was no straightforward way to make a lit test for it: https://reviews.l

[PATCH] D50147: clang-format: support external styles

2018-08-01 Thread Arnaud Coomans via Phabricator via cfe-commits
acoomans added a comment. Doesn’t clang-format support project-based //.clang-format// or //_clang-format//? How do they play with this diff? Repository: rC Clang https://reviews.llvm.org/D50147 ___ cfe-commits mailing list cfe-commits@lists.llv

[PATCH] D50112: [Android] Increase default new alignment for Android

2018-08-01 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338603: [Android] Increase default new alignment for Android (authored by pirama, committed by ). Changed prior to commit: https://reviews.llvm.org/D50112?vs=158402&id=158574#toc Repository: rC Clang

r338603 - [Android] Increase default new alignment for Android

2018-08-01 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Wed Aug 1 10:55:34 2018 New Revision: 338603 URL: http://llvm.org/viewvc/llvm-project?rev=338603&view=rev Log: [Android] Increase default new alignment for Android Summary: Android's memory allocators also guarantee 8-byte alignment for 32-bit architectures and 16-byte align

[PATCH] D48903: [VirtualFileSystem] InMemoryFileSystem::status: Return a Status with the requested name

2018-08-01 Thread Simon Marchi via Phabricator via cfe-commits
simark added a subscriber: eric_niebler. simark added a comment. @eric_niebler, question for you: This patch causes clang to emit a `-Wnonportable-include-path` warning where it did not before. It affects the following test on Windows: https://github.com/llvm-mirror/clang/blob/master/test/PCH/c

Re: r338455 - [constexpr] Support for constant evaluation of __builtin_memcpy and

2018-08-01 Thread Hans Wennborg via cfe-commits
We hit this in Chromium too, see crbug.com/869824 I've reverted in r338602 On Wed, Aug 1, 2018 at 5:26 PM, Benjamin Kramer via cfe-commits wrote: > It's pretty easy to make this crash > > $ cat memcpy.c > void foo() { > int a[1], b; > memcpy((char*)a, (const char*)&b, (unsigned long)4); > }

r338602 - Revert r338455 "[constexpr] Support for constant evaluation of __builtin_memcpy and __builtin_memmove (in non-type-punning cases)."

2018-08-01 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 1 10:51:23 2018 New Revision: 338602 URL: http://llvm.org/viewvc/llvm-project?rev=338602&view=rev Log: Revert r338455 "[constexpr] Support for constant evaluation of __builtin_memcpy and __builtin_memmove (in non-type-punning cases)." It caused asserts during Chromium

[PATCH] D49729: [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext

2018-08-01 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. LGTM! Repository: rC Clang https://reviews.llvm.org/D49729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49729: [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext

2018-08-01 Thread Bruno Ricci via Phabricator via cfe-commits
bricci added a comment. @erichkeane do you have any additional comments regarding this set of patches ? I retested them on top of trunk and did not find any problem. Repository: rC Clang https://reviews.llvm.org/D49729 ___ cfe-commits mailing lis

[clang-tools-extra] r338597 - [clangd] allow clients to control the compilation database by passing in

2018-08-01 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 1 10:39:29 2018 New Revision: 338597 URL: http://llvm.org/viewvc/llvm-project?rev=338597&view=rev Log: [clangd] allow clients to control the compilation database by passing in compilationDatabaseChanges in the 'workspace/didChangeConfiguration' request This commit

[PATCH] D49758: [clangd] allow clients to pass in compilationDatabaseChanges in the 'workspace/didChangeConfiguration' request

2018-08-01 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338597: [clangd] allow clients to control the compilation database by passing in (authored by arphaman, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.

Re: r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-08-01 Thread Roman Lebedev via cfe-commits
On Wed, Aug 1, 2018 at 8:36 PM, Richard Smith wrote: > On Tue, 31 Jul 2018, 23:06 Roman Lebedev via cfe-commits, > wrote: >> >> Author: lebedevri >> Date: Tue Jul 31 23:06:16 2018 >> New Revision: 338489 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=338489&view=rev >> Log: >> [AST] CastExpr:

Re: r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-08-01 Thread Richard Smith via cfe-commits
On Tue, 31 Jul 2018, 23:06 Roman Lebedev via cfe-commits, < cfe-commits@lists.llvm.org> wrote: > Author: lebedevri > Date: Tue Jul 31 23:06:16 2018 > New Revision: 338489 > > URL: http://llvm.org/viewvc/llvm-project?rev=338489&view=rev > Log: > [AST] CastExpr: BasePathSize is not large enough. > >

Re: [clang-tools-extra] r338518 - [clangd] Receive compilationDatabasePath in 'initialize' request

2018-08-01 Thread Alex L via cfe-commits
Is there a particular reason why this commit didn't have a corresponding test included? Cheers, Alex On 1 August 2018 at 04:28, Simon Marchi via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: simark > Date: Wed Aug 1 04:28:49 2018 > New Revision: 338518 > > URL: http://llvm.org/viewv

[PATCH] D49771: CodeGen: use non-zero memset when possible for automatic variables

2018-08-01 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. There are two different considerations here: (1) Create less target code (2) Create less IR If this code can significantly reduce the amount of IR, it can be useful in general. That's why the existing memset logic is helpful. Repository: rL LLVM https://reviews.llvm.o

[PATCH] D50104: [OpenCL] Always emit alloca in entry block for enqueue_kernel builtin

2018-08-01 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh added a comment. You'll probably also need to update `test/CodeGenOpenCL/cl20-device-side-enqueue.cl`; please verify with make/ninja `check-clang`. https://reviews.llvm.org/D50104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-01 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added a comment. - There's a bug in your implementation: struct X { X &operator=(X &&); }; static_assert(__is_trivially_relocatable(X)); // oops, fires! `X` has a move constructor and a destructor, so it is trivially relocatable. - Please run your code through clang-format.

  1   2   >