[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84440. EricWF marked 2 inline comments as done. EricWF added a comment. - Address inline comments. https://reviews.llvm.org/D28725 Files: CMakeLists.txt lib/CMakeLists.txt test/CMakeLists.txt test/libcxx/test/config.py test/lit.site.cfg.in test/s

[libcxx] r292006 - [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 01:54:39 2017 New Revision: 292006 URL: http://llvm.org/viewvc/llvm-project?rev=292006&view=rev Log: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode Summary: This patch allows libc++ to be built against the debug MSVC runtimes instead of

r292007 - Add LLVMOption to clang-interpreter, corresponding to r291938.

2017-01-14 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Sat Jan 14 02:54:05 2017 New Revision: 292007 URL: http://llvm.org/viewvc/llvm-project?rev=292007&view=rev Log: Add LLVMOption to clang-interpreter, corresponding to r291938. Modified: cfe/trunk/examples/clang-interpreter/CMakeLists.txt Modified: cfe/trunk/examples/clan

[PATCH] D28727: Add -fstrict-vtable-pointers to UserManual

2017-01-14 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek created this revision. Prazek added a reviewer: hans. Prazek added a subscriber: cfe-commits. It would be good to merge it to 4.0 branch. https://reviews.llvm.org/D28727 Files: docs/UsersManual.rst Index: docs/UsersManual.rst ==

[libcxx] r292010 - Fix copy-paste errors in r292001

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 04:22:21 2017 New Revision: 292010 URL: http://llvm.org/viewvc/llvm-project?rev=292010&view=rev Log: Fix copy-paste errors in r292001 Modified: libcxx/trunk/cmake/Modules/HandleLibcxxFlags.cmake Modified: libcxx/trunk/cmake/Modules/HandleLibcxxFlags.cmake URL:

[libcxx] r292011 - Fix Windows try_lock implementation

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 04:27:12 2017 New Revision: 292011 URL: http://llvm.org/viewvc/llvm-project?rev=292011&view=rev Log: Fix Windows try_lock implementation Modified: libcxx/trunk/include/__threading_support libcxx/trunk/src/mutex.cpp libcxx/trunk/test/libcxx/test/config.p

[libcxx] r292012 - Mark test as UNSUPPORTED on Windows since it hangs forever

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 04:31:43 2017 New Revision: 292012 URL: http://llvm.org/viewvc/llvm-project?rev=292012&view=rev Log: Mark test as UNSUPPORTED on Windows since it hangs forever Modified: libcxx/trunk/test/std/utilities/variant/variant.visit/visit.pass.cpp Modified: libcxx/trun

[PATCH] D28334: [clang-tidy] Add -extra-arg and -extra-arg-before to run-clang-tidy.py

2017-01-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/tool/run-clang-tidy.py:80 + for arg in extra_arg: + start.append('-extra-arg=%s' % arg[0]) + for arg in extra_arg_before: Why arg[0] and not just arg? https://reviews.llvm.org/D28334 ___

[PATCH] D28728: [libc++] Introduce _LIBCPP_EXTERN_VIS to fix __libcpp_debug_function link errors

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added reviewers: smeenai, compnerd. EricWF added a subscriber: cfe-commits. On Windows tests that use `_LIBCPP_ASSERT` fail to link because the assertion handler function isn't correctly exported from the libc++ dylib. This patch fixes the dll import/export i

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. Almost LGTM. Just a couple of inline comments left. Thanks for working on this! Comment at: libcxx/include/memory:3691 + && __has_builtin(__at

[libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-14 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Sat Jan 14 05:35:15 2017 New Revision: 292013 URL: http://llvm.org/viewvc/llvm-project?rev=292013&view=rev Log: Fix last_write_time tests for filesystems that don't support negative and very large times Seems to be the case for NFS. Original patch by Eric Fiselier! Differ

[PATCH] D22452: [libcxx] Fix last_write_time tests for filesystems that don't support negative and very large times.

2017-01-14 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292013: Fix last_write_time tests for filesystems that don't support negative and very… (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D22452?vs=82803&id=84445#toc Repository

r292015 - fix a few typo in the doc but also in the clang messages

2017-01-14 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Sat Jan 14 05:41:45 2017 New Revision: 292015 URL: http://llvm.org/viewvc/llvm-project?rev=292015&view=rev Log: fix a few typo in the doc but also in the clang messages Modified: cfe/trunk/docs/ControlFlowIntegrityDesign.rst cfe/trunk/docs/UsersManual.rst cfe/t

Re: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-14 Thread Hahnfeld, Jonas via cfe-commits
Hi Hans, can this be merged for 4.0? Eric suggested this in https://reviews.llvm .org/D22452 so I think he should be fine. Thanks, Jonas Am Samstag, den 14.01.2017, 11:35 + schrieb Jonas Hahnfeld via cfe- commits: > Author: hahnfeld > Date: Sat Jan 14 05:35:15 2017 > New Revision: 292013 >

[PATCH] D22452: [libcxx] Fix last_write_time tests for filesystems that don't support negative and very large times.

2017-01-14 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D22452#646165, @EricWF wrote: > Let me know once you've committed it and I'll merge it into the 4.0 branch. I've replied to the commit mail and asked Hans. Repository: rL LLVM https://reviews.llvm.org/D22452 _

r292016 - Update the tests to match the typo fix done in r292015

2017-01-14 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Sat Jan 14 06:00:40 2017 New Revision: 292016 URL: http://llvm.org/viewvc/llvm-project?rev=292016&view=rev Log: Update the tests to match the typo fix done in r292015 Modified: cfe/trunk/test/Sema/enable_if.c cfe/trunk/test/SemaCXX/enable_if.cpp Modified: cfe/trun

[PATCH] D28365: [Driver] Updated for Visual Studio 2017

2017-01-14 Thread Hamza Sood via Phabricator via cfe-commits
hamzasood updated this revision to Diff 84446. hamzasood added a comment. Broke up findVCToolChainPath into a few smaller functions. https://reviews.llvm.org/D28365 Files: include/clang/Basic/DiagnosticDriverKinds.td lib/Driver/MSVCToolChain.cpp lib/Driver/ToolChains.h lib/Driver/Tools.

[PATCH] D28365: [Driver] Updated for Visual Studio 2017

2017-01-14 Thread Hamza Sood via Phabricator via cfe-commits
hamzasood added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:34 + #if 0 +#define USE_VS_SETUP_CONFIG + #endif rnk wrote: > What are the outstanding issues preventing you from enabling this by default? Building on Win32 doesn't imply that you'll

[PATCH] D27850: [libcxx] add missing constexpr to optional::value_or

2017-01-14 Thread S. B. Tam via Phabricator via cfe-commits
cpplearner added a comment. Yes, I do. Thank you. https://reviews.llvm.org/D27850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek created this revision. Prazek added a reviewer: alexfh. Prazek added a subscriber: cfe-commits. Herald added a subscriber: JDevlieghere. https://reviews.llvm.org/D28729 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/Cla

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek updated this revision to Diff 84448. Prazek added a comment. reformat https://reviews.llvm.org/D28729 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/ClangTidyMain.cpp test/clang-tidy/enable-alpha-checks.cpp Index:

Re: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-14 Thread Eric Fiselier via cfe-commits
+1 from me. @Hans am I OK to merge this? On Sat, Jan 14, 2017 at 4:53 AM, Hahnfeld, Jonas < hahnf...@itc.rwth-aachen.de> wrote: > Hi Hans, > > can this be merged for 4.0? Eric suggested this in > https://reviews.llvm.org/D22452 so I think he should be fine. > > Thanks, > Jonas > > Am Samstag, den

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM with a few minor nits, but in the future, please provide some summary of what your patch is going to do rather than leave it en

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a subscriber: ed. dim added a comment. In https://reviews.llvm.org/D28520#646160, @aaron.ballman wrote: > I feel like I must be missing something; why is this disabling rather than > specifying the thread safety behavior? e.g., `__libcpp_mutex_lock()` > specifying that it acquires the

[PATCH] D25314: [libcxxabi] [cmake] Handle missing LIBUNWIND_* directories gracefully

2017-01-14 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. Second ping. https://reviews.llvm.org/D25314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25314: [libcxxabi] [cmake] Handle missing LIBUNWIND_* directories gracefully

2017-01-14 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs accepted this revision. jroelofs added a reviewer: jroelofs. jroelofs added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim updated this revision to Diff 84451. dim added a comment. Something like this might work, maybe. (I haven't yet run the full test suite, as that takes quite a while on my machines.) I did not re-use the `_LIBCPP_THREAD_SAFETY_ANNOTATION` macro from `__mutex_base`, since that is included *a

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim updated this revision to Diff 84452. dim added a comment. Also added capability attributes to the non-pthread versions of `__libcpp_mutex` types. https://reviews.llvm.org/D28520 Files: include/__threading_support Index: include/__threading_support ==

[libcxxabi] r292018 - [cmake] Handle missing LIBUNWIND_* directories gracefully

2017-01-14 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sat Jan 14 11:05:16 2017 New Revision: 292018 URL: http://llvm.org/viewvc/llvm-project?rev=292018&view=rev Log: [cmake] Handle missing LIBUNWIND_* directories gracefully Add LIBUNWIND_* directories to include path only if they were actually found, in order to fix the CMake er

[PATCH] D25314: [libcxxabi] [cmake] Handle missing LIBUNWIND_* directories gracefully

2017-01-14 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292018: [cmake] Handle missing LIBUNWIND_* directories gracefully (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D25314?vs=73770&id=84455#toc Repository: rL LLVM https://rev

[PATCH] D28728: [libc++] Introduce _LIBCPP_EXTERN_VIS to fix __libcpp_debug_function link errors

2017-01-14 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. This will need to be exported on other platforms too when hidden visibility happens :) Is it okay for these to be exported unconditionally, or should their exporting be determined by `_LIBCPP_DEBUG`? This LGTM if it's the former. https://reviews.llvm.org/D28728 ___

[libcxx] r292022 - Fix thread creation on Windows

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 13:11:07 2017 New Revision: 292022 URL: http://llvm.org/viewvc/llvm-project?rev=292022&view=rev Log: Fix thread creation on Windows Modified: libcxx/trunk/include/__threading_support Modified: libcxx/trunk/include/__threading_support URL: http://llvm.org/view

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. I think the real bug here is FreeBSD annotating `pthread_mutex_t`. That's going to break a lot of code that already uses -Wthread-safety. This kind of breakage is the reason libc++ doesn't enable the annotations on `std::mutex` by default. https://reviews.llvm.org/D2852

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. Actually, according to https://svnweb.freebsd.org/base?view=revision&revision=270943 (where the annotations were added), this helped to uncover existing bugs. I don't see why it would interfere with anything; if you ask for -Wthread-safety warnings, you should get them, r

[PATCH] D28670: [ObjC] Disallow vector parameters and return values in Objective-C methods on older X86 targets

2017-01-14 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. Hi Alex, thanks for CCing me! Comment at: include/clang/Basic/DiagnosticSemaKinds.td:1157 +def err_objc_method_unsupported_param_ret_type : Error< + "%0 %select{parameter|return value}1 is unsupported for this target">; + s/ret

[PATCH] D26796: [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-01-14 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I do think that this is an issue. Particularly for Windows targets, which have usually had the different architecture value. https://reviews.llvm.org/D26796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

[PATCH] D28735: Attempt two at fixing threading on Windows

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added a reviewer: compnerd. EricWF added a subscriber: cfe-commits. https://reviews.llvm.org/D28735 Files: include/__threading_support Index: include/__threading_support === --- include/__thre

[libcxx] r292027 - Attempt two at fixing threading on Windows

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 14:19:00 2017 New Revision: 292027 URL: http://llvm.org/viewvc/llvm-project?rev=292027&view=rev Log: Attempt two at fixing threading on Windows Reviewers: compnerd Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28735 Modified: libc

[libcxx] r292028 - Fix demangle.h on Windows

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 14:21:18 2017 New Revision: 292028 URL: http://llvm.org/viewvc/llvm-project?rev=292028&view=rev Log: Fix demangle.h on Windows Modified: libcxx/trunk/test/support/demangle.h Modified: libcxx/trunk/test/support/demangle.h URL: http://llvm.org/viewvc/llvm-proje

[libcxx] r292029 - XFAIL native handle tests

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 14:25:25 2017 New Revision: 292029 URL: http://llvm.org/viewvc/llvm-project?rev=292029&view=rev Log: XFAIL native handle tests Modified: libcxx/trunk/test/libcxx/thread/thread.condition/thread.condition.condvar/native_handle.pass.cpp libcxx/trunk/test/lib

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim updated this revision to Diff 84462. dim added a comment. Remove extraneous parenthesis. https://reviews.llvm.org/D28520 Files: include/__threading_support Index: include/__threading_support === --- include/__threading_supp

[PATCH] D28727: Add -fstrict-vtable-pointers to UserManual

2017-01-14 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Would it be possible to expand on, or give some kind of pointer to, what "strict rules for overwriting polymorphic C++ objects" means? https://reviews.llvm.org/D28727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

r292032 - Fix PR31644 introduced by r287138 and add a regression test.

2017-01-14 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Sat Jan 14 15:12:08 2017 New Revision: 292032 URL: http://llvm.org/viewvc/llvm-project?rev=292032&view=rev Log: Fix PR31644 introduced by r287138 and add a regression test. Thanks Dimitry Andric for the report and fix! Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp

Re: r292032 - Fix PR31644 introduced by r287138 and add a regression test.

2017-01-14 Thread Dimitry Andric via cfe-commits
On 14 Jan 2017, at 22:12, Yaron Keren via cfe-commits wrote: > Author: yrnkrn > Date: Sat Jan 14 15:12:08 2017 > New Revision: 292032 > > URL: http://llvm.org/viewvc/llvm-project?rev=292032&view=rev > Log: > Fix PR31644 introduced by r287138 and add a regression test. > Thanks Dimitry Andric for

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. As discussed with the Static Analyzer maintainers, alpha checkers are completely unsupported and are suitable for very early testing only. We had problems with them routinely, that's

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/ClangTidy.cpp:296 const auto &RegisteredCheckers = - AnalyzerOptions::getRegisteredCheckers(/*IncludeExperimental=*/false); bool AnalyzerChecksEnabled = false; This is the place where a small local c

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D28729#646548, @alexfh wrote: > As discussed with the Static Analyzer maintainers, alpha checkers are > completely unsupported and are suitable for very early testing only. We had > problems with them routinely, that's why I disabled al

[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: test/clang-tidy/modernize-raw-string-literal.cpp:94 +char const *const Concatenated("\"foo\"" + "\"bar\"");

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D28729#646555, @aaron.ballman wrote: > In https://reviews.llvm.org/D28729#646548, @alexfh wrote: > > > As discussed with the Static Analyzer maintainers, alpha checkers are > > completely unsupported and are suitable for very early testing only

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim updated this revision to Diff 84465. dim added a comment. Rebase after recent changes. https://reviews.llvm.org/D28520 Files: include/__threading_support Index: include/__threading_support === --- include/__threading_suppor

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. This breaks on all platforms were pthread_mutex_t isn't annotated. https://reviews.llvm.org/D28520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. In https://reviews.llvm.org/D28520#646564, @EricWF wrote: > This breaks on all platforms were pthread_mutex_t isn't annotated. Hm, sorry about that, I didn't realize. I'm building it on Ubuntu now to see what breaks, and how to fix it. https://reviews.llvm.org/D28520

[PATCH] D28729: [clang-tidy] Add -enable-alpha-checks command

2017-01-14 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. So the problem I got is that every time I want to check if there is already a feature in clang-tidy/static-analyzer that solves my issue, I either have to deal with static-analyzer command line, which is horrible, or I have to modify and recompile the source code. The c

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-14 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. Note that my earlier approach of just disabling -Wthread-safety for those few functions might be easier. This should not cause any trouble for any platforms which don't use annotated pthread functions. https://reviews.llvm.org/D28520 ___

[libcxx] r292038 - Work around python3 bytes vs str in libc++ test config

2017-01-14 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 18:06:02 2017 New Revision: 292038 URL: http://llvm.org/viewvc/llvm-project?rev=292038&view=rev Log: Work around python3 bytes vs str in libc++ test config Modified: libcxx/trunk/test/libcxx/compiler.py Modified: libcxx/trunk/test/libcxx/compiler.py URL: http

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

2017-01-14 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: cfe/trunk/CMakeLists.txt:531 + if(BOOTSTRAP_LLVM_ENABLE_LLD) +add_dependencies(clang-bootstrap-deps lld) + elseif(LLVM_BINUTILS_INCDIR) I come back to this a bit late, sorry, but I'm not sure I unde

[PATCH] D28510: Reinstate CWG1607 restrictions on lambdas appearing inside certain constant-expressions

2017-01-14 Thread Faisal Vali via Phabricator via cfe-commits
faisalv updated this revision to Diff 84476. faisalv added a comment. The updated patch adds two additional enumerators to ExpressionEvaluationContext: ConstantEvaluatedInTemplateArgument and ConstantEvaluatedInFunctionSignature and sets them appropriately (as opposed to our previous approach o

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-01-14 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 84478. enyquist added a comment. Forgot to set "AlignConsecutiveMacros = false" in getLLVMStyle() Repository: rL LLVM https://reviews.llvm.org/D28462 Files: ClangFormatStyleOptions.rst Format/Format.cpp Format/FormatTest.cpp Format/FormatToken.h

[PATCH] D28081: Make GetStyle return Expected instead of FormatStyle

2017-01-14 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added inline comments. Comment at: lib/Format/Format.cpp:424 +llvm::Error make_string_error(const llvm::Twine &Message) { + return llvm::make_error(Message, alexshap wrote: > amaiorano wrote: > > ioeric wrote: > > > Maybe make this `inline`? > > Yes.

r292052 - [code-completion] Fix crash when trying to do postfix completion of instance member inside a static function.

2017-01-14 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Sun Jan 15 00:11:04 2017 New Revision: 292052 URL: http://llvm.org/viewvc/llvm-project?rev=292052&view=rev Log: [code-completion] Fix crash when trying to do postfix completion of instance member inside a static function. Modified: cfe/trunk/lib/Parse/ParseExpr.cpp