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

2018-08-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak added a comment. Thanks! https://reviews.llvm.org/D49580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50170: [libcxxabi] Fix test_exception_address_alignment test for ARM

2018-08-02 Thread Yvan Roux via Phabricator via cfe-commits
yroux created this revision. yroux added reviewers: mclow.lists, hans. Herald added a reviewer: EricWF. Herald added a reviewer: javed.absar. Herald added subscribers: ldionne, chrib, kristof.beyls. Check _LIBCXXABI_ARM_EHABI macro instead of libunwind version Repository: rCXXA libc++abi http

[PATCH] D50171: [python] [tests] Update test_code_completion

2018-08-02 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. mgorny added reviewers: ilya-biryukov, arphaman, bkramer, gribozavr. Update expected completions to match output generated by clang-7.0. Disclaimer: I have no clue if the results are correct. I'm kinda wondering why the '::' part is no longer included immediately.

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

2018-08-02 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh accepted this revision. svenvh added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D50104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

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

2018-08-02 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 158701. baloghadamsoftware added a comment. Copying iterator position for the `this` pointer of C++ operators from the caller's context to the callee's context is no longer needed. https://reviews.llvm.org/D32747 Files: include/clang/StaticAna

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

2018-08-02 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. Yes, it is working now without the hack. https://reviews.llvm.org/D32747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r338552 - Add REQUIRES: native to a test that assumes it

2018-08-02 Thread Hans Wennborg via cfe-commits
Merged to 6.0 in r338687. On Wed, Aug 1, 2018 at 3:41 PM, Filipe Cabecinhas via cfe-commits wrote: > Author: filcab > Date: Wed Aug 1 06:41:11 2018 > New Revision: 338552 > > URL: http://llvm.org/viewvc/llvm-project?rev=338552&view=rev > Log: > Add REQUIRES: native to a test that assumes it > >

Re: r338553 - Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true

2018-08-02 Thread Hans Wennborg via cfe-commits
Merged to 7.0 in r338688. On Wed, Aug 1, 2018 at 3:41 PM, Filipe Cabecinhas via cfe-commits wrote: > Author: filcab > Date: Wed Aug 1 06:41:42 2018 > New Revision: 338553 > > URL: http://llvm.org/viewvc/llvm-project?rev=338553&view=rev > Log: > Use a dummy target so the test passes when default

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

2018-08-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Is it possible for clangd to always capitalize diagnostics if `-capitialize-diagnostic-text` is found in the compile comand? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50154 ___ cfe-commits mailing list

[clang-tools-extra] r338696 - Replace hardcoded format styles in a few tools with the default style in libFormat.

2018-08-02 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Aug 2 03:30:56 2018 New Revision: 338696 URL: http://llvm.org/viewvc/llvm-project?rev=338696&view=rev Log: Replace hardcoded format styles in a few tools with the default style in libFormat. Modified: clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp

[PATCH] D50175: [AArch64][NFC] better matching of AArch64 target in aarch64-cpus.c tests

2018-08-02 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer created this revision. SjoerdMeijer added reviewers: olista01, ab. Herald added a reviewer: javed.absar. Herald added a subscriber: kristof.beyls. In https://reviews.llvm.org/D50068, @ab noticed that it would be better to match aarch64-{{.*}} for tests that use "-target aarch64_be -m

[PATCH] D48341: [clang-doc] Refactoring mapper to map by scope

2018-08-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/test/clang-doc/bc-linkage.cpp:106 +// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT:blob data = 'InnerClass' jul

[PATCH] D50177: clang-format: fix a crash in comment wraps.

2018-08-02 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. mprobst added a reviewer: krasimir. Previously, clang-format would crash if it tried to wrap an overlong single line comment, because two parts of the code inserted a break in the same location. /** heregoesalongcommentwithnospace */ This wasn't previously notice

[PATCH] D50177: clang-format: fix a crash in comment wraps.

2018-08-02 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Great! Thank you! Repository: rC Clang https://reviews.llvm.org/D50177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

r338675 - Test commit access

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 00:28:11 2018 New Revision: 338675 URL: http://llvm.org/viewvc/llvm-project?rev=338675&view=rev Log: Test commit access Modified: cfe/trunk/include/clang-c/Index.h Modified: cfe/trunk/include/clang-c/Index.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/inc

[PATCH] D50179: [AArch64][ARM] Context sensitive meaning of option "crypto"

2018-08-02 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer created this revision. SjoerdMeijer added reviewers: olista01, samparker, john.brawn, ab, t.p.northover. Herald added a reviewer: javed.absar. Herald added subscribers: chrib, kristof.beyls. For AArch64: 1. Crypto means sm4 + sha3 + sha2 + aes for Armv8.4-A and up, 2. and sha2 + aes

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

2018-08-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added subscribers: simark, malaperle. ilya-biryukov added a comment. Maybe we could simply always capitalize the messages? Any cons to capitalizing error messages? @simark, @malaperle, @ioeric, @hokein, WDYT? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50154

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

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 158731. aaron.ballman added a comment. Updating based on review feedback. https://reviews.llvm.org/D50055 Files: docs/CodingStandards.rst docs/DeveloperPolicy.rst docs/Lexicon.rst Index: docs/Lexicon.rst ===

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

2018-08-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D50154#1185545, @ilya-biryukov wrote: > Maybe we could simply always capitalize the messages? Any cons to > capitalizing error messages? > @simark, @malaperle, @ioeric, @hokein, WDYT? Oh sorry, I thought `-capitialize-diagnostic-text` was an

[PATCH] D50177: clang-format: fix a crash in comment wraps.

2018-08-02 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338706: clang-format: fix a crash in comment wraps. (authored by mprobst, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D50177 Files: cfe/trun

r338706 - clang-format: fix a crash in comment wraps.

2018-08-02 Thread Martin Probst via cfe-commits
Author: mprobst Date: Thu Aug 2 04:52:08 2018 New Revision: 338706 URL: http://llvm.org/viewvc/llvm-project?rev=338706&view=rev Log: clang-format: fix a crash in comment wraps. Summary: Previously, clang-format would crash if it tried to wrap an overlong single line comment, because two parts of

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

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman marked 2 inline comments as done. aaron.ballman 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 ca

r338707 - Try to make builtin address space declarations not useless

2018-08-02 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Thu Aug 2 05:14:28 2018 New Revision: 338707 URL: http://llvm.org/viewvc/llvm-project?rev=338707&view=rev Log: Try to make builtin address space declarations not useless The way address space declarations for builtins currently work is nearly useless. The code assumes the ad

[PATCH] D47154: Try to make builtin address space declarations not useless

2018-08-02 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm closed this revision. arsenm added a comment. r338707 https://reviews.llvm.org/D47154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2018-08-02 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. That's fine with me. I'll try it and time will tell if I like it or not :). Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[PATCH] D45719: [clang-Format] Fix indentation of member call after block

2018-08-02 Thread Anders Karlsson via Phabricator via cfe-commits
ank updated this revision to Diff 158737. ank added a comment. fix space in if ( Repository: rC Clang https://reviews.llvm.org/D45719 Files: lib/Format/ContinuationIndenter.cpp lib/Format/FormatToken.h unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp ===

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

2018-08-02 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: > yaxunl wrote: > > rjmccall wrote: > >

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

2018-08-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Capitalizing sounds nice. +1 to just do it without an option. My favorite essay on this is http://neugierig.org/software/blog/2018/07/options.html Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50154 ___

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

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. This change made clang to start trigger failed asserts for me (although they seem to not be reproducible with all compilers building clang), see https://bugs.llvm.org/show_bug.cgi?id=38421 for full description. Repository: rC Clang https://reviews.llvm.org/D49922

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

2018-08-02 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D48100#1185189, @hfinkel wrote: > 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,

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

2018-08-02 Thread Keane, Erich via cfe-commits
Thanks Vlad for the removal! This warning didn’t show up in my environment when committing this, I really need get a newer GCC :/ I suspect the patch author should extract that assert to the bitfield area with the rest. From: David Jones [mailto:d...@google.com] Sent: Wednesday, August 1, 201

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

2018-08-02 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. @bricci : This likely needs to be moved into the bitfield section I think. We had a couple of other static-asserts that moved, so this is likely one of them. Repository: rC Clang https://reviews.llvm.org/D50163 ___ c

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

2018-08-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D50104#1184362, @scott.linder wrote: > Address feedback; I hope I understood correctly what debug info to check for. > > I don't see where in CreateMemTemp and friends EmitLifetimeStart gets called, > and I don't see any lifetime intrinsics in

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

2018-08-02 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. In https://reviews.llvm.org/D50154#1185605, @sammccall wrote: > Capitalizing sounds nice. +1 to just do it without an option. > > My favorite essay on this is > http://neugierig.org/software/blog/2018/07/options.html Agreed. Repository: rCTE Clang Tools Extra https

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

2018-08-02 Thread Nico Weber via cfe-commits
Can't you omit '-o -' now too? On Wed, Aug 1, 2018 at 5:21 PM Roman Lebedev via cfe-commits < cfe-commits@lists.llvm.org> wrote: > 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]

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

2018-08-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Seems we have consensus here. Let's remove the option and just always capitalize the messages. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50154 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[PATCH] D50043: [RISCV] RISC-V using -fuse-init-array by default

2018-08-02 Thread Alex Bradbury via Phabricator via cfe-commits
asb added a comment. Could you add a test for this please? Repository: rC Clang https://reviews.llvm.org/D50043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2018-08-02 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 158749. Szelethus edited the summary of this revision. Szelethus added a comment. Dereferencing is disabled by default. I think there's a great value in this part of the checker, but I do concede to the fact that it still needs to mature even for alpha. I'

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

2018-08-02 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus marked an inline comment as done. Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:715 void ento::registerUninitializedObjectChecker(CheckerManager &Mgr) { auto Chk = Mgr.registerChecker(); Chk->IsPedantic =

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

2018-08-02 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. In https://reviews.llvm.org/D49438#1184688, @george.karpenkov wrote: > @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. What d

[PATCH] D50189: Fully qualify the renamed symbol if the shortened name is ambiguous.

2018-08-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added reviewers: ilya-biryukov, hokein. Herald added a subscriber: cfe-commits. For example, when renaming `a::b::x::foo` to `y::foo` below, replacing `x::foo()` with `y::foo()` can cause ambiguity. In such cases, we simply fully qualify the name with leading `

[PATCH] D50189: Fully qualify the renamed symbol if the shortened name is ambiguous.

2018-08-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 158761. ioeric added a comment. - minor update to comment. Repository: rC Clang https://reviews.llvm.org/D50189 Files: lib/Tooling/Core/Lookup.cpp unittests/Tooling/LookupTest.cpp Index: unittests/Tooling/LookupTest.cpp ==

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

2018-08-02 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 158760. Szelethus added a comment. Forgot `git add` and `-U`. https://reviews.llvm.org/D49438 Files: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp test/Analysis/cxx-uninitialized-object-inheritance.cpp test/Analysis/cxx-uninitialize

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

2018-08-02 Thread Bruno Ricci via Phabricator via cfe-commits
bricci added a comment. The static_assert itself cannot be in the bitfield since the whole point is to avoid including Basic/IdentifierTable.h just for this. I originally put the static_assert in ObjCMethodDecl and everything worked fine when tested with GCC but I then saw just after you commit

[PATCH] D50189: Fully qualify the renamed symbol if the shortened name is ambiguous.

2018-08-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: lib/Tooling/Core/Lookup.cpp:137 + StringRef TrimmedQName = QName.substr(2); + for (auto I = UseNamespaces.begin(), E = UseNamespaces.end(); I != E; ++I) { +const NamespaceDecl *NS = *I; maybe use range-based-

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

2018-08-02 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 158774. ahatanak marked 3 inline comments as done. ahatanak added a comment. Address review comments. Repository: rC Clang https://reviews.llvm.org/D50152 Files: lib/CodeGen/CGBlocks.cpp lib/CodeGen/CGBlocks.h lib/CodeGen/CGNonTrivialStruct.cpp

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

2018-08-02 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:1638 +switch (E.Kind) { +case BlockCaptureEntityKind::CXXRecord: { + Name += "c"; rjmccall wrote: > I forget whether this case has already filtered out trivial > copy-constructors,

r338732 - [analyzer] Make RegionVector use const reference

2018-08-02 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Aug 2 09:29:36 2018 New Revision: 338732 URL: http://llvm.org/viewvc/llvm-project?rev=338732&view=rev Log: [analyzer] Make RegionVector use const reference Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Co

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

2018-08-02 Thread Scott Linder via Phabricator via cfe-commits
scott.linder added a comment. I still don't quite see what you describe; with that change all of the lifetime.end calls pile up just before the enclosing function returns, not after each call to enqueue_kernel. Looking at https://clang.llvm.org/doxygen/EHScopeStack_8h_source.html#l00078 I don't

[PATCH] D50193: Added functionality to suggest FixIts for conversion of '->' to '.' and vice versa.

2018-08-02 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: ilya-biryukov. Herald added subscribers: cfe-commits, arphaman, jkorous, ioeric. Added functionality to suggest FixIts for conversion of '->' to '.' and vice versa. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50193

[PATCH] D50194: LLVM Proto Fuzzer - Run Functions on Suite of Inputs

2018-08-02 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman created this revision. emmettneyman added reviewers: kcc, morehouse. Herald added subscribers: cfe-commits, mgorny. Added corpus of arrays to use as inputs for the functions. Check that the two functions modify the inputted arrays in the same way. Repository: rC Clang https://rev

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

2018-08-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D50104#1185920, @scott.linder wrote: > I still don't quite see what you describe; with that change all of the > lifetime.end calls pile up just before the enclosing function returns, not > after each call to enqueue_kernel. Looking at > https

[PATCH] D48341: [clang-doc] Refactoring mapper to map by scope

2018-08-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett marked 2 inline comments as done. juliehockett added inline comments. Comment at: clang-tools-extra/test/clang-doc/bc-linkage.cpp:106 +// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT:blob data = 'InnerClass' ioeric wrote: > juliehockett w

[PATCH] D50170: [libcxxabi] Fix test_exception_address_alignment test for ARM

2018-08-02 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. That certainly ***looks*** more correct to me. Repository: rCXXA libc++abi https://reviews.llvm.org/D50170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

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

2018-08-02 Thread Richard Smith via cfe-commits
On Thu, 2 Aug 2018, 06:10 Martin Storsjö via Phabricator via cfe-commits, < cfe-commits@lists.llvm.org> wrote: > mstorsjo added a comment. > > This change made clang to start trigger failed asserts for me (although > they seem to not be reproducible with all compilers building clang), see > https:

r338741 - [c-index-test] Use correct executable path to discover resource directory.

2018-08-02 Thread Volodymyr Sapsai via cfe-commits
Author: vsapsai Date: Thu Aug 2 10:29:53 2018 New Revision: 338741 URL: http://llvm.org/viewvc/llvm-project?rev=338741&view=rev Log: [c-index-test] Use correct executable path to discover resource directory. Driver builds resource directory path based on provided executable path. Instead of stri

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

2018-08-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. vsapsai marked an inline comment as done. Closed by commit rL338741: [c-index-test] Use correct executable path to discover resource directory. (authored by vsapsai, committed by ). Herald added a subscriber: llvm-commits.

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

2018-08-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Thanks for the review! Repository: rL LLVM https://reviews.llvm.org/D50160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50194: LLVM Proto Fuzzer - Run Functions on Suite of Inputs

2018-08-02 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:173 + int s = getSize((char *) func_ptr); + memcpy(mem, func_ptr, s); +} Why do we need to copy the function somewhere else? Looks very error-prone and unnecessa

r338743 - __c11_atomic_load's _Atomic can be const

2018-08-02 Thread JF Bastien via cfe-commits
Author: jfb Date: Thu Aug 2 10:35:46 2018 New Revision: 338743 URL: http://llvm.org/viewvc/llvm-project?rev=338743&view=rev Log: __c11_atomic_load's _Atomic can be const Summary: C++11 onwards specs the non-member functions atomic_load and atomic_load_explicit as taking the atomic by const (pot

[PATCH] D47618: __c11_atomic_load's _Atomic can be const

2018-08-02 Thread JF Bastien via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338743: __c11_atomic_load's _Atomic can be const (authored by jfb, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47618 Files: cfe/trunk/lib/S

[libcxxabi] r338747 - [itanium demangler] Support dot suffixes on block invocation functions

2018-08-02 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Aug 2 10:45:01 2018 New Revision: 338747 URL: http://llvm.org/viewvc/llvm-project?rev=338747&view=rev Log: [itanium demangler] Support dot suffixes on block invocation functions rdar://32378759 Modified: libcxxabi/trunk/src/cxa_demangle.cpp libcxxabi/trunk/test/t

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

2018-08-02 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. We could also print something about the ReturnStmt, like source location or pretty print of its expressions so we can check that we picked the right one in case we have multiple. But consider this as an optional task if you have nothin

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

2018-08-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. All this stuff looks great! Please commit. https://reviews.llvm.org/D49361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50194: LLVM Proto Fuzzer - Run Functions on Suite of Inputs

2018-08-02 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman added inline comments. Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:173 + int s = getSize((char *) func_ptr); + memcpy(mem, func_ptr, s); +} morehouse wrote: > Why do we need to copy the function somewhere else? Looks very erro

[PATCH] D50194: LLVM Proto Fuzzer - Run Functions on Suite of Inputs

2018-08-02 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 158800. emmettneyman added a comment. Replaced hardcoded numbers with variables Repository: rC Clang https://reviews.llvm.org/D50194 Files: clang/tools/clang-fuzzer/CMakeLists.txt clang/tools/clang-fuzzer/ExampleClangLLVMProtoFuzzer.cpp clang/

Re: r338259 - [analyzer] Add support for more invalidating functions in InnerPointerChecker.

2018-08-02 Thread Alexander Kornienko via cfe-commits
On Mon, Jul 30, 2018 at 5:44 PM Reka Kovacs via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rkovacs > Date: Mon Jul 30 08:43:45 2018 > New Revision: 338259 > > URL: http://llvm.org/viewvc/llvm-project?rev=338259&view=rev > Log: > [analyzer] Add support for more invalidating function

r338749 - Work around more GCC miscompiles exposed by r338464.

2018-08-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Aug 2 11:12:08 2018 New Revision: 338749 URL: http://llvm.org/viewvc/llvm-project?rev=338749&view=rev Log: Work around more GCC miscompiles exposed by r338464. This is the same fix as in r338478, for another occurrance of the same pattern from r338464. See gcc.gnu.org

r338753 - [analyzer] Forward arguments in registerChecker to avoid accidental copies

2018-08-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Aug 2 11:17:01 2018 New Revision: 338753 URL: http://llvm.org/viewvc/llvm-project?rev=338753&view=rev Log: [analyzer] Forward arguments in registerChecker to avoid accidental copies Differential Revision: https://reviews.llvm.org/D50108 Modified: cfe/trunk

[PATCH] D50194: LLVM Proto Fuzzer - Run Functions on Suite of Inputs

2018-08-02 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:173 + int s = getSize((char *) func_ptr); + memcpy(mem, func_ptr, s); +} emmettneyman wrote: > morehouse wrote: > > Why do we need to copy the function somewhere e

[PATCH] D50179: [AArch64][ARM] Context sensitive meaning of option "crypto"

2018-08-02 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/Driver/ToolChains/Arch/AArch64.cpp:200 + // + // TODO: implement this logic in TargetParser. + Yes, this logic should be in TargetParser, not here. Trying to rewrite the target features afterwards is messy at be

r338754 - AMDGPU: Fix missing declaration of queue ptr builtin

2018-08-02 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Thu Aug 2 11:24:55 2018 New Revision: 338754 URL: http://llvm.org/viewvc/llvm-project?rev=338754&view=rev Log: AMDGPU: Fix missing declaration of queue ptr builtin Modified: cfe/trunk/include/clang/Basic/BuiltinsAMDGPU.def cfe/trunk/test/CodeGenOpenCL/builtins-amdgcn

Re: r338749 - Work around more GCC miscompiles exposed by r338464.

2018-08-02 Thread Martin Storsjö via cfe-commits
Hans, I think this commit should be merged to the 7.0 release branch; the first half of the GCC workaround made it in before the branch happened, but there was another identical case missing. // Martin On Thu, 2 Aug 2018, Martin Storsjo via cfe-commits wrote: Author: mstorsjo Date: Thu Aug

r338756 - [analyzer] Fix tests.

2018-08-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Aug 2 11:41:25 2018 New Revision: 338756 URL: http://llvm.org/viewvc/llvm-project?rev=338756&view=rev Log: [analyzer] Fix tests. Modified: cfe/trunk/test/Analysis/analyzer-config.c cfe/trunk/test/Analysis/analyzer-config.cpp Modified: cfe/trunk/test/An

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

2018-08-02 Thread Martin Storsjö via cfe-commits
On Thu, 2 Aug 2018, Richard Smith via cfe-commits wrote: On Thu, 2 Aug 2018, 06:10 Martin Storsjö via Phabricator via cfe-commits, wrote: mstorsjo added a comment. This change made clang to start trigger failed asserts for me (although they seem to not be reproducible with al

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

2018-08-02 Thread Andy Kaylor via Phabricator via cfe-commits
andrew.w.kaylor added a comment. I hope I'm not coming across as too argumentative here. I don't really have strong feelings about this function pointer type patch and ultimately I see that you are right, but the objections you are raising here would equally apply to what I'm working on with th

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

2018-08-02 Thread Scott Linder via Phabricator via cfe-commits
scott.linder updated this revision to Diff 158816. scott.linder added a comment. Emit lifetime intrinsics for the sizes temp, and update test https://reviews.llvm.org/D50104 Files: lib/CodeGen/CGBuiltin.cpp test/CodeGenOpenCL/cl20-device-side-enqueue.cl test/CodeGenOpenCL/enqueue-kernel-n

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo created this revision. mstorsjo added reviewers: rnk, compnerd, pcc, pirama. Repository: rC Clang https://reviews.llvm.org/D50199 Files: include/clang/Basic/LangOptions.def include/clang/Driver/Options.td lib/Basic/Targets.cpp lib/Driver/ToolChains/Clang.cpp lib/Frontend/Com

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Does this do anything other than -DUNICODE? Maybe just translate it at the driver level and skip the -cc1 flag? Repository: rC Clang https://reviews.llvm.org/D50199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

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

2018-08-02 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone updated this revision to Diff 158822. Quuxplusone marked 20 inline comments as done. Quuxplusone added a comment. Further removal of dead code based on @Rakete's feedback. Repository: rC Clang https://reviews.llvm.org/D50119 Files: docs/LanguageExtensions.rst include/clan

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

2018-08-02 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone 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 Rakete wrote: > What's this file? A mistake? Yeah, it's p

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

2018-08-02 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:6187 +Record->dropAttr(); + } else if (Record->needsImplicitMoveConstructor() && + Record->defaultedMoveConstructorIsDeleted()) { Quuxplusone wrote: > Rakete w

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

2018-08-02 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Hi - sorry about the stalled opaque pointer types effort. For my money - ideally - if someone comes across a bug caused by incorrect pointee types, ideally that would be fixed by adjusting whatever piece of code was depending on that pointee type being correct to not d

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. The attribute itself is looking reasonable aside from some minor nits, but this should not be committed until the clang-tidy functionality is approved (since it has no utility be

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D50199#1186164, @rnk wrote: > Does this do anything other than -DUNICODE? Maybe just translate it at the > driver level and skip the -cc1 flag? Yes, that also works. Initially I looked at where to place that in lib/Driver/ToolChains/MinGW.

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 158827. mstorsjo added a comment. Simplified the patch to just handle the flag within the driver, without making it a flag to cc1. https://reviews.llvm.org/D50199 Files: lib/Driver/ToolChains/Clang.cpp test/Driver/mingw.cpp Index: test/Driver/mingw.

[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/AttrDocs.td:3489 + +``noderef`` is currently only supported for C style pointers and arrays and not usable for +references or Objective-C pointers. I would drop the "C style" and just say it's

[PATCH] D50135: [libunwind] [CMake] Allow building standalone without any llvm-config available

2018-08-02 Thread Petr Hosek via Phabricator via cfe-commits
phosek added inline comments. Comment at: CMakeLists.txt:363 -add_subdirectory(test) +if (EXISTS ${LLVM_CMAKE_PATH}) + add_subdirectory(test) libcxx seems to be using a different condition: `IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test"`, should this be uni

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

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. I am still okay with this, and agree that the ordering issues are a separate thing to tackle. Repository: rC Clang https://reviews.llvm.org/D48100 ___ cfe-commits mailing list

r338766 - Fix assertion failure when emitting code for a merged lambda.

2018-08-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 2 13:30:52 2018 New Revision: 338766 URL: http://llvm.org/viewvc/llvm-project?rev=338766&view=rev Log: Fix assertion failure when emitting code for a merged lambda. Modified: cfe/trunk/lib/AST/DeclCXX.cpp cfe/trunk/test/Modules/merge-lambdas.cpp Modified: cf

[PATCH] D50110: Handle shared release attributes correctly

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/SemaCXX/warn-thread-safety-analysis.cpp:4081-4085 + void unlockExclusive() EXCLUSIVE_UNLOCK_FUNCTION(mu_) { +mu_.Unlock(); + } + + void unlockShared() SHARED_UNLOCK_FUNCTION(mu_) { Nothing calls either

[PATCH] D50135: [libunwind] [CMake] Allow building standalone without any llvm-config available

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added inline comments. Comment at: CMakeLists.txt:363 -add_subdirectory(test) +if (EXISTS ${LLVM_CMAKE_PATH}) + add_subdirectory(test) phosek wrote: > libcxx seems to be using a different condition: `IS_DIRECTORY > "${CMAKE_CURRENT_SOURCE_DIR}/test"`

Re: r338749 - Work around more GCC miscompiles exposed by r338464.

2018-08-02 Thread Richard Smith via cfe-commits
(+Hans) +1 On Thu, 2 Aug 2018 at 11:37, Martin Storsjö via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hans, > > I think this commit should be merged to the 7.0 release branch; the first > half of the GCC workaround made it in before the branch happened, but > there was another identical c

[PATCH] D46822: [RISCV] Add driver for riscv32-unknown-elf baremetal target

2018-08-02 Thread Simon Cook via Phabricator via cfe-commits
simoncook added a comment. It seems the ability to link objects has been broken by this change. As an example from our nightly tests: Executing on host: riscv32-unknown-elf-clang /data/jenkins/workspace/riscv32-llvm-gcc/gcc-tests/gcc/testsuite/gcc.c-torture/execute/20080502-1.c -march=rv32g

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama added a comment. In https://reviews.llvm.org/D50199#1186164, @rnk wrote: > Does this do anything other than -DUNICODE? Maybe just translate it at the > driver level and skip the -cc1 flag? It seems odd to include predefined macros at the driver, which AFAIK is just a bridge to the fron

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

2018-08-02 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. > Dereferencing is disabled by default Great! Thank you! > but I haven't seen the current version of the checker crash due to pointer > chasing. @NoQ saw quite a few crashes during evaluation, right? > This might be a little nit-picking, but I don't think the

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

2018-08-02 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov requested changes to this revision. george.karpenkov added a comment. This revision now requires changes to proceed. Great! The comment should be updated though. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:32 +// `-analyzer-config \

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Charles Davis via Phabricator via cfe-commits
cdavis5x added a comment. Are you sure this shouldn't also define `_UNICODE`? //looks// Hmm... GCC doesn't define it. I wonder if we should anyway. A user who set `-municode` may also be using ``, and thus may want those macros set to their Unicode counterparts. I actually believe this is supp

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

2018-08-02 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:6187 +Record->dropAttr(); + } else if (Record->needsImplicitMoveConstructor() && + Record->defaultedMoveConstructorIsDeleted()) { Rakete wrote: > Quuxplusone w

[PATCH] D50199: [MinGW] Predefine UNICODE if -municode is specified during compilation

2018-08-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D50199#1186282, @cdavis5x wrote: > I actually believe this is supposed to have one other effect: it sets the > entry point to `wmainCRTStartup()`/`wWinMainCRTStartup()`, making the user > entry point `wmain()`/`wWinMain()`, which take wide a

  1   2   >