[PATCH] D27300: [OpenCL] Fix SPIR version generation.

2016-12-02 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 80034. echuraev marked 3 inline comments as done. https://reviews.llvm.org/D27300 Files: lib/CodeGen/TargetInfo.cpp test/CodeGenOpenCL/spir_version.cl Index: test/CodeGenOpenCL/spir_version.cl ===

[PATCH] D27211: [clang-format] Implement comment reflowing

2016-12-02 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/Format/Encoding.h:136 + } + while (Left + 1 < Right) { +assert(ComputeWidth(Left) <= Width && "binary search left invariant"); Was just skimming through this patch. What is the reason to use a hand written a

[PATCH] D27334: [OpenCL] Ambiguous function call.

2016-12-02 Thread Egor Churaev via Phabricator via cfe-commits
echuraev created this revision. echuraev added a reviewer: Anastasia. echuraev added subscribers: bader, cfe-commits, yaxunl. Added warning about potential ambiguity error with built-in overloading. Patch by Alexey Bader https://reviews.llvm.org/D27334 Files: include/clang/Basic/DiagnosticSe

[PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: docs/clang-tidy/checks/misc-string-compare.rst:10 +equality or inequality operators. The compare method is intended for sorting +functions and thus returns ``-1``, ``0`` or ``1`` depending on the lexicographical +relationship between

[PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:25 + callee(cxxMethodDecl(hasName("compare"), + ofClass(classTemplateSpecializationDecl( + hasName("::std::basic_string"), --

Re: [PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Mads Ravn via cfe-commits
Hi Malcolm, Matching for the single parameter overload of compare is probably a good idea. I will do that. > Comment at: test/clang-tidy/misc-string-compare.cpp:9 > + // CHECK-MESSAGES: [[@LINE-1]]:3: warning: do not use compare to test equality of strings; use the string equality operator inste

Re: [PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Malcolm Parsons via cfe-commits
On 2 December 2016 at 09:50, Mads Ravn wrote: >> Comment at: test/clang-tidy/misc-string-compare.cpp:9 >> + // CHECK-MESSAGES: [[@LINE-1]]:3: warning: do not use compare to test >> equality of strings; use the string equality operator instead >> [misc-string-compare] > What do you mean by this co

r288491 - [Frontend] Fix an issue where a quoted search path is incorrectly

2016-12-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Dec 2 03:51:51 2016 New Revision: 288491 URL: http://llvm.org/viewvc/llvm-project?rev=288491&view=rev Log: [Frontend] Fix an issue where a quoted search path is incorrectly removed as a duplicate header search path The commit r126167 started passing the First index int

[PATCH] D27298: [Frontend] Fix an issue where a quoted search path is incorrectly removed as a duplicate header search path

2016-12-02 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL288491: [Frontend] Fix an issue where a quoted search path is incorrectly (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D27298?vs=79887&id=80038#toc Repository: rL LLVM h

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 80039. ioeric added a comment. - Merge branch 'master' of http://llvm.org/git/clang into insert - Still delete #include's in code. https://reviews.llvm.org/D26909 Files: lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/Clea

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1521 +// tokens and returns an offset after the sequence. +unsigned getOffsetAfterTokenSequence( +StringRef FileName, StringRef Code, const FormatStyle &Style, I am somewhat hesitant to put more

Re: [libcxxabi] r288457 - Update implementation of ABI support for throwing noexcept function pointers

2016-12-02 Thread Renato Golin via cfe-commits
On 2 December 2016 at 02:06, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Thu Dec 1 20:06:53 2016 > New Revision: 288457 > > URL: http://llvm.org/viewvc/llvm-project?rev=288457&view=rev > Log: > Update implementation of ABI support for throwing noexcept function pointers > and ca

Re: [PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Mads Ravn via cfe-commits
Hi Malcolm, Thanks. I will fix the last couple of things in the weekend and hopefully have something worth showing there. alexfh suggested that fixits seemed easy to implement. I am having a few doubts as to how I would make fixits for case 1 & 2. How important would it be to implement fixits at

Re: [PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-02 Thread Malcolm Parsons via cfe-commits
On 2 December 2016 at 10:29, Mads Ravn wrote: > alexfh suggested that fixits seemed easy to implement. I am having a few > doubts as to how I would make fixits for case 1 & 2. How important would it > be to implement fixits at this point? Add a FIXME comment if they're difficult. -- Malcolm Par

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 80042. ioeric marked an inline comment as done. ioeric added a comment. - Updated comments. https://reviews.llvm.org/D26909 Files: include/clang/Format/Format.h lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTest

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: lib/Format/Format.cpp:1521 +// tokens and returns an offset after the sequence. +unsigned getOffsetAfterTokenSequence( +StringRef FileName, StringRef Code, const FormatStyle &Style, djasper wrote: > I am somewhat hesi

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: unittests/Format/CleanupTest.cpp:898 + +TEST_F(CleanUpReplacementsTest, CanInsertAfterComment) { + std::string Code = "#include \"a.h\"\n"

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 80044. ioeric marked an inline comment as done. ioeric added a comment. - Addressed comment. https://reviews.llvm.org/D26909 Files: include/clang/Format/Format.h lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTes

[PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang

2016-12-02 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Ping Repository: rL LLVM https://reviews.llvm.org/D16533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL288493: [ClangFormat] Only insert #include into the #include block in the beginning of… (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D26909?vs=80044&id=80045#toc Repository:

r288493 - [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-02 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Dec 2 05:01:43 2016 New Revision: 288493 URL: http://llvm.org/viewvc/llvm-project?rev=288493&view=rev Log: [ClangFormat] Only insert #include into the #include block in the beginning of the file. Summary: This avoid inserting #include into: - raw string literals contain

[clang-tools-extra] r288495 - Fix a buildbot failure in include-fixer.

2016-12-02 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Dec 2 05:23:07 2016 New Revision: 288495 URL: http://llvm.org/viewvc/llvm-project?rev=288495&view=rev Log: Fix a buildbot failure in include-fixer. Modified: clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp Modified: clang-tools-extra/trunk/unitt

Re: r288448 - [CUDA] "Support" ASAN arguments in CudaToolChain

2016-12-02 Thread Hal Finkel via cfe-commits
- Original Message - > From: "Jason Henline via cfe-commits" > To: cfe-commits@lists.llvm.org > Sent: Thursday, December 1, 2016 7:42:54 PM > Subject: r288448 - [CUDA] "Support" ASAN arguments in CudaToolChain > > Author: jhen > Date: Thu Dec 1 19:42:54 2016 > New Revision: 288448 > > U

[clang-tools-extra] r288498 - [clang-move] some tweaks.

2016-12-02 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Dec 2 06:39:39 2016 New Revision: 288498 URL: http://llvm.org/viewvc/llvm-project?rev=288498&view=rev Log: [clang-move] some tweaks. * Don't save SourceManager for each declarations. * Rename some out-dated methods. No functionality change. Modified: clang-tools-ex

[PATCH] D27248: [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as final

2016-12-02 Thread Felix Berger via Phabricator via cfe-commits
flx added inline comments. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:276 +// Virtual method overrides of dependent types cannot be recognized unless they +// are marked as override or final. Test that check is not triggered on methods +// marked with ove

[PATCH] D27248: [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as final

2016-12-02 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:276 +// Virtual method overrides of dependent types cannot be recognized unless they +// are marked as override or final. Test that check is not triggered on methods +// mar

[clang-tools-extra] r288502 - [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as final

2016-12-02 Thread Felix Berger via cfe-commits
Author: flx Date: Fri Dec 2 08:44:16 2016 New Revision: 288502 URL: http://llvm.org/viewvc/llvm-project?rev=288502&view=rev Log: [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as final Summary: Virtual method overrides of dependent types cannot be recognized unless

[PATCH] D27248: [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as final

2016-12-02 Thread Felix Berger via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL288502: [clang-tidy] Do not trigger unnecessary-value-param check on methods marked as… (authored by flx). Changed prior to commit: https://reviews.llvm.org/D27248?vs=79732&id=80066#toc Repository: r

[PATCH] D27300: [OpenCL] Fix SPIR version generation.

2016-12-02 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: test/CodeGenOpenCL/spir_version.cl:22 + // CHECK-SPIR-CL20: !opencl.spir.version = !{[[SPIR:![0-9]+]]} // CHECK-SPIR-CL20: !opencl.ocl.version = !{[[SPIR:![0-9]+]]} Could we then use VER here too?

[PATCH] D27334: [OpenCL] Ambiguous function call.

2016-12-02 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. This change seems to modify normal C behavior again. Is there any strong motivation for doing this and if yes could it be done generically with C? Comment at: lib/Sema/SemaChecking.cpp:2479 +// integer values. +if (FDecl->hasAttr()) {

Re: r288448 - [CUDA] "Support" ASAN arguments in CudaToolChain

2016-12-02 Thread Jason Henline via cfe-commits
Hi Hal, I don't understand why only ASAN is enabled. What about TSAN, etc.? Shouldn't you query whatever the host toolchain is? I think you're right, I should just implement it as SanitizerMask CudaToolChain::getSupportedSanitizers() const { return HostTC.getSupportedSanitizers(); } I will get

[PATCH] D27332: With LTO and profile-use, enable hotness info in opt remarks

2016-12-02 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini accepted this revision. mehdi_amini added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D27332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D27332: With LTO and profile-use, enable hotness info in opt remarks

2016-12-02 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. (You have a typo in the decription, you may want to fix it before commit) https://reviews.llvm.org/D27332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Fix some misc-move-forwarding-reference warnings

2016-12-02 Thread Michael Sharpe via cfe-commits
Hello, The attached patch fixes a couple of incorrect uses of std::move as revealed by clang-tidy. Best regards, Michael Sharpe diff --git lib/AST/Type.cpp lib/AST/Type.cpp index d98d8d7..0d0cd2e 100644 --- lib/AST/Type.cpp +++ lib/AST/Type.cpp @@ -1050,24 +1050,24 @@ template QualType simpleTr

[PATCH] D27332: With LTO and profile-use, enable hotness info in opt remarks

2016-12-02 Thread Adam Nemet via Phabricator via cfe-commits
anemet added a comment. In https://reviews.llvm.org/D27332#611769, @mehdi_amini wrote: > (You have a typo in the decription, you may want to fix it before commit) Got it. Thanks for the reviews! https://reviews.llvm.org/D27332 ___ cfe-commits ma

[PATCH] D27350: CFGBuilder: Fix crash when visiting delete expression on dependent type

2016-12-02 Thread Martin Böhme via Phabricator via cfe-commits
mboehme created this revision. mboehme added a reviewer: klimek. mboehme added a subscriber: cfe-commits. CXXDeleteExpr::getDestroyedType() can return a null QualType if the destroyed type is a dependent type. This patch protects against this. https://reviews.llvm.org/D27350 Files: lib/Analys

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-12-02 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 updated this revision to Diff 80081. rogfer01 added a comment. Drop attribute packed of a class when one of its fields is a non-packed non-pod for compatibility with GCC. https://reviews.llvm.org/D23325 Files: include/clang/AST/Decl.h include/clang/AST/Expr.h include/clang/AST/S

[PATCH] D27351: [CUDA] Forward sanitizer support to host toolchain

2016-12-02 Thread Jason Henline via Phabricator via cfe-commits
jhen created this revision. jhen added a reviewer: jlebar. jhen added subscribers: cfe-commits, hfinkel. This is an improvement on https://reviews.llvm.org/rL288448 where address sanitization was listed as supported for the CudaToolChain. Since the intent is for the CudaToolChain not to reject an

[PATCH] D27351: [CUDA] Forward sanitizer support to host toolchain

2016-12-02 Thread Justin Lebar via Phabricator via cfe-commits
jlebar accepted this revision. jlebar added a comment. This revision is now accepted and ready to land. I like it! https://reviews.llvm.org/D27351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

[PATCH] D27351: [CUDA] Forward sanitizer support to host toolchain

2016-12-02 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel accepted this revision. hfinkel added a reviewer: hfinkel. hfinkel added a comment. LGTM https://reviews.llvm.org/D27351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r288512 - [CUDA] Forward sanitizer support to host toolchain

2016-12-02 Thread Jason Henline via cfe-commits
Author: jhen Date: Fri Dec 2 11:32:18 2016 New Revision: 288512 URL: http://llvm.org/viewvc/llvm-project?rev=288512&view=rev Log: [CUDA] Forward sanitizer support to host toolchain Summary: This is an improvement on rL288448 where address sanitization was listed as supported for the CudaToolChai

[PATCH] D27351: [CUDA] Forward sanitizer support to host toolchain

2016-12-02 Thread Jason Henline via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL288512: [CUDA] Forward sanitizer support to host toolchain (authored by jhen). Changed prior to commit: https://reviews.llvm.org/D27351?vs=80082&id=80084#toc Repository: rL LLVM https://reviews.llvm

[PATCH] D16533: Bug 20796 - GCC's -Wstrict-prototypes warning not implemented in Clang

2016-12-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Hi Alex, thanks for following up with this! Comment at: lib/Sema/SemaDecl.cpp:11819 + // Warn if K&R function is defined without previous declaration + // declaration. This warning is issued only if the difinition itself + // does not

r288520 - With LTO and profile-use, enable hotness info in opt remarks

2016-12-02 Thread Adam Nemet via cfe-commits
Author: anemet Date: Fri Dec 2 11:54:34 2016 New Revision: 288520 URL: http://llvm.org/viewvc/llvm-project?rev=288520&view=rev Log: With LTO and profile-use, enable hotness info in opt remarks This is to match the behavior of non-LTO; when -fsave-optimization-record is passed and PGO is availabl

[PATCH] D27332: With LTO and profile-use, enable hotness info in opt remarks

2016-12-02 Thread Adam Nemet via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL288520: With LTO and profile-use, enable hotness info in opt remarks (authored by anemet). Changed prior to commit: https://reviews.llvm.org/D27332?vs=80026&id=80088#toc Repository: rL LLVM https://

[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-12-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. > The right thing to do would be to track the set of headers whose #import / > #include-with-#pragma-once is > visible, and only skip inclusions if there is a *visible* #import / > #include-with-#pragma-once of that header. This makes sense, but the situation is a bit mo

[PATCH] D27068: Improve string::find

2016-12-02 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya updated this revision to Diff 80090. hiraditya added a comment. Addressed Tim's comments. https://reviews.llvm.org/D27068 Files: libcxx/benchmarks/string.bench.cpp libcxx/include/__string Index: libcxx/include/__string =

[PATCH] D27068: Improve string::find

2016-12-02 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. This is starting to look good. Comment at: libcxx/include/__string:549 +// Stop short when source is smaller than pattern. +ptrdiff_t __len2 = __last2 - __first2; +if (__len2 == 0) Is there a reason that you calculate th

[PATCH] D27226: [MS ABI] Implement more of the Itanium mangling rules

2016-12-02 Thread David Majnemer via Phabricator via cfe-commits
majnemer updated this revision to Diff 80096. majnemer added a comment. - Simplify the mangling a little bit https://reviews.llvm.org/D27226 Files: lib/AST/MicrosoftMangle.cpp test/CodeGenCXX/mangle-ms-cxx11.cpp Index: test/CodeGenCXX/mangle-ms-cxx11.cpp ===

[PATCH] D27358: V-base dtor called more than needed when throw happens in v-base ctor in window. Need add "complete object flag" check in eh cleanup code.

2016-12-02 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 created this revision. jyu2 added reviewers: cfe-commits, erichkeane, majnemer, rnk. jyu2 set the repository for this revision to rL LLVM. jyu2 added a project: clang-c. The problem only happen on window ( A MSVC compatibility issues) The nature of the problem is virtual base dtor called mor

[PATCH] D27068: Improve string::find

2016-12-02 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya added inline comments. Comment at: libcxx/include/__string:549 +// Stop short when source is smaller than pattern. +ptrdiff_t __len2 = __last2 - __first2; +if (__len2 == 0) mclow.lists wrote: > Is there a reason that you calculate the end po

[PATCH] D27360: Fix D26214: Move error handling out of MC and to the callers.

2016-12-02 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang created this revision. mgrang added reviewers: dgross, echristo, t.p.northover, rengolin, compnerd. mgrang added subscribers: llvm-commits, cfe-commits. mgrang added a project: clang-c. Herald added a subscriber: mehdi_amini. Related llvm patch: https://reviews.llvm.org/D27359 https://rev

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Michał Górny via Phabricator via cfe-commits
mgorny retitled this revision from "[Driver] Support "hardfloat" vendor triples used by Gentoo" to "[Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples". mgorny updated the summary for this revision. mgorny added a reviewer: atanasyan. mgorny updated this revision to Diff 80118. h

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Renato Golin via Phabricator via cfe-commits
rengolin added a reviewer: compnerd. rengolin added inline comments. Comment at: lib/Driver/ToolChains.cpp:1674 TripleAliases.append(begin(ARMHFTriples), end(ARMHFTriples)); +} else if (TargetTriple.getEnvironment() == llvm::Triple::MuslEABIHF) { + TripleAliases.a

[PATCH] D27279: Store decls in prototypes on the declarator instead of in the AST

2016-12-02 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. (Unrelated, but if you're looking at memory: When I was looking at it a while ago, IIRC a surprising amount of memory was taken up by CXXBasePaths objects, and just reordering fields to pack it better made that object several bytes smaller. IIRC I accidentally reverted m

r288534 - [Sema] Reset a BumpPtrAllocator on clear(). NFC.

2016-12-02 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Fri Dec 2 15:00:12 2016 New Revision: 288534 URL: http://llvm.org/viewvc/llvm-project?rev=288534&view=rev Log: [Sema] Reset a BumpPtrAllocator on clear(). NFC. Looks like the reset() call was omitted by accident. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp Modified: cf

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: lib/Driver/ToolChains.cpp:1674 TripleAliases.append(begin(ARMHFTriples), end(ARMHFTriples)); +} else if (TargetTriple.getEnvironment() == llvm::Triple::MuslEABIHF) { + TripleAliases.append(begin(ARMHFMuslTriples), end(ARMH

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Renato Golin via Phabricator via cfe-commits
rengolin added inline comments. Comment at: lib/Driver/ToolChains.cpp:1674 TripleAliases.append(begin(ARMHFTriples), end(ARMHFTriples)); +} else if (TargetTriple.getEnvironment() == llvm::Triple::MuslEABIHF) { + TripleAliases.append(begin(ARMHFMuslTriples), end(AR

[libcxx] r288536 - Add tests for libc++'s constexpr variant copy/move extension

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 15:17:51 2016 New Revision: 288536 URL: http://llvm.org/viewvc/llvm-project?rev=288536&view=rev Log: Add tests for libc++'s constexpr variant copy/move extension Modified: libcxx/trunk/test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp

[libcxx] r288538 - Fix copy/paste errors in new variant tests

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 15:32:35 2016 New Revision: 288538 URL: http://llvm.org/viewvc/llvm-project?rev=288538&view=rev Log: Fix copy/paste errors in new variant tests Modified: libcxx/trunk/test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp libcxx/trunk/tes

Re: [libcxxabi] r288457 - Update implementation of ABI support for throwing noexcept function pointers

2016-12-02 Thread Renato Golin via cfe-commits
It's been a while, and new patches are coming. Should we just revert this for now? --renato On 2 December 2016 at 10:13, Renato Golin wrote: > On 2 December 2016 at 02:06, Richard Smith via cfe-commits > wrote: >> Author: rsmith >> Date: Thu Dec 1 20:06:53 2016 >> New Revision: 288457 >> >> UR

[PATCH] D26691: [analyzer] Run clang-format and fix style

2016-12-02 Thread Dominic Chen via Phabricator via cfe-commits
ddcc updated this revision to Diff 80128. ddcc added a comment. Un-change comments, misc. changes https://reviews.llvm.org/D26691 Files: lib/StaticAnalyzer/Core/RangeConstraintManager.cpp lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp lib/StaticAnalyzer/Core/SimpleConstraintManager.h

[PATCH] D26691: [analyzer] Run clang-format and fix style

2016-12-02 Thread Dominic Chen via Phabricator via cfe-commits
ddcc added inline comments. Comment at: lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:459 // Notice that the lower bound is greater than the upper bound. - RangeSet New = GetRange(St, Sym).Intersect(getBasicVals(), F, Upper, Lower); + RangeSet New = getRange(St, Sym).In

[PATCH] D26061: [analyzer] Refactor and simplify SimpleConstraintManager

2016-12-02 Thread Dominic Chen via Phabricator via cfe-commits
ddcc updated this revision to Diff 80129. ddcc added a comment. Rebase, move `assumeSymRel()` to RangedConstraintManager, make `assumeSymUnsupported` pure virtual in SimpleConstraintManager. https://reviews.llvm.org/D26061 Files: include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintMana

Re: [libcxxabi] r288457 - Update implementation of ABI support for throwing noexcept function pointers

2016-12-02 Thread Richard Smith via cfe-commits
Looks like we need to wrap more of the test in the feature test macro. On 2 December 2016 at 13:42, Renato Golin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > It's been a while, and new patches are coming. Should we just revert > this for now? > > --renato > > On 2 December 2016 at 10:13

[libcxxabi] r288539 - Fix up r288457 for compilers that don't support noexcept function types:

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 15:43:36 2016 New Revision: 288539 URL: http://llvm.org/viewvc/llvm-project?rev=288539&view=rev Log: Fix up r288457 for compilers that don't support noexcept function types: disable the test entirely for those cases. This is a quick patch, I'll look at a proper feat

Re: [libcxxabi] r288457 - Update implementation of ABI support for throwing noexcept function pointers

2016-12-02 Thread Richard Smith via cfe-commits
Should be fixed in r288539. On 2 December 2016 at 13:51, Richard Smith wrote: > Looks like we need to wrap more of the test in the feature test macro. > > On 2 December 2016 at 13:42, Renato Golin via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> It's been a while, and new patches are

Re: Upgrade and fix clang-format-vs

2016-12-02 Thread Antonio Maiorano via cfe-commits
I've attached a patch that works as discussed. When running CMake with -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON, it will look for nuget.exe in PATH, or you can pass in DNUGET_EXE_PATH=C:\nuget, for e.g. On Mon, 28 Nov 2016 at 14:31 Antonio Maiorano wrote: > Great, I'll get this working soon and attach

r288327 - Fix crash with unsupported architectures in Linux/Gnu target triples.

2016-12-02 Thread Florian Hahn via cfe-commits
Author: fhahn Date: Thu Dec 1 05:02:59 2016 New Revision: 288327 URL: http://llvm.org/viewvc/llvm-project?rev=288327&view=rev Log: Fix crash with unsupported architectures in Linux/Gnu target triples. Summary: This patch adds a check and an error message to gnutools::Linker::ConstructJob in cas

Re: Upgrade and fix clang-format-vs

2016-12-02 Thread Antonio Maiorano via cfe-commits
On Tue, 29 Nov 2016 at 13:42 Hans Wennborg wrote: > Very nice! I've tried this out and confirmed that the built plugin > also works with older Visual Studio versions. > > Some comments below: > > > --- /dev/null > > +++ b/tools/clang-format-vs/.gitignore > > @@ -0,0 +1,11 @@ > > +# Visual Studio

Re: Upgrade and fix clang-format-vs

2016-12-02 Thread Antonio Maiorano via cfe-commits
Updated version of patch attached with the changes you suggested. Let me know if there's anything else you'd like. On Tue, 29 Nov 2016 at 15:38 Hans Wennborg wrote: > On Tue, Nov 29, 2016 at 12:01 PM, Antonio Maiorano > wrote: > > On Tue, 29 Nov 2016 at 13:42 Hans Wennborg wrote: > >> > >> Ver

[PATCH] D27364: Use SD-6 feature test macro to determine whether to enable P0012 ABI tests

2016-12-02 Thread Richard Smith via Phabricator via cfe-commits
rsmith created this revision. rsmith added a reviewer: EricWF. rsmith added a subscriber: cfe-commits. rsmith set the repository for this revision to rL LLVM. Repository: rL LLVM https://reviews.llvm.org/D27364 Files: test/catch_function_03.pass.cpp test/catch_member_function_pointer_02.pa

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: test/Driver/linux-ld.c:1016 +// CHECK-LD-GENTOO-ARMHF: "-dynamic-linker" "/lib/ld-linux-armhf.so.3" +// CHECK-LD-GENTOO-ARMHF: "{{.*}}/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/crtbegin.o" +// CHECK-LD-GENTOO-ARMHF: "-L[[SYSROOT]

[PATCH] D25686: [Driver] Improve support for Gentoo arm*-hardfloat-*-*eabi triples

2016-12-02 Thread Renato Golin via Phabricator via cfe-commits
rengolin added inline comments. Comment at: test/Driver/linux-ld.c:1016 +// CHECK-LD-GENTOO-ARMHF: "-dynamic-linker" "/lib/ld-linux-armhf.so.3" +// CHECK-LD-GENTOO-ARMHF: "{{.*}}/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/crtbegin.o" +// CHECK-LD-GENTOO-ARMHF: "-L[[SYSROO

[libcxxabi] r288543 - Check for SD-6 feature test macro when determining which tests should be

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 16:14:59 2016 New Revision: 288543 URL: http://llvm.org/viewvc/llvm-project?rev=288543&view=rev Log: Check for SD-6 feature test macro when determining which tests should be available, rather than #ifdef'ing away the relevant tests if it's unavailable. Modified:

[PATCH] D27068: Improve string::find

2016-12-02 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya updated this revision to Diff 80134. hiraditya added a comment. Addressed Marshall's comments. https://reviews.llvm.org/D27068 Files: libcxx/benchmarks/string.bench.cpp libcxx/include/__string Index: libcxx/include/__string

[PATCH] D27365: [analyzer] Print type for SymbolRegionValues when dumping to stream

2016-12-02 Thread Dominic Chen via Phabricator via cfe-commits
ddcc created this revision. ddcc added reviewers: NoQ, dcoughlin, zaks.anna. ddcc added a subscriber: cfe-commits. https://reviews.llvm.org/D27365 Files: lib/StaticAnalyzer/Core/SymbolManager.cpp test/Analysis/expr-inspection.c Index: test/Analysis/expr-inspection.c

[libcxx] r288544 - Work around a bug in Clang's implementation of noexcept function types

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 16:30:52 2016 New Revision: 288544 URL: http://llvm.org/viewvc/llvm-project?rev=288544&view=rev Log: Work around a bug in Clang's implementation of noexcept function types Modified: libcxx/trunk/test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp Mod

[PATCH] D21453: Add support for attribute "overallocated"

2016-12-02 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/Decl.h:3250 + /// This is true if this struct ends with an array marked 'flexible_array'. + bool HasFlexibleArrayAttr : 1; + How is this different from `HasFlexibleArrayMember`? Do we really need both?

r288545 - Mass-rename the handful of error_* diagnostics to err_*.

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 16:38:31 2016 New Revision: 288545 URL: http://llvm.org/viewvc/llvm-project?rev=288545&view=rev Log: Mass-rename the handful of error_* diagnostics to err_*. Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td cfe/trunk/include/clang/Basic/Diagn

Re: [libcxx] r288544 - Work around a bug in Clang's implementation of noexcept function types

2016-12-02 Thread Hal Finkel via cfe-commits
- Original Message - > From: "Eric Fiselier via cfe-commits" > To: cfe-commits@lists.llvm.org > Sent: Friday, December 2, 2016 4:30:53 PM > Subject: [libcxx] r288544 - Work around a bug in Clang's implementation of > noexcept function types > > Author: ericwf > Date: Fri Dec 2 16:30:52

r288546 - CodeGen: export typeinfo and typeinfo name on itanium

2016-12-02 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Dec 2 16:46:18 2016 New Revision: 288546 URL: http://llvm.org/viewvc/llvm-project?rev=288546&view=rev Log: CodeGen: export typeinfo and typeinfo name on itanium When a C++ record is marked with dllexport mark both the typeinfo and the typeinfo name as being exported.

r288548 - More diagnostic name fixups: w_ -> warn_, warning_ -> warn_, not_ -> note_.

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 17:00:28 2016 New Revision: 288548 URL: http://llvm.org/viewvc/llvm-project?rev=288548&view=rev Log: More diagnostic name fixups: w_ -> warn_, warning_ -> warn_, not_ -> note_. In passing, add a warning group for "ignored qualifier in inline assembly" warnings. Mo

[libcxx] r288550 - Update ABI lists for

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 17:11:28 2016 New Revision: 288550 URL: http://llvm.org/viewvc/llvm-project?rev=288550&view=rev Log: Update ABI lists for Modified: libcxx/trunk/lib/abi/CHANGELOG.TXT libcxx/trunk/lib/abi/x86_64-unknown-linux-gnu.abilist Modified: libcxx/trunk/lib/abi/CHA

[libcxx] r288551 - Update darwin ABI list for

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 17:14:18 2016 New Revision: 288551 URL: http://llvm.org/viewvc/llvm-project?rev=288551&view=rev Log: Update darwin ABI list for Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.0.0.abilist Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.0.0.abilist U

[libcxx] r288552 - Fix generated warnings in

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 17:17:33 2016 New Revision: 288552 URL: http://llvm.org/viewvc/llvm-project?rev=288552&view=rev Log: Fix generated warnings in Modified: libcxx/trunk/include/variant Modified: libcxx/trunk/include/variant URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk

[libcxx] r288554 - Make variant's index part of the hash value

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 17:38:31 2016 New Revision: 288554 URL: http://llvm.org/viewvc/llvm-project?rev=288554&view=rev Log: Make variant's index part of the hash value Modified: libcxx/trunk/include/memory libcxx/trunk/include/variant libcxx/trunk/src/experimental/filesystem/

[libcxx] r288555 - Fix C++03 build

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 17:41:18 2016 New Revision: 288555 URL: http://llvm.org/viewvc/llvm-project?rev=288555&view=rev Log: Fix C++03 build Modified: libcxx/trunk/include/memory libcxx/trunk/include/variant Modified: libcxx/trunk/include/memory URL: http://llvm.org/viewvc/llvm-

[libcxx] r288556 - Work around Clang 3.8 bugs

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 18:13:33 2016 New Revision: 288556 URL: http://llvm.org/viewvc/llvm-project?rev=288556&view=rev Log: Work around Clang 3.8 bugs Modified: libcxx/trunk/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp libcxx/trunk/test/libcxx/util

[libcxx] r288557 - Enable warnings by default for C++ >= 11 and fix -Wshadow occurances

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 18:27:13 2016 New Revision: 288557 URL: http://llvm.org/viewvc/llvm-project?rev=288557&view=rev Log: Enable warnings by default for C++ >= 11 and fix -Wshadow occurances Modified: libcxx/trunk/test/libcxx/test/config.py libcxx/trunk/test/std/experimental/f

r288558 - PR31244: Use the exception specification from the callee's type directly to

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 18:29:06 2016 New Revision: 288558 URL: http://llvm.org/viewvc/llvm-project?rev=288558&view=rev Log: PR31244: Use the exception specification from the callee's type directly to compute whether a call is noexcept, even if we can't map the callee expression to a calle

[libcxx] r288559 - XFAIL variant tests for apple-clang

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 18:33:03 2016 New Revision: 288559 URL: http://llvm.org/viewvc/llvm-project?rev=288559&view=rev Log: XFAIL variant tests for apple-clang Modified: libcxx/trunk/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp libcxx/trunk/test/li

[PATCH] D27377: clang-format: Support the Java 8 'default' method modifier

2016-12-02 Thread Luis Héctor Chávez via Phabricator via cfe-commits
lhchavez created this revision. lhchavez added a reviewer: djasper. lhchavez added subscribers: srhines, cfe-commits. Herald added a subscriber: klimek. Java 8 introduced the use of using the 'default' keyword as modifier in interface method declarations[1]. Previously it was being parsed as being

[PATCH] D27377: clang-format: Support the Java 8 'default' method modifier

2016-12-02 Thread Stephen Hines via Phabricator via cfe-commits
srhines added a comment. Looks good, but I I want to make sure that someone else more familiar with this is ok with it too. Thanks. https://reviews.llvm.org/D27377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

r288563 - DR616, and part of P0135R1: member access (or pointer-to-member access) on a

2016-12-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 2 19:14:32 2016 New Revision: 288563 URL: http://llvm.org/viewvc/llvm-project?rev=288563&view=rev Log: DR616, and part of P0135R1: member access (or pointer-to-member access) on a temporary produces an xvalue, not a prvalue. Support this by materializing the temporary

[libcxx] r288564 - Fix -Wshadow warnings and enable warnings by default for C++ >= 11

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 19:21:40 2016 New Revision: 288564 URL: http://llvm.org/viewvc/llvm-project?rev=288564&view=rev Log: Fix -Wshadow warnings and enable warnings by default for C++ >= 11 Modified: libcxx/trunk/include/forward_list libcxx/trunk/test/libcxx/test/config.py Modi

r288565 - [Sema] Don't perform aggregate initialization for types with explicit constructors

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 19:26:47 2016 New Revision: 288565 URL: http://llvm.org/viewvc/llvm-project?rev=288565&view=rev Log: [Sema] Don't perform aggregate initialization for types with explicit constructors Summary: The C++17 rules for aggregate initialization changed to disallow types

[libcxx] r288566 - Revert workaround for Clang bug. Thanks to Richard for the quick fix

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 19:28:01 2016 New Revision: 288566 URL: http://llvm.org/viewvc/llvm-project?rev=288566&view=rev Log: Revert workaround for Clang bug. Thanks to Richard for the quick fix Modified: libcxx/trunk/test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp Modif

[PATCH] D27360: [clang] Fix D26214: Move error handling out of MC and to the callers.

2016-12-02 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I think that the argument parsing should really be hoisted into the driver rather than pushed down into the assembler. The driver can parse and validate the options before passing them down, so when cc1as gets it, it will simply set the value. The newly introduced di

[libcxx] r288571 - Fix w/o exception support

2016-12-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Dec 2 19:58:07 2016 New Revision: 288571 URL: http://llvm.org/viewvc/llvm-project?rev=288571&view=rev Log: Fix w/o exception support Modified: libcxx/trunk/include/variant Modified: libcxx/trunk/include/variant URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk

  1   2   >