[PATCH] D49063: [libclang 1/8] Add support for ObjCObjectType

2018-07-25 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. I'm mostly fine with your set of patches. Let me double check and we can get it in. https://reviews.llvm.org/D49063 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:2582 /// yet; if a cleanup is required for the variable itself, that needs /// to be done externally. +void CodeGenFunction::enterByrefCleanup(CleanupKind Kind, Address Addr, ahatanak wrote: >

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:2582 /// yet; if a cleanup is required for the variable itself, that needs /// to be done externally. +void CodeGenFunction::enterByrefCleanup(CleanupKind Kind, Address Addr, rjmccall wrote: >

[PATCH] D49834: [CMake] Don't generate linker script only when shared library isn't statically linked

2018-07-25 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338006: [CMake] Don't generate linker script only when shared library isn't statically… (authored by phosek, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://rev

[libcxx] r338006 - [CMake] Don't generate linker script only when shared library isn't statically linked

2018-07-25 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jul 25 22:10:24 2018 New Revision: 338006 URL: http://llvm.org/viewvc/llvm-project?rev=338006&view=rev Log: [CMake] Don't generate linker script only when shared library isn't statically linked Since r337668, we support statically linking dependencies only to shared or s

[libcxx] r338005 - Copy LLVM CMake configuration for CMake Policy CMP0068

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 22:08:30 2018 New Revision: 338005 URL: http://llvm.org/viewvc/llvm-project?rev=338005&view=rev Log: Copy LLVM CMake configuration for CMake Policy CMP0068 Modified: libcxx/trunk/CMakeLists.txt Modified: libcxx/trunk/CMakeLists.txt URL: http://llvm.org/viewvc

[PATCH] D49770: [ARM64] [Windows] Follow MS X86_64 C++ ABI when passing structs

2018-07-25 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo accepted this revision. mstorsjo added a comment. LGTM. Should the same tweak also be done for arm/thumb? Repository: rC Clang https://reviews.llvm.org/D49770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[PATCH] D49834: [CMake] Don't generate linker script only when shared library isn't statically linked

2018-07-25 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added reviewers: EricWF, ldionne, mclow.lists. Herald added subscribers: cfe-commits, christof, mgorny. Since r337668, we support statically linking dependencies only to shared or static library. However, that change hasn't updated the check whether to generate

[libcxx] r338002 - Be more consistent about which bool value means an error occurred

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 21:02:06 2018 New Revision: 338002 URL: http://llvm.org/viewvc/llvm-project?rev=338002&view=rev Log: Be more consistent about which bool value means an error occurred Modified: libcxx/trunk/src/experimental/filesystem/operations.cpp Modified: libcxx/trunk/src/

[libcxx] r338001 - Cleanup the last_write_time internals

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 20:57:26 2018 New Revision: 338001 URL: http://llvm.org/viewvc/llvm-project?rev=338001&view=rev Log: Cleanup the last_write_time internals Modified: libcxx/trunk/src/experimental/filesystem/filesystem_common.h libcxx/trunk/src/experimental/filesystem/operat

[PATCH] D49833: [clangd] Receive compilationDatabasePath in 'initialize' request

2018-07-25 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle created this revision. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. That way, as soon as the "initialize" is received by the server, it can start parsing/indexing with a valid compilation database and not have to wait for a an initial 'didCha

[libcxx] r338000 - Correct comment about stat truncating st_mtimespec to seconds

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 20:42:25 2018 New Revision: 338000 URL: http://llvm.org/viewvc/llvm-project?rev=338000&view=rev Log: Correct comment about stat truncating st_mtimespec to seconds Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_wr

[libcxx] r337999 - Fix attribute placement WRT extern C

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 20:36:37 2018 New Revision: 337999 URL: http://llvm.org/viewvc/llvm-project?rev=337999&view=rev Log: Fix attribute placement WRT extern C Modified: libcxx/trunk/src/experimental/filesystem/int128_builtins.cpp Modified: libcxx/trunk/src/experimental/filesystem/

Re: [libcxx] r337960 - [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via cfe-commits
Thank you for the clarification. On Wed, Jul 25, 2018 at 9:16 PM James Y Knight wrote: > As is the case on most modern platforms, the ability to store a high-res > file timestamp is dependent on the filesystem the file is stored on. > > The HFS+ filesystem (used by default before macOS 10.13) st

[libcxx] r337998 - Workaround OS X 10.11 behavior where stat truncates st_mtimespec to seconds.

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 20:28:48 2018 New Revision: 337998 URL: http://llvm.org/viewvc/llvm-project?rev=337998&view=rev Log: Workaround OS X 10.11 behavior where stat truncates st_mtimespec to seconds. Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_wri

Re: [libcxx] r337960 - [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread James Y Knight via cfe-commits
As is the case on most modern platforms, the ability to store a high-res file timestamp is dependent on the filesystem the file is stored on. The HFS+ filesystem (used by default before macOS 10.13) stores timestamps at a 1-second granularity, and APFS (now the default) at a 1 nanosecond granulari

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 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. Thanks, LGTM. Repository: rC Clang https://reviews.llvm.org/D49718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

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

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 157416. NoQ marked 4 inline comments as done. NoQ added a comment. Address comments by editing comments. https://reviews.llvm.org/D49715 Files: include/clang/Analysis/ConstructionContext.h include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h includ

[PATCH] D49536: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. The "Assuming..." diagnostic piece isn't the same as "Taking true/false branch" diagnostic piece. The former indicates that a constraint is added. The latter indicate how the path flows between program points. The absence of "Assuming..." indicates that Z3 didn't need to ma

[PATCH] D49536: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-25 Thread Mikhail Ramalho via Phabricator via cfe-commits
mikhail.ramalho added a comment. > Uhm, dunno, plist/FileCheck tests are annoying. What i usually do to make > sense out of them is update the tested output with the actual output and look > at git diff. From that it's usually obvious what exactly happened (warnings > added, warnings removed, w

[libcxx] r337991 - Add print statements to help debugging

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 18:10:50 2018 New Revision: 337991 URL: http://llvm.org/viewvc/llvm-project?rev=337991&view=rev Log: Add print statements to help debugging Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp Modi

[PATCH] D48436: [analyzer][UninitializedObjectChecker] Fixed a false negative by no longer filtering out certain constructor calls

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Sorry, i'm still lagging with my reviews because there are a lot of them and i have to balance it with doing actual work. I'll hopefully get to this soon. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:681-689 +Optional OtherObj

[PATCH] D49119: [Sema][ObjC] Issue a warning when a method declared in a protocol is non-escaping but the corresponding method in the implementation is escaping.

2018-07-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. In https://reviews.llvm.org/D49119#1176047, @ahatanak wrote: > In https://reviews.llvm.org/D49119#1164285, @vsapsai wrote: > > > Also I had a few ideas for tests when the warning isn't required and it is > > absent. But I'm not sure they are actually valuable. If you are

[PATCH] D49228: [analyzer][UninitializedObjectChecker] Void pointer objects are casted back to their dynmic type in note message

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/cxx-uninitialized-object-ptr-ref.cpp:290 struct IntDynTypedVoidPointerTest1 { - void *vptr; // expected-note{{uninitialized pointee 'this->vptr'}} + void *vptr; // expected-note{{uninitialized pointee 'this->static_cast(vptr

[PATCH] D49536: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D49536#1176128, @mikhail.ramalho wrote: > I getting the following error when analyzing > `test/Analysis/plist-macros.cpp`, usign z3 as constraint manager > (`-analyzer-constraints=z3 -DANALYZER_CM_Z3`): > > /home/mgadelha/llvm/tools/clang/test/

[PATCH] D49536: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-25 Thread Mikhail Ramalho via Phabricator via cfe-commits
mikhail.ramalho added a comment. I getting the following error when analyzing `test/Analysis/plist-macros.cpp`, usign z3 as constraint manager (`-analyzer-constraints=z3 -DANALYZER_CM_Z3`): /home/mgadelha/llvm/tools/clang/test/Analysis/plist-macros.cpp:640:16: error: CHECK-NEXT: expected stri

[PATCH] D49828: [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is undefined)

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCXX337990: [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is… (authored by EricWF, committed by ). Repository: rCXX libc++ https://reviews.llvm.org/D49828 Files: src/experimental

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

2018-07-25 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. @aaron.ballman @rsmith Any more feedback on this patch? Repository: rC Clang https://reviews.llvm.org/D49511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[libcxx] r337990 - [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is undefined)

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 17:34:50 2018 New Revision: 337990 URL: http://llvm.org/viewvc/llvm-project?rev=337990&view=rev Log: [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is undefined) Summary: Using int128_t with UBSAN causes link errors unless compiler-rt is provi

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

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:605 + if (Pos && !Pos->isValid()) { +// If I do not put a tag here, some invalidation tests will fail +static CheckerProgramPointTag Tag("InvalidatedIteratorChecker",

[PATCH] D49828: [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is undefined)

2018-07-25 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Bit of a hack, but I'm ok with it. Repository: rCXX libc++ https://reviews.llvm.org/D49828 ___ cfe-commits mailing list cfe-commits@lists.

[libcxx] r337984 - [libc++] Follow-up to r337968: use an explicit cast as suggested by Eric

2018-07-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jul 25 16:59:54 2018 New Revision: 337984 URL: http://llvm.org/viewvc/llvm-project?rev=337984&view=rev Log: [libc++] Follow-up to r337968: use an explicit cast as suggested by Eric Modified: libcxx/trunk/src/experimental/filesystem/filesystem_common.h Modified: lib

[PATCH] D49828: [libc++] Add hack to allow ubsan to work w/o compiler-rt (__muloti4 is undefined)

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added reviewers: mclow.lists, ldionne, rsmith, jyknight, echristo. Herald added a subscriber: dberris. Using __int128_t with UBSAN causes link errors unless compiler-rt is providing the runtime library. Specifically ubsan generates calls to __muloti4 but libgc

[PATCH] D49770: [ARM64] [Windows] Follow MS X86_64 C++ ABI when passing structs

2018-07-25 Thread Sanjin Sijaric via Phabricator via cfe-commits
ssijaric updated this revision to Diff 157394. ssijaric added a comment. Updated to address Martin's observation. Verified that small structs with default copy constructors and non-trivial destructors are passed in registers on ARM64 Windows. Repository: rC Clang https://reviews.llvm.org/D

[PATCH] D49119: [Sema][ObjC] Issue a warning when a method declared in a protocol is non-escaping but the corresponding method in the implementation is escaping.

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 157398. ahatanak added a comment. Add a test case for an interface conforming to a non-escaping protocol. In https://reviews.llvm.org/D49119#1164285, @vsapsai wrote: > Also I had a few ideas for tests when the warning isn't required and it is > absent. But

[PATCH] D48427: [Analyzer] Iterator Checker Hotfix: Defer deletion of container data until its last iterator is cleaned up

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Yep, that'll do, thanks! Sorry for not keeping up with all the incoming reviews. Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:536 if (!SR.isLiveRegion(Cont.firs

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 157395. ahatanak marked an inline comment as done. ahatanak added a comment. Document the meaning of enterByrefCleanup's parameters. Repository: rC Clang https://reviews.llvm.org/D49718 Files: lib/CodeGen/CGBlocks.cpp lib/CodeGen/CGDecl.cpp lib/Co

[PATCH] D48862: [OpenEmbedded] Fix lib paths for OpenEmbedded targets

2018-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 157391. mgrang added a comment. Rebased patch and fixed unit test on Windows. https://reviews.llvm.org/D48862 Files: lib/Driver/ToolChains/Gnu.cpp lib/Driver/ToolChains/Linux.cpp test/Driver/Inputs/openembedded_aarch64_linux_tree/usr/include/c++/6.3.0

[PATCH] D49526: Updated llvm-proto-fuzzer to execute the compiled code

2018-07-25 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman added inline comments. Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:159 + std::unique_ptr(RTDyldMM)); + builder.setOptLevel(OLvl); + builder.setTargetOptions(InitTargetOptionsFromCodeGenFlags()); emmettneyman wrote: > moreh

[PATCH] D49749: [analyzer] Admit that we can't simplify the newly produced mixed Loc/NonLoc expressions.

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ requested review of this revision. NoQ marked an inline comment as done. NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:1300 + Loc::isLocType(S->getRHS()->getType())) { +SVal V = SVB.makeSymbolVal(S); +Cached[S] =

[PATCH] D49826: [analyzer] NFC: Minor code reuse in simplifySVal().

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet, rnkovacs. Herald added subscribers: cfe-commits, mikhail.ramalho, baloghadamsoftware. Satisfies a review comment in https://reviews.llvm.org/D49749. Repository: rC Clang https://reviews

[PATCH] D49825: [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared

2018-07-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337982: [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared (authored by sbc, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D498

[libcxxabi] r337982 - [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared

2018-07-25 Thread Sam Clegg via cfe-commits
Author: sbc Date: Wed Jul 25 16:13:00 2018 New Revision: 337982 URL: http://llvm.org/viewvc/llvm-project?rev=337982&view=rev Log: [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared Summary: rL337867 introduced two new cmake_dependent_option options: - LIBCXXABI_INSTALL_STATIC_LI

[PATCH] D49526: Updated llvm-proto-fuzzer to execute the compiled code

2018-07-25 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 157388. emmettneyman added a comment. Fixed some things, made code cleaner Repository: rC Clang https://reviews.llvm.org/D49526 Files: clang/tools/clang-fuzzer/fuzzer-initialize/fuzzer_initialize.cpp clang/tools/clang-fuzzer/handle-llvm/CMakeLis

[PATCH] D49526: Updated llvm-proto-fuzzer to execute the compiled code

2018-07-25 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman added inline comments. Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:89 + Builder.Inliner = createFunctionInliningPass(OptLevel, SizeLevel, false); + Builder.LoopVectorize = true; + Builder.populateFunctionPassManager(FPM); more

[PATCH] D49825: [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared

2018-07-25 Thread Petr Hosek via Phabricator via cfe-commits
phosek accepted this revision. phosek added a comment. This revision is now accepted and ready to land. LGTM, thanks! Repository: rCXXA libc++abi https://reviews.llvm.org/D49825 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[PATCH] D49573: [CMake] Option to control whether shared/static library is installed

2018-07-25 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 added a comment. https://reviews.llvm.org/D49825 seems to fix it. Repository: rCXX libc++ https://reviews.llvm.org/D49573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49825: [CMake] Don't use LIBCXXABI_ENABLE_STATIC option before its declared

2018-07-25 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 created this revision. Herald added subscribers: cfe-commits, ldionne, christof, aheejin, mgorny. https://reviews.llvm.org/rL337867 introduced two new cmake_dependent_option options: - LIBCXXABI_INSTALL_STATIC_LIBRARY - LIBCXXABI_INSTALL_SHARED_LIBRARY They depend on LIBCXXABI_ENABLE_STA

[PATCH] D49752: [CMake] Don't install c++abi headers in standalone libc++ build

2018-07-25 Thread Petr Hosek 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 rL337979: [CMake] Don't install c++abi headers in standalone libc++ build (authored by phosek, committed by ). Herald added

[libcxx] r337979 - [CMake] Don't install c++abi headers in standalone libc++ build

2018-07-25 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Jul 25 15:57:39 2018 New Revision: 337979 URL: http://llvm.org/viewvc/llvm-project?rev=337979&view=rev Log: [CMake] Don't install c++abi headers in standalone libc++ build This is a refinement on r337833. Previously we were installing two copies of c++abi headers in libc+

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:2582 /// yet; if a cleanup is required for the variable itself, that needs /// to be done externally. +void CodeGenFunction::enterByrefCleanup(CleanupKind Kind, Address Addr, Please document t

[PATCH] D42019: [Driver] Set default sysroot for Fuchsia if none is specified

2018-07-25 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. In https://reviews.llvm.org/D42019#1162644, @mcgrathr wrote: > Is this still live? Should it be different after all the multiarch stuff? I'm about to revive this and was pondering if maybe we should generalize this to all targets now that the multiarch runtime bit has l

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

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Yup, tests for temporaries are great to have as well. Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:2475-2477 // Check if we are returning freed memory. if (Sym)

r337978 - [ODRHash] Support hashing enums.

2018-07-25 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Wed Jul 25 15:52:05 2018 New Revision: 337978 URL: http://llvm.org/viewvc/llvm-project?rev=337978&view=rev Log: [ODRHash] Support hashing enums. Modified: cfe/trunk/include/clang/AST/Decl.h cfe/trunk/include/clang/AST/ODRHash.h cfe/trunk/include/clang/Basic/Diagno

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-07-25 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 157381. https://reviews.llvm.org/D49722 Files: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp test/Analysis/cstring-syntax.c Index: test/Analysis/cstring-syntax.c === --- test/Analysi

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

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Devin has recently pointed out that we might have as well reordered CFG elements to have return statement kick in after automatic destructors, so that callbacks were called in a different order. I don't see any problems with that solution, but let's stick to the current sol

[PATCH] D49573: [CMake] Option to control whether shared/static library is installed

2018-07-25 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 added a comment. FYI, this broke the WebAssembly waterfall, where the library is no longer being installed: https://wasm-stat.us/builders/linux/builds/34191 There is probably an easy fix, but I thought I'd post here for the record. Repository: rCXX libc++ https://reviews.llvm.org/D49

[PATCH] D47757: [Sema] Produce diagnostics when unavailable aligned allocation/deallocation functions are called

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. ping Repository: rC Clang https://reviews.llvm.org/D47757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49718: [CodeGen][ObjC] Make block copy/dispose helper function exception-safe.

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 157380. ahatanak added a comment. Set the BLOCK_FIELD_IS_WEAK bit of the flag passed to the call to enterByrefCleanup in EmitAutoVarCleanups and fix test case test/CodeGenObjC/blocks.m. Repository: rC Clang https://reviews.llvm.org/D49718 Files: lib

[PATCH] D45015: [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.

2018-07-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: lib/Driver/ToolChains/Darwin.cpp:2027 + isAlignedAllocationUnavailable()) CC1Args.push_back("-faligned-alloc-unavailable"); } Quux

[PATCH] D45712: Diagnose invalid cv-qualifiers for friend decls.

2018-07-25 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Herald added a subscriber: jfb. Ping Repository: rC Clang https://reviews.llvm.org/D45712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r337976 - Work around GCC bug in constexpr function

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 15:21:47 2018 New Revision: 337976 URL: http://llvm.org/viewvc/llvm-project?rev=337976&view=rev Log: Work around GCC bug in constexpr function Modified: libcxx/trunk/test/libcxx/experimental/filesystem/convert_file_time.sh.cpp Modified: libcxx/trunk/test/libc

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

2018-07-25 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. ping https://reviews.llvm.org/D48341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r337974 - Fix GCC build in C++14 w/o c++14 constexpr

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 15:07:36 2018 New Revision: 337974 URL: http://llvm.org/viewvc/llvm-project?rev=337974&view=rev Log: Fix GCC build in C++14 w/o c++14 constexpr Modified: libcxx/trunk/src/experimental/filesystem/filesystem_common.h Modified: libcxx/trunk/src/experimental/files

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

2018-07-25 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs updated this revision to Diff 157375. rnkovacs retitled this revision from "[analyzer][WIP] Detect pointers escaped after return statement execution in MallocChecker" to "[analyzer] Detect pointers escaped after return statement execution in MallocChecker". rnkovacs edited the summary of

[libcxx] r337971 - Remove test which shouldn't have been committed

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 14:58:37 2018 New Revision: 337971 URL: http://llvm.org/viewvc/llvm-project?rev=337971&view=rev Log: Remove test which shouldn't have been committed Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.

[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading

2018-07-25 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. No problem. Thanks for the review! Would be nice if you or @aaron.ballman could commit this, as I don't have commit access. Repository: rC Clang https://reviews.llvm.org/D49355 ___ cfe-commits mailing list cfe-commi

[libcxx] r337970 - Fix failing test under C++14

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 14:53:43 2018 New Revision: 337970 URL: http://llvm.org/viewvc/llvm-project?rev=337970&view=rev Log: Fix failing test under C++14 Modified: libcxx/trunk/src/experimental/filesystem/filesystem_common.h Modified: libcxx/trunk/src/experimental/filesystem/filesyst

[PATCH] D45898: [SemaCXX] Mark destructor as referenced

2018-07-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 157373. ahatanak added a comment. Check if destructors are accessible from InitListChecker's constructor. Add test cases for designated initializer and brace elision. Repository: rC Clang https://reviews.llvm.org/D45898 Files: lib/Sema/SemaInit.cpp

[libcxx] r337968 - [libc++] Follow-up to r337960: specify lambda's return type to avoid

2018-07-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jul 25 14:50:44 2018 New Revision: 337968 URL: http://llvm.org/viewvc/llvm-project?rev=337968&view=rev Log: [libc++] Follow-up to r337960: specify lambda's return type to avoid -Wc++11-narrowing warning on Darwin The internal CI produced the following diagnostic: error:

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:979-1003 +bool ScalarExprEmitter::IsTopCastPartOfExplictCast() { + assert(!CastExprStack.empty()); + // Walk the current stack of CastExprs in reverse order. + // That is, the current CastExpr, which is

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-07-25 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. This has too much duplication with respect to your previous patch, and even Phabricator highlights it in yellow. Repository: rC Clang https://reviews.llvm.org

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

2018-07-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I've not done a full review, but the approach here looks good, thanks! Repository: rC Clang https://reviews.llvm.org/D49729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading

2018-07-25 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley accepted this revision. delesley added a comment. This revision is now accepted and ready to land. Looks good to me. Thanks for the patch, and my apologies for the slow response. (I'm on a different project now, so I'm afraid thread safety doesn't always get the attention from me that

[PATCH] D49770: [ARM64] [Windows] Follow MS X86_64 C++ ABI when passing structs

2018-07-25 Thread Sanjin Sijaric via Phabricator via cfe-commits
ssijaric added a comment. Yes, it looks like the comment for the thumb case is applicable here as well. VC++ on ARM64 passes small structs with a destructor and a default copy constructor in a register, while clang passes them on the stack. I will probably address this in a separate patch.

[PATCH] D49813: [libc++] Make compile with gcc 4.8.5

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF closed this revision. EricWF added a comment. r337962. Thanks. Repository: rCXX libc++ https://reviews.llvm.org/D49813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r337962 - Make compile with gcc 4.8.5

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 14:01:45 2018 New Revision: 337962 URL: http://llvm.org/viewvc/llvm-project?rev=337962&view=rev Log: Make compile with gcc 4.8.5 Patch by Victor Zverovich. This fixes an error when compiling `` with gcc 4.8.5: ``` .../libcxx/src/experimental/filesystem/filesyste

[PATCH] D49813: [libc++] Make compile with gcc 4.8.5

2018-07-25 Thread Victor Zverovich via Phabricator via cfe-commits
vitaut added a comment. @EricWF could you or someone else commit this as I don't have commit access? Thanks. Repository: rCXX libc++ https://reviews.llvm.org/D49813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCXX337960: [libc++] Use __int128_t to represent file_time_type. (authored by EricWF, committed by ). Repository: rCXX libc++ https://reviews.llvm.org/D49774 Files: include/experimental/filesystem s

[libcxx] r337960 - [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jul 25 13:51:49 2018 New Revision: 337960 URL: http://llvm.org/viewvc/llvm-project?rev=337960&view=rev Log: [libc++] Use __int128_t to represent file_time_type. Summary: The ``file_time_type`` time point is used to represent the write times for files. Its job is to act a

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. I'm going to go ahead and commit this now. We can address concerns about the future C++20 spec in follow up commits. https://reviews.llvm.org/D49774 ___

[PATCH] D49766: Fix a crash when an error occurs in Template and the initializer is a nullptr for C++17

2018-07-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. Hi Balaji, I reduced your testcase a bit more, this looks like the can be a crash on valid. Can you use the more minimal version in the testcase? template struct e { e(a) {} }; e c(0); Also: you should add cfe-commits as a subscriber when creatin

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

2018-07-25 Thread Eric Christopher via Phabricator via cfe-commits
echristo added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:933-938 + if (TC.supportsDebugInfoOption(A)) { +Action(); +return true; + } + reportUnsupportedDebugInfoOption(A, Args, D, TC.getTriple()); + return false; I'd probably simpli

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 157349. EricWF added a comment. Update with misc cleanups. https://reviews.llvm.org/D49774 Files: include/experimental/filesystem src/chrono.cpp src/experimental/filesystem/filesystem_common.h src/experimental/filesystem/operations.cpp src/include/

[PATCH] D49813: [libc++] Make compile with gcc 4.8.5

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. Urg. That's an old compiler. But this looks OK to me. Repository: rCXX libc++ https://reviews.llvm.org/D49813 ___ cfe-commits mailing list cfe

[PATCH] D49793: [AArch64] - return address signing

2018-07-25 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added inline comments. Comment at: include/clang/Frontend/CodeGenOptions.h:114 +Partial,// Sign the return address of functions that spill LR +All // Sign the return address of all functions + }; what's the purpose of signing LR i

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

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Yet another great catch! I guess you could write a test with `debug.AnalysisOrder` (by making its `checkEndFunction` callback (that you'll have to define) print different things depending on the re

[PATCH] D49526: Updated llvm-proto-fuzzer to execute the compiled code

2018-07-25 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/fuzzer-initialize/fuzzer_initialize.cpp:44 + + PassRegistry &Registry = *llvm::PassRegistry::getPassRegistry(); + initializeCore(Registry); Unnecessary `llvm::` Comment a

r337957 - [OPENMP] ThreadId in serialized parallel regions is 0.

2018-07-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 25 13:03:01 2018 New Revision: 337957 URL: http://llvm.org/viewvc/llvm-project?rev=337957&view=rev Log: [OPENMP] ThreadId in serialized parallel regions is 0. The first argument for the parallel outlined functions, called as serialized parallel regions, should be a p

[PATCH] D49783: [clangd] Do not rebuild AST if inputs have not changed

2018-07-25 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. Thanks, that's simple and efficient. I'll update https://reviews.llvm.org/D49267 (to call `reparseOpenFiles` once again) once this is merged. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49783 ___ cfe-co

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D49774#1175679, @BillyONeal wrote: > In https://reviews.llvm.org/D49774#1175650, @ldionne wrote: > > > In https://reviews.llvm.org/D49774#1175543, @BillyONeal wrote: > > > > > In https://reviews.llvm.org/D49774#1175131, @mclow.lists wrote: > > >

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal added a comment. In https://reviews.llvm.org/D49774#1175650, @ldionne wrote: > In https://reviews.llvm.org/D49774#1175543, @BillyONeal wrote: > > > In https://reviews.llvm.org/D49774#1175131, @mclow.lists wrote: > > > > > Another problem (that Eric and I discussed last night) is that f

[PATCH] D49656: [analyzer] Add support for more pointer invalidating functions in InnerPointerChecker

2018-07-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. Looks great! Comment at: lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp:192 - if (Call.isCalled(CStrFn) || Call.isCalled(DataFn)) { -SVal RawPtr = Call.getReturnValue(); -if (SymbolRef Sym = RawPtr.getAsSymbol(/*I

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. In https://reviews.llvm.org/D49774#1175650, @ldionne wrote: > In https://reviews.llvm.org/D49774#1175543, @BillyONeal wrote: > > > In https://reviews.llvm.org/D49774#1175131, @mclow.lists wrote: > > > > > Another problem (that Eric and I discussed last night) is that

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

2018-07-25 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs added a comment. I'm not sure how to test this. I'll need it in https://reviews.llvm.org/D49361 when I update it to use the changed `checkEndFunction()` callback, and that will kind of test this too. Repository: rC Clang https://reviews.llvm.org/D49811 ___

[PATCH] D49774: [libc++] Use __int128_t to represent file_time_type.

2018-07-25 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. In https://reviews.llvm.org/D49774#1175543, @BillyONeal wrote: > In https://reviews.llvm.org/D49774#1175131, @mclow.lists wrote: > > > Another problem (that Eric and I discussed last night) is that filesystem > > is part of C++17, and `file_clock` is C++20. So we need a

[libcxx] r337955 - [libc++] Factor duplicate code into function templates

2018-07-25 Thread Louis Dionne via cfe-commits
Author: ldionne Date: Wed Jul 25 12:40:01 2018 New Revision: 337955 URL: http://llvm.org/viewvc/llvm-project?rev=337955&view=rev Log: [libc++] Factor duplicate code into function templates Summary: The exact same code was replicated 11 times for implementing the basic_istream input operators (tho

[PATCH] D49808: [libc++] Factor duplicate code into function templates

2018-07-25 Thread Louis Dionne via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCXX337955: [libc++] Factor duplicate code into function templates (authored by ldionne, committed by ). Changed prior to commit: https://reviews.llvm.org/D49808?vs=157316&id=157340#toc Repository: rCX

r337954 - [analyzer] Update SMT API documentation and methods

2018-07-25 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Wed Jul 25 12:34:48 2018 New Revision: 337954 URL: http://llvm.org/viewvc/llvm-project?rev=337954&view=rev Log: [analyzer] Update SMT API documentation and methods Summary: Update the documentation of all the classes introduced with the new generic SMT API, most of them we

[PATCH] D48753: [libcxx] Use custom allocator's `construct` in C++03 when available.

2018-07-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Ping. https://reviews.llvm.org/D48753 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   >