[PATCH] D36072: [Targets] Move addCygMingDefines into the arch-independent Targets.cpp (NFC)

2017-07-30 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo created this revision. This fixes a dependency inconsistency, where addMinGWDefines in Targets.cpp (used from other architectures than X86) called the addCygMingDefines function in X86.h. This was inconsistently split in SVN r308791 (https://reviews.llvm.org/D35701). https://reviews.

[PATCH] D36070: [coroutines] Evaluate the operand of void `co_return` expressions.

2017-07-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. Comment at: test/CodeGenCoroutines/coro-ret-void.cpp:30 +coro1 f2() { + co_return(void) A{}; +} This seems like an extremely confusing way to format this statement. Maybe move the space left a bit?

[PATCH] D34873: Fix miscompiled 32bit binaries by mingw

2017-07-30 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. Ok, i will make safer solution... https://reviews.llvm.org/D34873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36019: [clang-format] Fix bug with ENAS_DontAlign and empty lines

2017-07-30 Thread Jacob Bandes-Storch via Phabricator via cfe-commits
jtbandes updated this revision to Diff 108863. jtbandes added a comment. - Undo change in argument list https://reviews.llvm.org/D36019 Files: lib/Format/WhitespaceManager.cpp lib/Format/WhitespaceManager.h unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp =

[PATCH] D36019: [clang-format] Fix bug with ENAS_DontAlign and empty lines

2017-07-30 Thread Jacob Bandes-Storch via Phabricator via cfe-commits
jtbandes updated this revision to Diff 108860. jtbandes added a comment. Okay, I think this approach is better: - Rename the version of `appendNewlineText` used for escaped newlines to `appendEscapedNewlineText` to reduce confusability. - If `ENAS_DontAlign`, skip all of the offset calculation l

[PATCH] D36019: [clang-format] Fix bug with ENAS_DontAlign and empty lines

2017-07-30 Thread Jacob Bandes-Storch via Phabricator via cfe-commits
jtbandes added a comment. I can add some clarity but I can't claim to fully understand the whole program flow here yet, so my explanation is probably insufficient. The overflow (underflow? but I think that means something specific to FP) is on line formerly-650: `EscapedNewlineColumn - Offset -

[PATCH] D36019: [clang-format] Fix bug with ENAS_DontAlign and empty lines

2017-07-30 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Could you explain this in more detail? Which subtraction is underflowing? Why can't we just add a ternary expression there to handle the case? https://reviews.llvm.org/D36019 ___ cfe-commits mailing list cfe-commits@lists.l

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Khem Raj via Phabricator via cfe-commits
raj.khem added a comment. @EricWF you are right. I have made the changes accordingly. This patch can be ignored. https://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/__mutex_base:51 #ifndef _LIBCPP_CXX03_LANG -constexpr mutex() = default; +#ifdef __GLIBC__ +constexpr EricWF wrote: > Limiting `constexpr` to GLIBC implementations only is incorrect; you want to > exclu

[PATCH] D36070: [coroutines] Evaluate the operand of void `co_return` expressions.

2017-07-30 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov accepted this revision. GorNishanov added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D36070 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 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. This patch is not OK, since it affects way more that just MUSL libc. Also can you please provide a reduced reproducer as two why `pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER` is

[PATCH] D36070: [coroutines] Evaluate the operand of void `co_return` expressions.

2017-07-30 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Previously Clang incorrectly ignored the expression of a void `co_return`. This patch addresses that bug. I'm not quite sure if I got the code-gen right, but this patch is at least a start. https://reviews.llvm.org/D36070 Files: lib/CodeGen/CGCoroutine.cpp t

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Khem Raj via Phabricator via cfe-commits
raj.khem updated this revision to Diff 108853. raj.khem edited the summary of this revision. Herald added a reviewer: EricWF. https://reviews.llvm.org/D18174 Files: include/__mutex_base Index: include/__mutex_base === --- include

Re: [libcxx] r307357 - cmath: Support clang's -fdelayed-template-parsing

2017-07-30 Thread Shoaib Meenai via cfe-commits
This particular issue isn't clang-specific; it affects MSVC as well, and I believe clang's -fdelayed-template-parsing attempts to model MSVC's behavior. See https://godbolt.org/g/xrbpgX (code in https://reviews.llvm.org/P8012). On 7/6/17, 10:13 PM, "cfe-commits on behalf of Duncan P. N. Exon Smith

[PATCH] D35297: [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @rsmith Should this be considered for the `5.0` release? https://reviews.llvm.org/D35297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r309530 - [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Jul 30 17:24:28 2017 New Revision: 309530 URL: http://llvm.org/viewvc/llvm-project?rev=309530&view=rev Log: [Sema] Fix operator lookup to consider local extern declarations. Summary: Previously Clang was not considering operator declarations that occur at function scope.

[PATCH] D35297: [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D35297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D35297: [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 108845. EricWF added a comment. - Address issues in inline comments. The patch should be ready to go now :-) https://reviews.llvm.org/D35297 Files: lib/Sema/SemaLookup.cpp test/SemaCXX/overloaded-operator.cpp Index: test/SemaCXX/overloaded-operator.cpp

[PATCH] D35297: [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaLookup.cpp:229 assert(!Redeclaration && "cannot do redeclaration operator lookup"); -IDNS = Decl::IDNS_NonMemberOperator; +IDNS = Decl::IDNS_NonMemberOperator | Decl::IDNS_LocalExtern; break; ---

[libcxx] r309528 - Mark LWG 2942 as complete

2017-07-30 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Jul 30 15:28:08 2017 New Revision: 309528 URL: http://llvm.org/viewvc/llvm-project?rev=309528&view=rev Log: Mark LWG 2942 as complete Modified: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/owner_before_shared_ptr.pass

[PATCH] D35297: [Sema] Fix operator lookup to consider local extern declarations.

2017-07-30 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @rsmith Ping. This should be super simple to review. https://reviews.llvm.org/D35297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r309527 - Mark LWG 2961 as complete

2017-07-30 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Jul 30 15:16:30 2017 New Revision: 309527 URL: http://llvm.org/viewvc/llvm-project?rev=309527&view=rev Log: Mark LWG 2961 as complete Modified: libcxx/trunk/www/cxx2a_status.html Modified: libcxx/trunk/www/cxx2a_status.html URL: http://llvm.org/viewvc/llvm-project/l

[PATCH] D35986: [clangd] Add ':' to completion trigger characters.

2017-07-30 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. Looks good! https://reviews.llvm.org/D35986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

r309523 - Also pass -pie back to the linker when linking on OpenBSD.

2017-07-30 Thread Brad Smith via cfe-commits
Author: brad Date: Sun Jul 30 14:13:59 2017 New Revision: 309523 URL: http://llvm.org/viewvc/llvm-project?rev=309523&view=rev Log: Also pass -pie back to the linker when linking on OpenBSD. Modified: cfe/trunk/lib/Driver/ToolChains/OpenBSD.cpp cfe/trunk/test/Driver/openbsd.c Modified: cf

r309522 - Fix a typo.

2017-07-30 Thread Brad Smith via cfe-commits
Author: brad Date: Sun Jul 30 13:33:06 2017 New Revision: 309522 URL: http://llvm.org/viewvc/llvm-project?rev=309522&view=rev Log: Fix a typo. Modified: cfe/trunk/test/Preprocessor/init.c Modified: cfe/trunk/test/Preprocessor/init.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Pr

[libcxxabi] r309520 - [demangler] Fix some bugs in r309340 found by oss-fuzz

2017-07-30 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Sun Jul 30 13:09:55 2017 New Revision: 309520 URL: http://llvm.org/viewvc/llvm-project?rev=309520&view=rev Log: [demangler] Fix some bugs in r309340 found by oss-fuzz Modified: libcxxabi/trunk/src/cxa_demangle.cpp libcxxabi/trunk/test/test_demangle.pass.cpp Modified:

[PATCH] D34182: [analyzer] Performance optimizations for the CloneChecker

2017-07-30 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor updated this revision to Diff 108839. teemperor added a comment. (Fixed diff) https://reviews.llvm.org/D34182 Files: include/clang/Analysis/CloneDetection.h lib/Analysis/CloneDetection.cpp lib/StaticAnalyzer/Checkers/CloneChecker.cpp Index: lib/StaticAnalyzer/Checkers/CloneChec

[PATCH] D34182: [analyzer] Performance optimizations for the CloneChecker

2017-07-30 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor updated this revision to Diff 108837. teemperor added a comment. Herald added a subscriber: klimek. - Updated according to Artem's comments. https://reviews.llvm.org/D34182 Files: include/clang/Analysis/CloneDetection.h lib/Analysis/CloneDetection.cpp lib/Format/UnwrappedLinePar

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-07-30 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. I think will be good idea to do this in -list-checks too. https://reviews.llvm.org/D36051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-07-30 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru added a comment. Good ideas guys. I will try to update list.rst to a table with the extra information. https://reviews.llvm.org/D36051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

r309496 - Improve readability of CXX method overrides list

2017-07-30 Thread Lenar Safin via cfe-commits
Author: lll Date: Sat Jul 29 13:42:58 2017 New Revision: 309496 URL: http://llvm.org/viewvc/llvm-project?rev=309496&view=rev Log: Improve readability of CXX method overrides list Summary: Separate CXX method overrides list entries with commas. Reviewers: lhames Reviewed By: lhames Subscribers:

r309508 - [x86][inline-asm]Allow a pack of Control Regs to be properly picked

2017-07-30 Thread Coby Tayree via cfe-commits
Author: coby Date: Sun Jul 30 03:19:10 2017 New Revision: 309508 URL: http://llvm.org/viewvc/llvm-project?rev=309508&view=rev Log: [x86][inline-asm]Allow a pack of Control Regs to be properly picked Allows the incorporation of legit (x86) Control Regs within inline asm stataements Differential

r309510 - [x86][inline-asm][ms-compat] legalize the use of "jc/jz short "

2017-07-30 Thread Coby Tayree via cfe-commits
Author: coby Date: Sun Jul 30 04:13:46 2017 New Revision: 309510 URL: http://llvm.org/viewvc/llvm-project?rev=309510&view=rev Log: [x86][inline-asm][ms-compat] legalize the use of "jc/jz short " MS ignores the keyword "short" when used after a jc/jz instruction, LLVM ought to do the same. llvm:

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-07-30 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. Maybe instead of a separate list, having this information like yes/no column in a table in the original is more user-friendly. https://reviews.llvm.org/D36051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[PATCH] D35903: [x86][inline-asm]Allow a pack of Control Regs to be properly picked

2017-07-30 Thread coby via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309508: [x86][inline-asm]Allow a pack of Control Regs to be properly picked (authored by coby). Changed prior to commit: https://reviews.llvm.org/D35903?vs=108317&id=108825#toc Repository: rL LLVM h

[PATCH] D36057: Use class to pass information about executable name

2017-07-30 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff created this revision. Herald added subscribers: srhines, klimek. Information about clang executable name component, such as target and driver mode, was passes in std::pair. With this change it is passed in special structure. It improves readability and makes access to this information m

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-07-30 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. would be a classification of checks in general interesting? i could think of "quality", some checks might be heuristic, some might be new and have some bugs, and some might catch everything correct and handle it perfectly. So checks could have 2 categories: -> autof