r277261 - [c-index-test] Make sure to check that clang_Cursor_getNumTemplateArguments did not return -1.

2016-07-29 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Fri Jul 29 21:20:21 2016 New Revision: 277261 URL: http://llvm.org/viewvc/llvm-project?rev=277261&view=rev Log: [c-index-test] Make sure to check that clang_Cursor_getNumTemplateArguments did not return -1. Modified: cfe/trunk/tools/c-index-test/c-index-test.c Modif

Re: [PATCH] D22982: [CloneDetector] No longer reporting clones that don't have a common referenced variable pattern.

2016-07-29 Thread Vedant Kumar via cfe-commits
vsk added a subscriber: vsk. vsk added a comment. This is neat! I may be missing something, but could you explain why 'false-positives.cpp' was deleted? I'd expect the test to be incorporated into 'functions.cpp' with the 'expected-*' directives removed. Comment at: lib/Analy

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-29 Thread Hans Wennborg via cfe-commits
It seems the compiler was getting thrown off by the in-class initializers of the local MapInfo struct. I've tried to work around this in r277256. Hopefully this will make the buildbots happier. Cheers, Hans On Fri, Jul 29, 2016 at 2:20 PM, Samuel F Antao wrote: > Hi Hans, > > Thanks for the trou

Re: [PATCH] D22856: [analyzer] Change -analyze-function to accept qualified names.

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Since this is an improvement, it looks good to me. (Improving printing of ObjC methods is a good add on, but not blocking..) https://reviews.llvm.org/D22856 _

r277256 - Fix VS2013 build of CGOpenMPRuntime.cpp

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 19:41:37 2016 New Revision: 277256 URL: http://llvm.org/viewvc/llvm-project?rev=277256&view=rev Log: Fix VS2013 build of CGOpenMPRuntime.cpp It seems the compiler was getting confused by the in-class initializers in local struct MapInfo, so moving those to a default

Re: [PATCH] D20811: [analyzer] Model some library functions

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:206 @@ +205,3 @@ +: Call.getArgExpr(ArgNo)->getType().getCanonicalType(); + } + static QualType getArgType(const CallExpr *CE, ArgNoTy ArgNo) { ---

Re: [PATCH] D20811: [analyzer] Model some library functions

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna added a subscriber: Alexander_Droste. zaks.anna added a comment. > Even though there are some doxygen-style comments in the checkers, i’ve never > seen doxygen actually generate any docs for checker classes. > Are they useful for IDE quick-hints only? I think it's useful to have co

Re: [PATCH] D22926: Static Analyzer - Localizability Checker: New Localizable APIs for macOS Sierra

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. LGTM Thank you! https://reviews.llvm.org/D22926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D22862: [analyzer] Fix for PR15623: eliminate unwanted ProgramState checker data propagation.

2016-07-29 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. As PR15623 shows, returning the existing cast is not correct. But rather than replace it with an unknown, here is a proposal for how to address this without regressing in precision. Instead of using `assumeDual()` in `ExprEngine::VisitLogicalExpr()` on the `RHSVal` a

Re: [PATCH] D22810: scan-build: Add an option to show the description in the list of defect

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Ok. LGTM. Thank you! Anna. https://reviews.llvm.org/D22810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-07-29 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:216 @@ +215,3 @@ +llvm::raw_svector_ostream warning(buf); +warning << "warning: Path diagnostic report is not generated. Current " +<< "output format does not support diagno

Re: r277221 - Remove unused variable.

2016-07-29 Thread Eric Christopher via cfe-commits
Hi Hans, Can you make sure this makes it into 3.9 please? Thanks! -eric On Fri, Jul 29, 2016 at 3:18 PM Eric Christopher via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: echristo > Date: Fri Jul 29 17:11:11 2016 > New Revision: 277221 > > URL: http://llvm.org/viewvc/llvm-project?

[PATCH] D22982: [CloneDetector] No longer reporting clones that don't have a common referenced variable pattern.

2016-07-29 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ, zaks.anna. teemperor added a subscriber: cfe-commits. One of the current false-positives the CloneDetector produces is that the statements `a < b ? b` and `b < a ? b` are considered clones of each other, even though t

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! https://reviews.llvm.org/D22668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast updated this revision to Diff 66194. hubert.reinterpretcast added a comment. Make FixedSizeStorage accessible to test code FixedSizeStorage and not FixedSizeStorageOwner is what the test code needs. Use alias template to avoid issues with MSVC. https://reviews.llvm.org/D

[libunwind] r277250 - Creating release candidate rc1 from release_390 branch

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:54 2016 New Revision: 277250 URL: http://llvm.org/viewvc/llvm-project?rev=277250&view=rev Log: Creating release candidate rc1 from release_390 branch Added: libunwind/tags/RELEASE_390/rc1/ (props changed) - copied from r277249, libunwind/branches/re

[libunwind] r277249 - Creating release directory for release_390.

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:51 2016 New Revision: 277249 URL: http://llvm.org/viewvc/llvm-project?rev=277249&view=rev Log: Creating release directory for release_390. Added: libunwind/tags/RELEASE_390/ ___ cfe-commits mailing list cfe-commi

[libcxxabi] r277237 - Creating release directory for release_390.

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:24 2016 New Revision: 277237 URL: http://llvm.org/viewvc/llvm-project?rev=277237&view=rev Log: Creating release directory for release_390. Added: libcxxabi/tags/RELEASE_390/ ___ cfe-commits mailing list cfe-commi

[libcxxabi] r277238 - Creating release candidate rc1 from release_390 branch

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:26 2016 New Revision: 277238 URL: http://llvm.org/viewvc/llvm-project?rev=277238&view=rev Log: Creating release candidate rc1 from release_390 branch Added: libcxxabi/tags/RELEASE_390/rc1/ - copied from r277237, libcxxabi/branches/release_39/ ___

[libcxx] r277235 - Creating release directory for release_390.

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:17 2016 New Revision: 277235 URL: http://llvm.org/viewvc/llvm-project?rev=277235&view=rev Log: Creating release directory for release_390. Added: libcxx/tags/RELEASE_390/ ___ cfe-commits mailing list cfe-commits@

[libcxx] r277236 - Creating release candidate rc1 from release_390 branch

2016-07-29 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Jul 29 17:48:20 2016 New Revision: 277236 URL: http://llvm.org/viewvc/llvm-project?rev=277236&view=rev Log: Creating release candidate rc1 from release_390 branch Added: libcxx/tags/RELEASE_390/rc1/ (props changed) - copied from r277235, libcxx/branches/release_

r277234 - [Perf-Helper] Add logging for dtrace commands

2016-07-29 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Fri Jul 29 17:48:17 2016 New Revision: 277234 URL: http://llvm.org/viewvc/llvm-project?rev=277234&view=rev Log: [Perf-Helper] Add logging for dtrace commands Logging the dtrace command into the top of the dtrace log is useful when debugging why the order file generation i

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast updated this revision to Diff 66190. hubert.reinterpretcast added a comment. Make FixedSizeStorageOwner accessible to test code https://reviews.llvm.org/D22668 Files: include/llvm/Support/AlignOf.h include/llvm/Support/MathExtras.h include/llvm/Support/TrailingObjec

Re: [PATCH] D21847: [Driver][OpenMP] Build jobs for OpenMP offloading actions for targets using gcc tool chains.

2016-07-29 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66189. sfantao added a comment. - Remove duplicate keyword in linker script. https://reviews.llvm.org/D21847 Files: include/clang/Driver/Options.td lib/Driver/Driver.cpp lib/Driver/Tools.cpp test/Driver/openmp-offload.c Index: test/Driver/openmp-of

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast updated this revision to Diff 66186. hubert.reinterpretcast added a comment. Replace call to LLVM_CONSTEXPR function in constant expression context https://reviews.llvm.org/D22668 Files: include/llvm/Support/AlignOf.h include/llvm/Support/MathExtras.h include/llvm/S

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast updated this revision to Diff 66185. hubert.reinterpretcast marked an inline comment as done. hubert.reinterpretcast added a comment. Avoid MSVC C4099: replace 'struct' with 'class' https://reviews.llvm.org/D22668 Files: include/llvm/Support/AlignOf.h include/llvm/Sup

r277221 - Remove unused variable.

2016-07-29 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Jul 29 17:11:11 2016 New Revision: 277221 URL: http://llvm.org/viewvc/llvm-project?rev=277221&view=rev Log: Remove unused variable. Fixes PR28761. Modified: cfe/trunk/lib/Headers/avx512fintrin.h Modified: cfe/trunk/lib/Headers/avx512fintrin.h URL: http://llvm.org

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you for the check! The oddness with the DenseMap can wait until a follow-up patch, btw. Repository: rL LLVM https://reviews.llvm.org/D22513 ___

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast updated this revision to Diff 66179. hubert.reinterpretcast added a comment. Address review comments: add tests, access control, Doxygen https://reviews.llvm.org/D22668 Files: include/llvm/Support/AlignOf.h include/llvm/Support/MathExtras.h include/llvm/Support/Trai

[clang-tools-extra] r277217 - Sorting includes; NFC.

2016-07-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Jul 29 16:41:18 2016 New Revision: 277217 URL: http://llvm.org/viewvc/llvm-project?rev=277217&view=rev Log: Sorting includes; NFC. Modified: clang-tools-extra/trunk/clang-tidy/readability/IdentifierNamingCheck.cpp Modified: clang-tools-extra/trunk/clang-tidy/r

[libunwind] r277215 - libunwind: correct return code in unwinding trace log message

2016-07-29 Thread Ed Maste via cfe-commits
Author: emaste Date: Fri Jul 29 16:24:19 2016 New Revision: 277215 URL: http://llvm.org/viewvc/llvm-project?rev=277215&view=rev Log: libunwind: correct return code in unwinding trace log message Modified: libunwind/trunk/src/Unwind-EHABI.cpp Modified: libunwind/trunk/src/Unwind-EHABI.cpp URL

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-29 Thread Samuel F Antao via cfe-commits
Hi Hans,   Thanks for the troubleshooting. I'd prefer to avoid the 'this->', but if Alexey is okay with that I wouldn't mind. The best solution would be to update the compiler of the bot if there is a newer version and see if the issue goes away, but not sure if that is possible at all.   Thanks ag

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-29 Thread Hans Wennborg via cfe-commits
I agree this looks like a compiler bug, but I'm not sure what's causing it exactly. Putting "this->" in front of those accesses to CurDir and CGF seems to fix it, but it's also very ugly. I tried a couple of other things, like moving the method out-of-line, but no luck yet. On Fri, Jul 29, 2016 a

r277211 - Fix CGOpenMPRuntime.cpp for VS2013. NFC.

2016-07-29 Thread Paul Robinson via cfe-commits
Author: probinson Date: Fri Jul 29 15:46:16 2016 New Revision: 277211 URL: http://llvm.org/viewvc/llvm-project?rev=277211&view=rev Log: Fix CGOpenMPRuntime.cpp for VS2013. NFC. I don't know why these changes work but they do. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-29 Thread Samuel F Antao via cfe-commits
I don't have easy access to Windows machine to test this, but it seems that whichever compiler is being used is broken. This is about a member function accessing a variable of the same class. I don't think I am doing any non-portable code pattern here.    Alexey, do you have a easy way to test this

RE: r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Keane, Erich via cfe-commits
Fixed in: r277206 after review in https://reviews.llvm.org/D22970 From: Keane, Erich Sent: Friday, July 29, 2016 11:58 AM To: 'Andrey Bokhanko' ; Mike Aizatsky Cc: cfe-commits Subject: RE: r277134 - [GCC] Support for __final specifier Sure, looking into it now. From: Andrey Bokhanko [mailto:

Re: [PATCH] D22970: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread David Majnemer via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277206: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function (authored by majnemer). Changed prior to commit: https://reviews.llvm.org/D22970?vs=66158&id=66165#toc Repositor

r277206 - Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread David Majnemer via cfe-commits
Author: majnemer Date: Fri Jul 29 15:01:12 2016 New Revision: 277206 URL: http://llvm.org/viewvc/llvm-project?rev=277206&view=rev Log: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function The recent change implementing __final forgot to initialize a variable. This was

[PATCH] D22973: [libcxx] [test] Add TEST_STACK_ALLOCATOR_WORKAROUND.

2016-07-29 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. Add TEST_STACK_ALLOCATOR_WORKAROUND. As I reported to Eric and Marshall: "stack_allocator is seriously nonconformant to N4582 17.6.3.5 [allocator.requirements]. First, it lac

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. Great! Manuel, OK to land? https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22972: [libcxx] [test] Fix an MSVC x64 compiler error due to mismatched iterator types.

2016-07-29 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. Fix an MSVC x64 compiler error due to mismatched iterator types. This was attempting to store a list>::iterator in a list::iterator. That isn't guaranteed by the Standard, and

[PATCH] D22971: [libcxx] [test] Fix an MSVC x64 compiler warning.

2016-07-29 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. Fix an MSVC x64 compiler warning, "warning C4312: 'type cast': conversion from 'unsigned int' to 'int *' of greater size". The warning (which is valuable) is simple to avoid:

Re: r276977 - [OpenMP] Codegen for use_device_ptr clause.

2016-07-29 Thread Hans Wennborg via cfe-commits
Yes, it still appears to be broken: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/26504/steps/run%20tests/logs/stdio On Thu, Jul 28, 2016 at 1:30 PM, Samuel F Antao via cfe-commits wrote: > Hi Mike, > > I've already pushed r276981 and r276988 to fix those failures shortly after > I

r277205 - Fix naked.cpp test on 32-bit Windows

2016-07-29 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Jul 29 14:43:28 2016 New Revision: 277205 URL: http://llvm.org/viewvc/llvm-project?rev=277205&view=rev Log: Fix naked.cpp test on 32-bit Windows Modified: cfe/trunk/test/CodeGenCXX/naked.cpp Modified: cfe/trunk/test/CodeGenCXX/naked.cpp URL: http://llvm.org/viewvc/llvm

RE: [PATCH] D22970: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread Keane, Erich via cfe-commits
I don't have the ability to commit this, but if it is blocking someone in some way (since the build verifier would otherwise be broken), someone committing it before then would be much appreciated. Thanks! -Erich -Original Message- From: Andrey Bokhanko [mailto:andreybokha...@gmail.com]

Re: [PATCH] D22970: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread Andrey Bokhanko via cfe-commits
andreybokhanko accepted this revision. andreybokhanko added a comment. This revision is now accepted and ready to land. LGTM I can commit this patch on Monday, when I will reach my work machine. Andrey Repository: rL LLVM https://reviews.llvm.org/D22970 __

r277200 - CodeGen: try harder to make the CFString structure RW

2016-07-29 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jul 29 14:15:51 2016 New Revision: 277200 URL: http://llvm.org/viewvc/llvm-project?rev=277200&view=rev Log: CodeGen: try harder to make the CFString structure RW The previous change was insufficient to mark the content as read-write as the structure itself was marked co

[PATCH] D22970: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread Erich Keane via cfe-commits
erichkeane created this revision. erichkeane added reviewers: cfe-commits, andreybokhanko, aizatsky. erichkeane set the repository for this revision to rL LLVM. erichkeane added a project: clang-c. My recent change to implement __final missed initializing the variable, which was caught by the Mem

[PATCH] D22969: [analyzer] Fix execution permissions for scan-build-py.

2016-07-29 Thread Artem Dergachev via cfe-commits
NoQ created this revision. NoQ added reviewers: zaks.anna, dcoughlin, rizsotto.mailinglist. NoQ added a subscriber: cfe-commits. It seems that the executable scripts are not marked as executable in the repository, so i had to `chmod +x` them before using. Because the old scan-build is `+x`, i gu

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-29 Thread Jonathan B Coe via cfe-commits
jbcoe marked 9 inline comments as done. jbcoe added a comment. Repository: rL LLVM https://reviews.llvm.org/D22513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-29 Thread Jonathan B Coe via cfe-commits
jbcoe set the repository for this revision to rL LLVM. jbcoe updated this revision to Diff 66161. jbcoe added a comment. Fix MSVC warning. Repository: rL LLVM https://reviews.llvm.org/D22513 Files: clang-tidy/cppcoreguidelines/CMakeLists.txt clang-tidy/cppcoreguidelines/CppCoreGuidelines

RE: r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Keane, Erich via cfe-commits
Sure, looking into it now. From: Andrey Bokhanko [mailto:andreybokha...@gmail.com] Sent: Friday, July 29, 2016 11:57 AM To: Mike Aizatsky ; Keane, Erich Cc: cfe-commits Subject: Re: r277134 - [GCC] Support for __final specifier Mike, Thanks for letting me know. I committed a patch authored by E

Re: r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Andrey Bokhanko via cfe-commits
Mike, Thanks for letting me know. I committed a patch authored by Erich (CCed); Erich, could you, please, investigate? Yours, Andrey On Fri, Jul 29, 2016 at 9:35 PM, Mike Aizatsky wrote: > Andrey, > > This change breaks the bot: > > http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fa

[PATCH] D22968: [analyzer] A checker for macOS-specific bool-like objects.

2016-07-29 Thread Artem Dergachev via cfe-commits
NoQ created this revision. NoQ added reviewers: zaks.anna, dcoughlin. NoQ added a subscriber: cfe-commits. If you store a boolean value as an Objective-C object `NSNumber *X`, and want to see if it's true or false, than it's not a good idea to write this check as 'X == YES'. Because X is a point

Re: r276979 - [OpenMP][CUDA] Do not forward OpenMP flags for CUDA device actions.

2016-07-29 Thread Hans Wennborg via cfe-commits
The test was failing on 3.9 on my Mac, and I noticed there were some follow-up commits, so I've merged r276983, r277138, r277141 in r277193. On Thu, Jul 28, 2016 at 10:18 AM, Hans Wennborg wrote: > I've merged it in r277004. > > Cheers, > Hans > > On Thu, Jul 28, 2016 at 10:15 AM, Samuel F Antao

Re: [PATCH] D22702: [libcxx]Missing default argument for flag_type parameter in one of std::basic_regex constructors

2016-07-29 Thread Jason Liu via cfe-commits
jasonliu marked an inline comment as done. Comment at: test/std/re/re.regex/re.regex.construct/ptr_size.pass.cpp:31 @@ +30,3 @@ +test("\\(a\\)", 5, 0); +test("\\(a[bc]\\)", 9, 0); +test("\\(a\\([bc]\\)\\)", 13, 0); Comment addressed in the new patch. T

Re: [PATCH] D22702: [libcxx]Missing default argument for flag_type parameter in one of std::basic_regex constructors

2016-07-29 Thread Jason Liu via cfe-commits
jasonliu updated this revision to Diff 66153. jasonliu added a comment. Address @hubert.reinterpretcast 's comment about the test case. Added more cases to test "size" parameter in the constructor. https://reviews.llvm.org/D22702 Files: include/regex test/std/re/re.regex/re.regex.construct

Re: [PATCH] D22717: Improve documentation of the type safety attributes

2016-07-29 Thread Yunzhong Gao via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277192: Improve documentation of the type safety attributes. (authored by ygao). Changed prior to commit: https://reviews.llvm.org/D22717?vs=65206&id=66155#toc Repository: rL LLVM https://reviews.ll

r277192 - Improve documentation of the type safety attributes.

2016-07-29 Thread Yunzhong Gao via cfe-commits
Author: ygao Date: Fri Jul 29 13:34:21 2016 New Revision: 277192 URL: http://llvm.org/viewvc/llvm-project?rev=277192&view=rev Log: Improve documentation of the type safety attributes. 1. Add description of the arguments to these attributes. 2. Add missing declarations to some of the MPI code examp

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-29 Thread Michael Kuperstein via cfe-commits
I care highly about my commits. It's just that it's not actually my commit, I committed it on Amjad's behalf before he had commit permissions. :-) I think Eli missed the "Patch by" line when he originally added me to the thread. On Fri, Jul 29, 2016 at 11:16 AM, Gerolf Hoflehner wrote: > Sounds

Re: r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Mike Aizatsky via cfe-commits
Andrey, This change breaks the bot: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/15093 ==15371==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x733784d in clang::Parser::ParseOptionalCXX11VirtSpecifierSeq(clang::VirtSpecifiers&, bool, clang::SourceLocation)

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-29 Thread Gerolf Hoflehner via cfe-commits
Sounds like you care highly about your commit :-) > On Jul 29, 2016, at 10:10 AM, Michael Kuperstein wrote: > > mkuper resigned from this revision. > mkuper removed a reviewer: mkuper. > mkuper added a comment. > > I really don't understand anything about this. :-) > > > https://reviews.ll

Re: [PATCH] D22637: [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-29 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277181: [OpenCL] Add extension cl_khr_mipmap_image to clang (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D22637?vs=65773&id=66150#toc Repository: rL LLVM https://reviews.l

r277181 - [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-29 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Jul 29 12:52:34 2016 New Revision: 277181 URL: http://llvm.org/viewvc/llvm-project?rev=277181&view=rev Log: [OpenCL] Add extension cl_khr_mipmap_image to clang Adding extension cl_khr_mipmap_image to clang's OpenCL Extensions and initiated inside AMDGPU Target. Patch by

Re: [PATCH] D22767: [OpenCL] Added CLK_ABGR definition for get_image_channel_order return value

2016-07-29 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277179: [OpenCL] Added CLK_ABGR definition for get_image_channel_order return value (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D22767?vs=65375&id=66149#toc Repository: rL

r277179 - [OpenCL] Added CLK_ABGR definition for get_image_channel_order return value

2016-07-29 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Jul 29 12:50:10 2016 New Revision: 277179 URL: http://llvm.org/viewvc/llvm-project?rev=277179&view=rev Log: [OpenCL] Added CLK_ABGR definition for get_image_channel_order return value Added CLK_ABGR definition for get_image_channel_order return value inside opencl-c.h fi

r277175 - Reapply r277058: "[ObjC] Consider availability of context when emitting availability warnings"

2016-07-29 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Fri Jul 29 12:37:38 2016 New Revision: 277175 URL: http://llvm.org/viewvc/llvm-project?rev=277175&view=rev Log: Reapply r277058: "[ObjC] Consider availability of context when emitting availability warnings" Modified: cfe/trunk/include/clang/AST/DeclBase.h cfe/trunk/in

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
Oh, my bad...Fixed. Thanks! On Fri, Jul 29, 2016 at 6:32 PM, Benjamin Kramer wrote: > Sorry for being overly dense, you misspelled 'typename' in the docs. > > On Fri, Jul 29, 2016 at 5:59 PM, Haojian Wu wrote: > > No, this is not templateName patch. The templateName one is in r277155. > > > > O

r277174 - Fix a typo in document.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 12:30:13 2016 New Revision: 277174 URL: http://llvm.org/viewvc/llvm-project?rev=277174&view=rev Log: Fix a typo in document. Modified: cfe/trunk/docs/LibASTMatchersReference.html cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/docs/Li

Re: [PATCH] D22507: Clang-tidy - Enum misuse check

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/EnumMisuseCheck.cpp:40 @@ +39,3 @@ + +// Return the number of EnumConstantDecls in an EnumDecl. +static int enumLength(const EnumDecl *EnumDec) { Doxygen comment here as well. Comme

Re: [PATCH] D22698: [libcxx] Missing member types 'traits_type' and 'string_type' in class basic_regex

2016-07-29 Thread Jason Liu via cfe-commits
jasonliu added a comment. Ping? https://reviews.llvm.org/D22698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r274991 - [clang-cl] Add support for /Zd

2016-07-29 Thread Hans Wennborg via cfe-commits
On Fri, Jul 29, 2016 at 10:12 AM, Nico Weber wrote: > On Thu, Jul 28, 2016 at 9:03 PM, Hans Wennborg wrote: >> >> Sorry, I was supposed to chime in here. >> >> I don't have a strong opinion on this, but I don't think it's a >> problem for us to allow the -gline-tables-only spelling in addition to

Re: r274991 - [clang-cl] Add support for /Zd

2016-07-29 Thread Nico Weber via cfe-commits
On Thu, Jul 28, 2016 at 9:03 PM, Hans Wennborg wrote: > Sorry, I was supposed to chime in here. > > I don't have a strong opinion on this, but I don't think it's a > problem for us to allow the -gline-tables-only spelling in addition to > /Zd. > > It just doesn't seem like a big deal to me. > Do

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-29 Thread Michael Kuperstein via cfe-commits
mkuper resigned from this revision. mkuper removed a reviewer: mkuper. mkuper added a comment. I really don't understand anything about this. :-) https://reviews.llvm.org/D22900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

r277167 - Initial vectorization support for svml calls (short vector math library).

2016-07-29 Thread Matt Masten via cfe-commits
Author: mmasten Date: Fri Jul 29 11:44:24 2016 New Revision: 277167 URL: http://llvm.org/viewvc/llvm-project?rev=277167&view=rev Log: Initial vectorization support for svml calls (short vector math library). Differential Revision: https://reviews.llvm.org/D19544 Modified: cfe/trunk/include/c

Re: [PATCH] D19544: Pass for translating math intrinsics to math library calls.

2016-07-29 Thread Matt via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277166: Initial support for vectorization using svml (short vector math library). (authored by mmasten). Changed prior to commit: https://reviews.llvm.org/D19544?vs=65152&id=66141#toc Repository: rL

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Benjamin Kramer via cfe-commits
Sorry for being overly dense, you misspelled 'typename' in the docs. On Fri, Jul 29, 2016 at 5:59 PM, Haojian Wu wrote: > No, this is not templateName patch. The templateName one is in r277155. > > On Fri, Jul 29, 2016 at 4:45 PM, Benjamin Kramer > wrote: >> >> On Fri, Jul 29, 2016 at 3:57 PM, H

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500735, @vmiklos wrote: > Yes, exactly, so not easy to customize I guess. Aha, alright. Well, doesn't matter too much. LGTM. https://reviews.llvm.org/D21814 ___ cfe-commits mailing list

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. Yes, exactly, so not easy to customize I guess. https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500629, @vmiklos wrote: > In https://reviews.llvm.org/D21814#500621, @omtcyfz wrote: > > > P.S. not sure whether we have to write `clang-rename: for the -new-name > > option: must be specified` out. We already launched `clang-rename` wh

Re: [PATCH] D22963: [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277155: [ASTMatcher] Add templateName matcher. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22963?vs=66129&id=66130#toc Repository: rL LLVM https://reviews.llvm.org/D2296

r277155 - [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 10:45:11 2016 New Revision: 277155 URL: http://llvm.org/viewvc/llvm-project?rev=277155&view=rev Log: [ASTMatcher] Add templateName matcher. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D22963 Modified: cf

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
No, this is not templateName patch. The templateName one is in r277155. On Fri, Jul 29, 2016 at 4:45 PM, Benjamin Kramer wrote: > On Fri, Jul 29, 2016 at 3:57 PM, Haojian Wu via cfe-commits > wrote: > > Author: hokein > > Date: Fri Jul 29 08:57:27 2016 > > New Revision: 277142 > > > > URL: http

Re: [PATCH] D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments infunction call expression.

2016-07-29 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:84-87 @@ -80,4 +83,6 @@ if (const auto *Used = Result.Nodes.getNodeAs("used")) { -if (const auto *Specialization = -dyn_cast(Used)) +if (const auto *FD = dyn_cast(

Re: [PATCH] D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments infunction call expression.

2016-07-29 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 66131. hokein added a comment. Use new ast matchers to simplify the code. Updating D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments in ===

Re: [PATCH] D22963: [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 66129. hokein marked an inline comment as done. hokein added a comment. Fix code style. https://reviews.llvm.org/D22963 Files: docs/LibASTMatchersReference.html include/clang/AST/ASTTypeTraits.h include/clang/ASTMatchers/ASTMatchers.h lib/AST/ASTType

Re: [PATCH] D22963: [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg Comment at: unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:550 @@ +549,3 @@ +"template class Y {};" + "X xi;", +classTemplateSpecializationDecl(hasAnyTempl

[PATCH] D22963: [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: klimek. hokein added a subscriber: cfe-commits. Herald added a subscriber: klimek. https://reviews.llvm.org/D22963 Files: docs/LibASTMatchersReference.html include/clang/AST/ASTTypeTraits.h include/clang/ASTMatchers/ASTMatchers.h lib/

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Benjamin Kramer via cfe-commits
On Fri, Jul 29, 2016 at 3:57 PM, Haojian Wu via cfe-commits wrote: > Author: hokein > Date: Fri Jul 29 08:57:27 2016 > New Revision: 277142 > > URL: http://llvm.org/viewvc/llvm-project?rev=277142&view=rev > Log: > [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in > functionDe

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. In https://reviews.llvm.org/D21814#500621, @omtcyfz wrote: > P.S. not sure whether we have to write `clang-rename: for the -new-name > option: must be specified` out. We already launched `clang-rename` what else > could've give us an error? You mean how is that error

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. P.S. not sure whether we have to write `clang-rename: for the -new-name option: must be specified` out. We already launched `clang-rename` what else could've give us an error? https://reviews.llvm.org/D21814 ___ cfe-commit

Re: [PATCH] D22957: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277142: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22957?vs=66094&id=66119#toc Repository: rL LLV

r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 08:57:27 2016 New Revision: 277142 URL: http://llvm.org/viewvc/llvm-project?rev=277142&view=rev Log: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: ht

r277141 - Add missing '-no-canonical-prefixes' in test.

2016-07-29 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Fri Jul 29 08:45:03 2016 New Revision: 277141 URL: http://llvm.org/viewvc/llvm-project?rev=277141&view=rev Log: Add missing '-no-canonical-prefixes' in test. Modified: cfe/trunk/test/Driver/offloading-interoperability.c Modified: cfe/trunk/test/Driver/offloading-interop

Re: [PATCH] D22513: [clang-tidy] add check cppcoreguidelines-special-member-functions

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp:60 @@ +59,3 @@ + } +} + Btw, with MSVC, this will give you a "not all control paths return a value" warning. You should put an llvm_unreachable() after

r277138 - Make test not fail on hosts where the default omp library is gomp.

2016-07-29 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Jul 29 08:07:09 2016 New Revision: 277138 URL: http://llvm.org/viewvc/llvm-project?rev=277138&view=rev Log: Make test not fail on hosts where the default omp library is gomp. This is the case on some linuxes, just force libomp so we get the desired results. Modified: cf

Re: [PATCH] D22824: MathExtras.h: add LLVM_CONSTEXPR where simple

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! Comment at: include/llvm/Support/MathExtras.h:672 @@ -669,2 +671,3 @@ inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-29 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D22668#500340, @hubert.reinterpretcast wrote: > In https://reviews.llvm.org/D22668#499164, @aaron.ballman wrote: > > > I don't suppose there's a way to test these changes, is there? > > > It's a utility class (which is not even used yet).

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. > Just write a FIXME then, I think I may look into that on the next week or > somewhen. Done. > Most of the time I use Foo->Bar renaming in tests Done, I've renamed ClaN->KlaN to FooN->BarN. https://reviews.llvm.org/D21814 ___

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Miklos Vajna via cfe-commits
vmiklos updated this revision to Diff 66110. https://reviews.llvm.org/D21814 Files: clang-rename/RenamingAction.cpp clang-rename/RenamingAction.h clang-rename/tool/ClangRename.cpp docs/clang-rename.rst test/clang-rename/ClassFindByName.cpp test/clang-rename/ClassTestMulti.cpp test/c

  1   2   >