r290587 - Add reference/non-reference mismatch test.

2016-12-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 27 00:18:22 2016 New Revision: 290587 URL: http://llvm.org/viewvc/llvm-project?rev=290587=rev Log: Add reference/non-reference mismatch test. Modified: cfe/trunk/test/SemaTemplate/temp_arg_nontype.cpp Modified: cfe/trunk/test/SemaTemplate/temp_arg_nontype.cpp

r290586 - Work around a standard defect: template argument deduction for non-type

2016-12-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 27 00:14:37 2016 New Revision: 290586 URL: http://llvm.org/viewvc/llvm-project?rev=290586=rev Log: Work around a standard defect: template argument deduction for non-type template parameters of reference type basically doesn't work, because we're always deducing from

Re: r290577 - Add a test for `const` folding introduced by r290297. NFC.

2016-12-26 Thread George Burgess IV via cfe-commits
r290584 :) On Mon, Dec 26, 2016 at 8:30 PM, George Burgess IV < george.burgess...@gmail.com> wrote: > SG; working on a follow-up now. Thanks! > > On Mon, Dec 26, 2016 at 8:26 PM, Richard Smith > wrote: > >> On 26 December 2016 at 20:01, George Burgess IV via cfe-commits <

r290584 - Emit CCEDiags when evaluating a const variable.

2016-12-26 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Dec 26 23:33:20 2016 New Revision: 290584 URL: http://llvm.org/viewvc/llvm-project?rev=290584=rev Log: Emit CCEDiags when evaluating a const variable. This addresses post-review feedback from r290577. Modified: cfe/trunk/lib/AST/ExprConstant.cpp

Re: r290577 - Add a test for `const` folding introduced by r290297. NFC.

2016-12-26 Thread George Burgess IV via cfe-commits
SG; working on a follow-up now. Thanks! On Mon, Dec 26, 2016 at 8:26 PM, Richard Smith wrote: > On 26 December 2016 at 20:01, George Burgess IV via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: gbiv >> Date: Mon Dec 26 22:01:22 2016 >> New Revision:

Re: r290577 - Add a test for `const` folding introduced by r290297. NFC.

2016-12-26 Thread Richard Smith via cfe-commits
On 26 December 2016 at 20:01, George Burgess IV via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: gbiv > Date: Mon Dec 26 22:01:22 2016 > New Revision: 290577 > > URL: http://llvm.org/viewvc/llvm-project?rev=290577=rev > Log: > Add a test for `const` folding introduced by r290297.

r290580 - [AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects.

2016-12-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Dec 26 22:04:57 2016 New Revision: 290580 URL: http://llvm.org/viewvc/llvm-project?rev=290580=rev Log: [AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects. Modified:

r290578 - Revert r290575 "[AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects."

2016-12-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Dec 26 22:03:25 2016 New Revision: 290578 URL: http://llvm.org/viewvc/llvm-project?rev=290578=rev Log: Revert r290575 "[AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects." I failed to merge this with r290574.

r290579 - Revert r290574 "foo"

2016-12-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Dec 26 22:03:29 2016 New Revision: 290579 URL: http://llvm.org/viewvc/llvm-project?rev=290579=rev Log: Revert r290574 "foo" This was supposed to be merged with another commit with a real commit message. Sorry. Modified:

r290577 - Add a test for `const` folding introduced by r290297. NFC.

2016-12-26 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Dec 26 22:01:22 2016 New Revision: 290577 URL: http://llvm.org/viewvc/llvm-project?rev=290577=rev Log: Add a test for `const` folding introduced by r290297. NFC. AFAICT, we didn't add a test targeted at the new "const can sometimes act as constexpr" behavior introduced by

r290576 - Factor out repeated code for deducing a non-type template parameter as a given

2016-12-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Dec 26 21:59:58 2016 New Revision: 290576 URL: http://llvm.org/viewvc/llvm-project?rev=290576=rev Log: Factor out repeated code for deducing a non-type template parameter as a given argument value. No functionality change intended. Modified:

Re: r290574 - foo

2016-12-26 Thread Craig Topper via cfe-commits
Oops. I failed to squash this into another commit properly. Reverting momentarily. ~Craig On Mon, Dec 26, 2016 at 7:46 PM, Craig Topper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ctopper > Date: Mon Dec 26 21:46:13 2016 > New Revision: 290574 > > URL:

r290575 - [AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects.

2016-12-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Dec 26 21:46:16 2016 New Revision: 290575 URL: http://llvm.org/viewvc/llvm-project?rev=290575=rev Log: [AVX-512] Replace masked 512-bit pmuldq and pmuludq builtins with the newly added unmasked versions and selects. Modified: cfe/trunk/lib/Headers/avx512fintrin.h

r290574 - foo

2016-12-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Dec 26 21:46:13 2016 New Revision: 290574 URL: http://llvm.org/viewvc/llvm-project?rev=290574=rev Log: foo Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def cfe/trunk/lib/Headers/avx512fintrin.h Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def URL:

Re: r290533 - Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows

2016-12-26 Thread Saleem Abdulrasool via cfe-commits
On Mon, Dec 26, 2016 at 6:22 PM, Vitaly Buka wrote: > This fails here http://lab.llvm.org:8011/builders/sanitizer-windows/ > builds/3537/steps/run%20tests/logs/stdio > Thanks for letting me know. Should be addressed in SVN r290571. > > On Sun, Dec 25, 2016 at 7:45 PM

[PATCH] D15075: No error for conflict between inputs\outputs and clobber list

2016-12-26 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. These patches break asan tests: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/528/steps/check-asan%20in%20gcc%20build/logs/stdio Repository: rL LLVM https://reviews.llvm.org/D15075 ___ cfe-commits

r290569 - Driver: switch Windows to static RelocModel

2016-12-26 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Dec 26 20:20:35 2016 New Revision: 290569 URL: http://llvm.org/viewvc/llvm-project?rev=290569=rev Log: Driver: switch Windows to static RelocModel Windows uses PE/COFF which is inherently position independent. The use of the PIC model is unnecessary. In fact, we

Re: r290533 - Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows

2016-12-26 Thread Vitaly Buka via cfe-commits
This fails here http://lab.llvm.org:8011/builders/sanitizer-windows/builds/3537/steps/run%20tests/logs/stdio On Sun, Dec 25, 2016 at 7:45 PM Saleem Abdulrasool via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: compnerd > Date: Sun Dec 25 21:35:24 2016 > New Revision: 290533 > > URL:

r290567 - Check and build conversion sequences for non-type template arguments in

2016-12-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Dec 26 20:02:09 2016 New Revision: 290567 URL: http://llvm.org/viewvc/llvm-project?rev=290567=rev Log: Check and build conversion sequences for non-type template arguments in dependent contexts when processing the template in C++11 and C++14, just like we do in C++98 and

r290561 - [DOXYGEN] Improved doxygen comments for x86 intrinsics.

2016-12-26 Thread Ekaterina Romanova via cfe-commits
Author: kromanova Date: Mon Dec 26 18:49:38 2016 New Revision: 290561 URL: http://llvm.org/viewvc/llvm-project?rev=290561=rev Log: [DOXYGEN] Improved doxygen comments for x86 intrinsics. Improved doxygen comments for the following intrinsics headers: __wmmintrin_pclmul.h, bmiintrin.h,

r290560 - [PM] The new pass manager requires a registered target for these, and

2016-12-26 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Mon Dec 26 18:31:34 2016 New Revision: 290560 URL: http://llvm.org/viewvc/llvm-project?rev=290560=rev Log: [PM] The new pass manager requires a registered target for these, and given that they hard code specific triples that seems reasonable so add the REQUIRES. Modified:

r290558 - [PH] Teach the new PM code path to support -disable-llvm-passes.

2016-12-26 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Mon Dec 26 18:13:09 2016 New Revision: 290558 URL: http://llvm.org/viewvc/llvm-project?rev=290558=rev Log: [PH] Teach the new PM code path to support -disable-llvm-passes. This is kind of funny because I specifically did work to make this easy and then it didn't actually

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

2016-12-26 Thread Mads Ravn via Phabricator via cfe-commits
madsravn updated this revision to Diff 82521. madsravn added a comment. Changes based on comments. Shortened the ast matcher. https://reviews.llvm.org/D27210 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringCompareCheck.cpp

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

2016-12-26 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:37 + hasArgument(0, expr().bind("str2")), argumentCountIs(1), + callee(memberExpr(has(implicitCastExpr(anyOf( +

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

2016-12-26 Thread Mads Ravn via Phabricator via cfe-commits
madsravn added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:37 + hasArgument(0, expr().bind("str2")), argumentCountIs(1), + callee(memberExpr(has(implicitCastExpr(anyOf( +

r290552 - Update comment to match dr1770.

2016-12-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Dec 26 16:28:29 2016 New Revision: 290552 URL: http://llvm.org/viewvc/llvm-project?rev=290552=rev Log: Update comment to match dr1770. Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp URL:

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

2016-12-26 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:25 +"operator instead"; +static const StringRef GuaranteeMessage = "'compare' is not guaranteed to " +

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

2016-12-26 Thread Mads Ravn via Phabricator via cfe-commits
madsravn updated this revision to Diff 82518. madsravn added a comment. Reviews based on comments. Removed check for suspicious string compare. https://reviews.llvm.org/D27210 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringCompareCheck.cpp

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

2016-12-26 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a reviewer: malcolm.parsons. malcolm.parsons added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:25 +"operator instead"; +static const StringRef GuaranteeMessage = "'compare' is not guaranteed to

[PATCH] D27815: [clang-tidy] Add obvious module for obvious bugs

2016-12-26 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added a comment. PVS-Studio implements tons of checks of this variety. See e.g. http://www.viva64.com/en/b/0299/#ID0E4KBM They don't have a catchy name for the category either, but perhaps "suspicious-" or "copypaste-" would do. I agree with Aaron that "thinko-" would be a little

[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

2016-12-26 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added inline comments. Comment at: clang-tidy/obvious/InvalidRangeCheck.cpp:62 + auto CallsAlgorithm = hasDeclaration( + functionDecl(Names.size() > 0 ? hasAnyName(Names) : anything())); + Prazek wrote: > alexfh wrote: > > Does this check make

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

2016-12-26 Thread Mads Ravn via cfe-commits
Hi, The last mail was only meant to contain the question about the comment to misc-suspicious-string-compare check. Do you reckon I should remove that match from my check? Or should we move it? Best regards, Mads Ravn On Mon, Dec 26, 2016 at 8:48 PM Mads Ravn via Phabricator <

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

2016-12-26 Thread Mads Ravn via Phabricator via cfe-commits
madsravn marked 2 inline comments as done. madsravn added inline comments. Comment at: clang-tidy/misc/MiscStringCompareCheck.h:24 +/// http://clang.llvm.org/extra/clang-tidy/checks/misc-string-compare-check.html +class MiscStringCompareCheck : public ClangTidyCheck { +public:

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

2016-12-26 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/misc/StringCompareCheck.cpp:25 +"operator instead"; +static const StringRef GuaranteeMessage = "'compare' is not guaranteed to " +

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

2016-12-26 Thread Mads Ravn via Phabricator via cfe-commits
madsravn updated this revision to Diff 82513. madsravn added a comment. Updated according to comments. I have decided to keep the fixit for match1 a FIXME. https://reviews.llvm.org/D27210 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp

r290547 - Wdocumentation fix

2016-12-26 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Mon Dec 26 12:11:49 2016 New Revision: 290547 URL: http://llvm.org/viewvc/llvm-project?rev=290547=rev Log: Wdocumentation fix Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp URL:

r290541 - Fix build error caused by r290539.

2016-12-26 Thread Marina Yatsina via cfe-commits
Author: myatsina Date: Mon Dec 26 07:16:40 2016 New Revision: 290541 URL: http://llvm.org/viewvc/llvm-project?rev=290541=rev Log: Fix build error caused by r290539. Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp URL:

[PATCH] D15075: No error for conflict between inputs\outputs and clobber list

2016-12-26 Thread Marina Yatsina via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290539: [inline-asm]No error for conflict between inputs\outputs and clobber list (authored by myatsina). Changed prior to commit: https://reviews.llvm.org/D15075?vs=74500=82495#toc Repository: rL

r290539 - [inline-asm]No error for conflict between inputs\outputs and clobber list

2016-12-26 Thread Marina Yatsina via cfe-commits
Author: myatsina Date: Mon Dec 26 06:23:42 2016 New Revision: 290539 URL: http://llvm.org/viewvc/llvm-project?rev=290539=rev Log: [inline-asm]No error for conflict between inputs\outputs and clobber list According to extended asm syntax, a case where the clobber list includes a variable from