r335805 - [modules] Ensure that an in-class function definition is attached to the

2018-06-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jun 27 18:07:28 2018 New Revision: 335805 URL: http://llvm.org/viewvc/llvm-project?rev=335805&view=rev Log: [modules] Ensure that an in-class function definition is attached to the declaration of the function that ends up in the primary definition of the class. ... at lea

r335807 - [modules] Do not serialize / deserialize pending new/delete mismatch

2018-06-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jun 27 18:57:04 2018 New Revision: 335807 URL: http://llvm.org/viewvc/llvm-project?rev=335807&view=rev Log: [modules] Do not serialize / deserialize pending new/delete mismatch checks across module boundaries. This was causing us to load constructor definitions for all con

r335925 - PR37979: integral promotions in C++ treat enum bit-fields like enums,

2018-06-28 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jun 28 14:17:55 2018 New Revision: 335925 URL: http://llvm.org/viewvc/llvm-project?rev=335925&view=rev Log: PR37979: integral promotions in C++ treat enum bit-fields like enums, not like bit-fields. We used to get this right "by accident", because conversions for the sele

r336013 - Specify an explicit underlying type for this enum to fix Windows

2018-06-29 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 29 13:41:23 2018 New Revision: 336013 URL: http://llvm.org/viewvc/llvm-project?rev=336013&view=rev Log: Specify an explicit underlying type for this enum to fix Windows buildbots. On Windows targets, enums always get an underlying type of 'int', even if they have wide

Re: r335925 - PR37979: integral promotions in C++ treat enum bit-fields like enums,

2018-06-29 Thread Richard Smith via cfe-commits
lang-x86_64-expensive-checks-win/builds/10599 > > Failing Tests (1): > Clang :: CXX/conv/conv.prom/p5.cpp > > Please have a look? > > Thanks > > Galina > > On Thu, Jun 28, 2018 at 2:17 PM, Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrot

r336016 - [modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but

2018-06-29 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 29 13:46:25 2018 New Revision: 336016 URL: http://llvm.org/viewvc/llvm-project?rev=336016&view=rev Log: [modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but not the corresponding location information) earlier. We need the type as written in order to

r336021 - PR33924: merge local declarations that have linkage of some kind within

2018-06-29 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 29 14:58:50 2018 New Revision: 336021 URL: http://llvm.org/viewvc/llvm-project?rev=336021&view=rev Log: PR33924: merge local declarations that have linkage of some kind within merged function definitions; also merge functions with deduced return types. This seems like

r336153 - Per C++ [over.match.copy]p1, direct-initialization of a reference can

2018-07-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jul 2 16:25:22 2018 New Revision: 336153 URL: http://llvm.org/viewvc/llvm-project?rev=336153&view=rev Log: Per C++ [over.match.copy]p1, direct-initialization of a reference can only invoke converting constructors of the reference's underlying type. Modified: cfe/trun

r336231 - Factor out Clang's desired 8MB stack size constant from the various

2018-07-03 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 3 14:34:13 2018 New Revision: 336231 URL: http://llvm.org/viewvc/llvm-project?rev=336231&view=rev Log: Factor out Clang's desired 8MB stack size constant from the various places we hardcode it. Added: cfe/trunk/include/clang/Basic/Stack.h Modified: cfe/trunk/

r336240 - PR33924: merge local declarations that have linkage of some kind within

2018-07-03 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 3 19:25:38 2018 New Revision: 336240 URL: http://llvm.org/viewvc/llvm-project?rev=336240&view=rev Log: PR33924: merge local declarations that have linkage of some kind within merged function definitions; also merge functions with deduced return types. This seems like

r336480 - P0806R2 Implicit capture of this with a capture-default of [=] is

2018-07-06 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jul 6 22:58:48 2018 New Revision: 336480 URL: http://llvm.org/viewvc/llvm-project?rev=336480&view=rev Log: P0806R2 Implicit capture of this with a capture-default of [=] is deprecated. Add a -Wdeprecated warning for this in C++2a onwards. (In C++17 and before, there isn'

r336738 - Fix determination of whether a reinterpret_cast casts away constness.

2018-07-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 10 16:04:35 2018 New Revision: 336738 URL: http://llvm.org/viewvc/llvm-project?rev=336738&view=rev Log: Fix determination of whether a reinterpret_cast casts away constness. The "casts away constness" check doesn't care at all how the different layers of the source an

r336745 - DR330: look through array types when forming the cv-decomposition of a type.

2018-07-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 10 17:19:19 2018 New Revision: 336745 URL: http://llvm.org/viewvc/llvm-project?rev=336745&view=rev Log: DR330: look through array types when forming the cv-decomposition of a type. This allows more qualification conversions, eg. conversion from 'int *(*)[]' -> 'con

r336746 - PR38095: Allow constant-folding of loads through bitcasted pointers if

2018-07-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 10 17:29:05 2018 New Revision: 336746 URL: http://llvm.org/viewvc/llvm-project?rev=336746&view=rev Log: PR38095: Allow constant-folding of loads through bitcasted pointers if the bitcast only changed cvr-qualifications within the pointer type. Modified: cfe/trunk/

r336747 - [docs] List correct default for -ftemplate-depth; also add missing

2018-07-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 10 17:34:54 2018 New Revision: 336747 URL: http://llvm.org/viewvc/llvm-project?rev=336747&view=rev Log: [docs] List correct default for -ftemplate-depth; also add missing documentation for -fconstexpr-steps. Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/

r336852 - Fix determination of whether one set of cvr-qualifiers is compatible

2018-07-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jul 11 14:07:04 2018 New Revision: 336852 URL: http://llvm.org/viewvc/llvm-project?rev=336852&view=rev Log: Fix determination of whether one set of cvr-qualifiers is compatible with another in template argument deduction. We happened to typically get away with getting thi

r336867 - Fix deduction for conversion function templates converting to reference

2018-07-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jul 11 16:19:41 2018 New Revision: 336867 URL: http://llvm.org/viewvc/llvm-project?rev=336867&view=rev Log: Fix deduction for conversion function templates converting to reference types. We previously tried to use the "parameter is a reference" logic here, but that doesn'

r336931 - Add tests for function conversions in conversion function template

2018-07-12 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jul 12 11:49:13 2018 New Revision: 336931 URL: http://llvm.org/viewvc/llvm-project?rev=336931&view=rev Log: Add tests for function conversions in conversion function template deduction. Modified: cfe/trunk/lib/Sema/SemaTemplateDeduction.cpp cfe/trunk/test/CXX/temp

r336946 - PR38141: check whether noexcept-specifications are equivalent in redeclarations

2018-07-12 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jul 12 14:11:25 2018 New Revision: 336946 URL: http://llvm.org/viewvc/llvm-project?rev=336946&view=rev Log: PR38141: check whether noexcept-specifications are equivalent in redeclarations Modified: cfe/trunk/lib/Sema/SemaExceptionSpec.cpp cfe/trunk/test/CXX/except

r336962 - PR38136: improve handling of template argument deduction of non-trailing

2018-07-12 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jul 12 16:32:39 2018 New Revision: 336962 URL: http://llvm.org/viewvc/llvm-project?rev=336962&view=rev Log: PR38136: improve handling of template argument deduction of non-trailing function parameter packs. This makes our handling of non-trailing function parameter packs

r337047 - Use external layout information to layout bit-fields for MS ABI.

2018-07-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jul 13 14:07:42 2018 New Revision: 337047 URL: http://llvm.org/viewvc/llvm-project?rev=337047&view=rev Log: Use external layout information to layout bit-fields for MS ABI. Patch by Aleksandr Urakov! Differential Revision: https://reviews.llvm.org/D49227 Added: cfe/

r337048 - Make BuiltinType constructor private, and befriend ASTContext.

2018-07-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jul 13 14:29:31 2018 New Revision: 337048 URL: http://llvm.org/viewvc/llvm-project?rev=337048&view=rev Log: Make BuiltinType constructor private, and befriend ASTContext. This reflects the fact that only ASTContext should ever create an instance of BuiltinType, and matche

r337226 - Restructure checking for, and warning on, lifetime extension.

2018-07-16 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jul 16 17:11:41 2018 New Revision: 337226 URL: http://llvm.org/viewvc/llvm-project?rev=337226&view=rev Log: Restructure checking for, and warning on, lifetime extension. This change implements C++ DR1696, which makes initialization of a reference member of a class from a

r337329 - Restructure checking for, and warning on, lifetime extension.

2018-07-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 17 15:24:09 2018 New Revision: 337329 URL: http://llvm.org/viewvc/llvm-project?rev=337329&view=rev Log: Restructure checking for, and warning on, lifetime extension. This change implements C++ DR1696, which makes initialization of a reference member of a class from a

r337330 - Replace LLVM_ALIGNAS with just alignas.

2018-07-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 17 15:24:11 2018 New Revision: 337330 URL: http://llvm.org/viewvc/llvm-project?rev=337330&view=rev Log: Replace LLVM_ALIGNAS with just alignas. Various places in Clang and LLVM are already using alignas; it seems our minimum host configuration now requires it. Modifi

r337422 - DR330: when determining whether a cast casts away constness, consider

2018-07-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jul 18 13:13:36 2018 New Revision: 337422 URL: http://llvm.org/viewvc/llvm-project?rev=337422&view=rev Log: DR330: when determining whether a cast casts away constness, consider qualifiers from all levels matching a multidimensional array. For example, this allows casting

r373862 - [Sema] Avoids an assertion failure when an invalid conversion declaration is used

2019-10-06 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Oct 6 11:40:59 2019 New Revision: 373862 URL: http://llvm.org/viewvc/llvm-project?rev=373862&view=rev Log: [Sema] Avoids an assertion failure when an invalid conversion declaration is used Summary: When using a user-defined conversion function template with a deduced re

r373866 - Implements CWG 1601 in [over.ics.rank/4.2]

2019-10-06 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Oct 6 11:50:40 2019 New Revision: 373866 URL: http://llvm.org/viewvc/llvm-project?rev=373866&view=rev Log: Implements CWG 1601 in [over.ics.rank/4.2] Summary: The overload resolution for enums with a fixed underlying type has changed in the C++14 standard. This patch im

r373874 - Fix behavior of __builtin_bit_cast when the From and To types are the

2019-10-06 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Oct 6 19:45:12 2019 New Revision: 373874 URL: http://llvm.org/viewvc/llvm-project?rev=373874&view=rev Log: Fix behavior of __builtin_bit_cast when the From and To types are the same. We were missing the lvalue-to-rvalue conversion entirely in this case, and in fact still

r373875 - [c++20] Check for a class-specific operator delete when deleting an

2019-10-06 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Oct 6 20:14:28 2019 New Revision: 373875 URL: http://llvm.org/viewvc/llvm-project?rev=373875&view=rev Log: [c++20] Check for a class-specific operator delete when deleting an object of class type with a virtual destructor. Modified: cfe/trunk/lib/AST/ExprConstant.cpp

r374119 - Fix crash or wrong code bug if a lifetime-extended temporary contains a

2019-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 8 14:26:03 2019 New Revision: 374119 URL: http://llvm.org/viewvc/llvm-project?rev=374119&view=rev Log: Fix crash or wrong code bug if a lifetime-extended temporary contains a "non-constant" value. If the constant evaluator evaluates part of a variable initializer, in

r374130 - Factor out some duplication. NFC.

2019-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 8 16:37:49 2019 New Revision: 374130 URL: http://llvm.org/viewvc/llvm-project?rev=374130&view=rev Log: Factor out some duplication. NFC. Modified: cfe/trunk/lib/AST/ExprConstant.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL: http://llvm.org/viewvc/llvm-p

r374131 - [cxx_status] Note that Clang has supported std::source_location since

2019-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 8 16:39:56 2019 New Revision: 374131 URL: http://llvm.org/viewvc/llvm-project?rev=374131&view=rev Log: [cxx_status] Note that Clang has supported std::source_location since version 9. Modified: cfe/trunk/www/cxx_status.html Modified: cfe/trunk/www/cxx_status.htm

r374133 - [c++20] Implement most of P1152R4.

2019-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 8 17:49:40 2019 New Revision: 374133 URL: http://llvm.org/viewvc/llvm-project?rev=374133&view=rev Log: [c++20] Implement most of P1152R4. Diagnose some now-deprecated uses of volatile types: * as function parameter types and return types * as the type of a structur

r374135 - [c++20] P1152R4: warn on any simple-assignment to a volatile lvalue

2019-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 8 19:04:54 2019 New Revision: 374135 URL: http://llvm.org/viewvc/llvm-project?rev=374135&view=rev Log: [c++20] P1152R4: warn on any simple-assignment to a volatile lvalue whose value is not ignored. We don't warn on all the cases that are deprecated: specifically, we

Re: r374419 - [ARM] Fix arm_neon.h with -flax-vector-conversions=none, part 2.

2019-10-10 Thread Richard Smith via cfe-commits
Getting close now, I think there's just one more problem: vmaxv_f16, vmaxq_f16, vminv_f16, vminq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, and vminnmvq_f16 all have the wrong parameter type, requiring a lax conversion from vector of signed char to vector of float16_t. You can reproduce that by

r374457 - Fix some errors in tests that cause them to fail with lax

2019-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 10 14:40:56 2019 New Revision: 374457 URL: http://llvm.org/viewvc/llvm-project?rev=374457&view=rev Log: Fix some errors in tests that cause them to fail with lax vector conversions disabled. Modified: cfe/trunk/test/CodeGen/aarch64-v8.2a-neon-intrinsics.c cfe

r374465 - PR43629: Fix crash evaluating constexpr placement new on a subobject of

2019-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 10 15:31:17 2019 New Revision: 374465 URL: http://llvm.org/viewvc/llvm-project?rev=374465&view=rev Log: PR43629: Fix crash evaluating constexpr placement new on a subobject of an out-of-lifetime object. Modified: cfe/trunk/include/clang/Basic/DiagnosticASTKinds.td

r374484 - Move most CXXRecordDecl::DefinitionData bit-fields out into a separate

2019-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 10 17:29:04 2019 New Revision: 374484 URL: http://llvm.org/viewvc/llvm-project?rev=374484&view=rev Log: Move most CXXRecordDecl::DefinitionData bit-fields out into a separate file. Reduces duplication and thereby reduces the risk that someone will forget to update one

r374488 - Include whether the destructor is constexpr in -ast-dump output for a

2019-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 10 17:40:08 2019 New Revision: 374488 URL: http://llvm.org/viewvc/llvm-project?rev=374488&view=rev Log: Include whether the destructor is constexpr in -ast-dump output for a clss. Modified: cfe/trunk/lib/AST/TextNodeDumper.cpp Modified: cfe/trunk/lib/AST/TextNode

r374496 - Fix assertion failure for a cv-qualified array as a non-type template

2019-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 10 18:29:53 2019 New Revision: 374496 URL: http://llvm.org/viewvc/llvm-project?rev=374496&view=rev Log: Fix assertion failure for a cv-qualified array as a non-type template parameter type. We were both failing to decay the array type to a pointer and failing to remov

r374571 - Update clang module map for new excluded .def file.

2019-10-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 11 10:00:34 2019 New Revision: 374571 URL: http://llvm.org/viewvc/llvm-project?rev=374571&view=rev Log: Update clang module map for new excluded .def file. Modified: cfe/trunk/include/clang/module.modulemap Modified: cfe/trunk/include/clang/module.modulemap URL:

r374580 - Suppress false-positive -Wdeprecated-volatile warning from __is_*_assignable(volatile T&, U).

2019-10-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 11 10:59:09 2019 New Revision: 374580 URL: http://llvm.org/viewvc/llvm-project?rev=374580&view=rev Log: Suppress false-positive -Wdeprecated-volatile warning from __is_*_assignable(volatile T&, U). Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp cfe/trunk/test/S

r374826 - PR43080: Do not build context-sensitive expressions during name classification.

2019-10-14 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 14 14:53:03 2019 New Revision: 374826 URL: http://llvm.org/viewvc/llvm-project?rev=374826&view=rev Log: PR43080: Do not build context-sensitive expressions during name classification. Summary: We don't know what context to use until the classification result is consum

Re: r374844 - Revert "Dead Virtual Function Elimination"

2019-10-14 Thread Richard Smith via cfe-commits
Hi Jorge, Please mention the reason for a revert in revert commit messages. Also, until SVN stops being our system of record, please use SVN revision numbers to reference prior commits in reverts. On Mon, 14 Oct 2019 at 16:22, Jorge Gorbe Moya via cfe-commits < cfe-commits@lists.llvm.org> wrote:

r374952 - Remove unnecessary and inappropriate forward-declaration of Sema from

2019-10-15 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 15 14:50:24 2019 New Revision: 374952 URL: http://llvm.org/viewvc/llvm-project?rev=374952&view=rev Log: Remove unnecessary and inappropriate forward-declaration of Sema from AST. Modified: cfe/trunk/include/clang/AST/ExprCXX.h Modified: cfe/trunk/include/clang/AS

r374954 - PR43674: fix incorrect constant evaluation of 'switch' where no case

2019-10-15 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 15 15:23:11 2019 New Revision: 374954 URL: http://llvm.org/viewvc/llvm-project?rev=374954&view=rev Log: PR43674: fix incorrect constant evaluation of 'switch' where no case label corresponds to the condition. Modified: cfe/trunk/lib/AST/ExprConstant.cpp cfe/tr

Re: r374135 - [c++20] P1152R4: warn on any simple-assignment to a volatile lvalue

2019-10-17 Thread Richard Smith via cfe-commits
On Thu, 17 Oct 2019, 05:17 Stephan Bergmann via cfe-commits, < cfe-commits@lists.llvm.org> wrote: > On 09/10/2019 04:04, Richard Smith via cfe-commits wrote: > > Author: rsmith > > Date: Tue Oct 8 19:04:54 2019 > > New Revision: 374135 > > > > URL: http://

r375305 - [c++20] Add CXXRewrittenBinaryOperator to represent a comparison

2019-10-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 18 17:04:38 2019 New Revision: 375305 URL: http://llvm.org/viewvc/llvm-project?rev=375305&view=rev Log: [c++20] Add CXXRewrittenBinaryOperator to represent a comparison operator that is rewritten as a call to multiple other operators. No functionality change yet: noth

r375306 - [c++20] Add rewriting from comparison operators to <=> / ==.

2019-10-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Oct 18 17:04:43 2019 New Revision: 375306 URL: http://llvm.org/viewvc/llvm-project?rev=375306&view=rev Log: [c++20] Add rewriting from comparison operators to <=> / ==. This adds support for rewriting <, >, <=, and >= to a normal or reversed call to operator<=>, for rewri

[clang] d052a57 - [c++2a] Allow comparison functions to be explicitly defaulted.

2019-10-22 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-22T18:16:17-07:00 New Revision: d052a578de58cbbb638cbe2dba05242d1ff443b9 URL: https://github.com/llvm/llvm-project/commit/d052a578de58cbbb638cbe2dba05242d1ff443b9 DIFF: https://github.com/llvm/llvm-project/commit/d052a578de58cbbb638cbe2dba05242d1ff443b9.diff

[clang] 70f59b5 - When diagnosing an ambiguity, only note the candidates that contribute

2019-10-24 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-24T14:58:29-07:00 New Revision: 70f59b5bbc84d195b4c7ee1597dcae4e73d3c479 URL: https://github.com/llvm/llvm-project/commit/70f59b5bbc84d195b4c7ee1597dcae4e73d3c479 DIFF: https://github.com/llvm/llvm-project/commit/70f59b5bbc84d195b4c7ee1597dcae4e73d3c479.diff

[clang] faee39b - PR43762: when implicitly changing the active union member for an

2019-10-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-27T12:31:16-07:00 New Revision: faee39baa87e43f4b746dd77e479268391163658 URL: https://github.com/llvm/llvm-project/commit/faee39baa87e43f4b746dd77e479268391163658 DIFF: https://github.com/llvm/llvm-project/commit/faee39baa87e43f4b746dd77e479268391163658.diff

[clang] 06d3fce - PR43400: Add test that we can instantiate a friend function that is

2019-10-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-27T12:41:53-07:00 New Revision: 06d3fce01d4f4dfd743e24e1f553afbb6709610f URL: https://github.com/llvm/llvm-project/commit/06d3fce01d4f4dfd743e24e1f553afbb6709610f DIFF: https://github.com/llvm/llvm-project/commit/06d3fce01d4f4dfd743e24e1f553afbb6709610f.diff

[clang] 39eef2c - PR43775: don't produce a bogus 'auto' -Wc++98-compat warning for CTAD

2019-10-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-27T21:42:58-07:00 New Revision: 39eef2cbb6ab1fda2e0beb8789cd49a3ce276b16 URL: https://github.com/llvm/llvm-project/commit/39eef2cbb6ab1fda2e0beb8789cd49a3ce276b16 DIFF: https://github.com/llvm/llvm-project/commit/39eef2cbb6ab1fda2e0beb8789cd49a3ce276b16.diff

[clang] a4facd3 - [c++20] Enforce rule that a union-like class or class with reference

2019-10-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2019-10-27T23:26:44-07:00 New Revision: a4facd355dc36bc83d5c2402856f5a3741890c9a URL: https://github.com/llvm/llvm-project/commit/a4facd355dc36bc83d5c2402856f5a3741890c9a DIFF: https://github.com/llvm/llvm-project/commit/a4facd355dc36bc83d5c2402856f5a3741890c9a.diff

Re: [clang] c90e198 - Fix parsing of enum-base to follow C++11 rules.

2020-05-20 Thread Richard Smith via cfe-commits
enum _name : _type +#else #define CF_ENUM(_type, _name) enum _name : _type _name; enum _name : _type +#endif (One wonders why the 'typedef' is not part of the macro definition.) > On May 11, 2020, at 1:37 PM, Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrote

Re: [clang] c90e198 - Fix parsing of enum-base to follow C++11 rules.

2020-05-27 Thread Richard Smith via cfe-commits
global namespace scope. Perhaps you could add an availability / deprecated attribute to hide the typedef from completion (plus the 'unused' attribute to avoid warnings about it not being used). Alternatively you could use a _Pragma to temporarily turn off the clang error for the invalid e

[clang] 00e5d38 - Do not warn that an expression of the form (void)arr; is unused when

2020-05-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-05-27T17:26:29-07:00 New Revision: 00e5d38d40162d049f67b436ad42c9d05092e65c URL: https://github.com/llvm/llvm-project/commit/00e5d38d40162d049f67b436ad42c9d05092e65c DIFF: https://github.com/llvm/llvm-project/commit/00e5d38d40162d049f67b436ad42c9d05092e65c.diff

[clang] 0dfb43d - Fix handling of default arguments in __attribute__((enable_if)).

2020-05-28 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-05-28T15:35:22-07:00 New Revision: 0dfb43deb6d5511a8ea69eeb7373a212ebd6c9c1 URL: https://github.com/llvm/llvm-project/commit/0dfb43deb6d5511a8ea69eeb7373a212ebd6c9c1 DIFF: https://github.com/llvm/llvm-project/commit/0dfb43deb6d5511a8ea69eeb7373a212ebd6c9c1.diff

[clang] 4ccb6c3 - Fix violations of [basic.class.scope]p2.

2020-06-01 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-01T22:03:05-07:00 New Revision: 4ccb6c36a9159809f4b98176325ae202753fe136 URL: https://github.com/llvm/llvm-project/commit/4ccb6c36a9159809f4b98176325ae202753fe136 DIFF: https://github.com/llvm/llvm-project/commit/4ccb6c36a9159809f4b98176325ae202753fe136.diff

[clang] b5f2c4e - PR23029 / C++ DR2233: Allow expanded parameter packs to follow

2020-06-02 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-02T13:48:59-07:00 New Revision: b5f2c4e45b8d54063051e6955cef0bbb7b6ab0f8 URL: https://github.com/llvm/llvm-project/commit/b5f2c4e45b8d54063051e6955cef0bbb7b6ab0f8 DIFF: https://github.com/llvm/llvm-project/commit/b5f2c4e45b8d54063051e6955cef0bbb7b6ab0f8.diff

[clang] 1643799 - Undo removal of test for dr777.

2020-06-02 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-02T14:19:42-07:00 New Revision: 16437992cac249f6fe1efd392d20e3469b47e39e URL: https://github.com/llvm/llvm-project/commit/16437992cac249f6fe1efd392d20e3469b47e39e DIFF: https://github.com/llvm/llvm-project/commit/16437992cac249f6fe1efd392d20e3469b47e39e.diff

[clang] 8ef9e2b - Revert "[libFuzzer] Link libFuzzer's own interceptors when other compiler runtimes are not linked."

2020-07-16 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-16T18:06:37-07:00 New Revision: 8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91 URL: https://github.com/llvm/llvm-project/commit/8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91 DIFF: https://github.com/llvm/llvm-project/commit/8ef9e2bf355d05bc81d8b0fe1e5333eec59a0a91.diff

[clang] 6c18f7d - For PR46800, implement the GCC __builtin_complex builtin.

2020-07-22 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-22T13:43:10-07:00 New Revision: 6c18f7db73a08f1ae39a76a86b414c5b0c24ee86 URL: https://github.com/llvm/llvm-project/commit/6c18f7db73a08f1ae39a76a86b414c5b0c24ee86 DIFF: https://github.com/llvm/llvm-project/commit/6c18f7db73a08f1ae39a76a86b414c5b0c24ee86.diff

[clang] 23d6525 - Don't form a 'context-independent expr' reference to a member during

2020-07-27 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-27T19:38:22-07:00 New Revision: 23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85 URL: https://github.com/llvm/llvm-project/commit/23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85 DIFF: https://github.com/llvm/llvm-project/commit/23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85.diff

[clang] 740a164 - PR46377: Fix dependence calculation for function types and typedef

2020-07-28 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-28T13:23:13-07:00 New Revision: 740a164dec483225cbd02ab6c82199e2747ffacb URL: https://github.com/llvm/llvm-project/commit/740a164dec483225cbd02ab6c82199e2747ffacb DIFF: https://github.com/llvm/llvm-project/commit/740a164dec483225cbd02ab6c82199e2747ffacb.diff

[clang] 9cf98d2 - PR46637: Fix handling of placeholder types in trailing-return-types.

2020-07-28 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-28T15:54:10-07:00 New Revision: 9cf98d26e7b1204478cc13ae3df44a6843965c11 URL: https://github.com/llvm/llvm-project/commit/9cf98d26e7b1204478cc13ae3df44a6843965c11 DIFF: https://github.com/llvm/llvm-project/commit/9cf98d26e7b1204478cc13ae3df44a6843965c11.diff

[clang] e69138d - PR46859: Fix crash if declaring a template in a DeclScope with no DeclContext.

2020-07-29 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-29T12:02:55-07:00 New Revision: e69138dad5a535c4027a1931f05cabab0f484974 URL: https://github.com/llvm/llvm-project/commit/e69138dad5a535c4027a1931f05cabab0f484974 DIFF: https://github.com/llvm/llvm-project/commit/e69138dad5a535c4027a1931f05cabab0f484974.diff

[clang] 1cbdf93 - PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.

2020-07-29 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-29T12:35:18-07:00 New Revision: 1cbdf932b41eb58ed94fbc240e93b63653d95bd3 URL: https://github.com/llvm/llvm-project/commit/1cbdf932b41eb58ed94fbc240e93b63653d95bd3 DIFF: https://github.com/llvm/llvm-project/commit/1cbdf932b41eb58ed94fbc240e93b63653d95bd3.diff

[clang-tools-extra] 6ce97ee - Fix invalid attempted explicit instantiation, which Clang now rejects.

2020-07-29 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-29T13:07:34-07:00 New Revision: 6ce97eee35463be2ccd82ae659034506ae9b25f1 URL: https://github.com/llvm/llvm-project/commit/6ce97eee35463be2ccd82ae659034506ae9b25f1 DIFF: https://github.com/llvm/llvm-project/commit/6ce97eee35463be2ccd82ae659034506ae9b25f1.diff

[clang] a648834 - PR46729: Reject explicit and partial specializations with C linkage.

2020-07-29 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-07-29T17:44:32-07:00 New Revision: a64883431369f28f3fac311c496a4dfad480058f URL: https://github.com/llvm/llvm-project/commit/a64883431369f28f3fac311c496a4dfad480058f DIFF: https://github.com/llvm/llvm-project/commit/a64883431369f28f3fac311c496a4dfad480058f.diff

[clang] 4ede887 - PR45402: Make the restrictions on constant evaluation of memcmp and

2020-04-03 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-03T18:26:14-07:00 New Revision: 4ede8879924c08ae5b495d3f421c167d822a60be URL: https://github.com/llvm/llvm-project/commit/4ede8879924c08ae5b495d3f421c167d822a60be DIFF: https://github.com/llvm/llvm-project/commit/4ede8879924c08ae5b495d3f421c167d822a60be.diff

[clang] 179f4ba - Don't treat a CXXScopeSpec with a nested name specifier but no location

2020-04-03 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-03T20:20:48-07:00 New Revision: 179f4baba0672a5e85c5db91095c4cd701a2d32d URL: https://github.com/llvm/llvm-project/commit/179f4baba0672a5e85c5db91095c4cd701a2d32d DIFF: https://github.com/llvm/llvm-project/commit/179f4baba0672a5e85c5db91095c4cd701a2d32d.diff

Re: [libcxx-dev] [clang] 4ede887 - PR45402: Make the restrictions on constant evaluation of memcmp and

2020-04-05 Thread Richard Smith via cfe-commits
x27;const > > char8_t' and 'const char8_t' is not supported; only arrays of narrow > > character types can be compared > > return __builtin_memcmp(__s1, __s2, __n); > >^ > > > /home/dave/s/lp/libcxx/test/std/strings/char.traits/char.tr

Re: [libcxx-dev] [clang] 4ede887 - PR45402: Make the restrictions on constant evaluation of memcmp and

2020-04-05 Thread Richard Smith via cfe-commits
n is not an integral constant expression >> > static_assert(test_constexpr(), "" ); >> > ^~~~ >> > /home/dave/s/lp/libcxx/include/__string:662:12: note: constant >> > evaluation of '__builtin_memcmp' between arrays o

[clang] 7f24db0 - Add documentation and testing for

2020-04-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-05T15:24:49-07:00 New Revision: 7f24db01751da6953782630bb42dcca8a111590b URL: https://github.com/llvm/llvm-project/commit/7f24db01751da6953782630bb42dcca8a111590b DIFF: https://github.com/llvm/llvm-project/commit/7f24db01751da6953782630bb42dcca8a111590b.diff

Re: [libcxx-dev] [clang] 4ede887 - PR45402: Make the restrictions on constant evaluation of memcmp and

2020-04-05 Thread Richard Smith via cfe-commits
> /home/dave/s/lp/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char8_t/compare.pass.cpp:53:19: >>> error: static_assert expression is not an integral constant expression >>> > static_assert(test_constexpr(), "" ); &

[clang] 944db8a - Permit constant evaluation of mixed __builtin_memcmp between char and

2020-04-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-05T15:35:32-07:00 New Revision: 944db8a433f591e514219c12fa33b7e8fdd5e883 URL: https://github.com/llvm/llvm-project/commit/944db8a433f591e514219c12fa33b7e8fdd5e883 DIFF: https://github.com/llvm/llvm-project/commit/944db8a433f591e514219c12fa33b7e8fdd5e883.diff

Re: [libcxx-dev] [clang] 4ede887 - PR45402: Make the restrictions on constant evaluation of memcmp and

2020-04-05 Thread Richard Smith via cfe-commits
t/support >>> > /usr/local/include >>> > /p/tllvm/lib64/clang/11.0.0/include >>> > /usr/include >>> > End of search list. >>> > >>> /home/dave/s/lp/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specia

[clang] 6163aa9 - PR45239: Don't deallocate TemplateIdAnnotations if they might still be

2020-04-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-05T23:23:20-07:00 New Revision: 6163aa96799cbad7f2f58e02c5bebee9647056a5 URL: https://github.com/llvm/llvm-project/commit/6163aa96799cbad7f2f58e02c5bebee9647056a5 DIFF: https://github.com/llvm/llvm-project/commit/6163aa96799cbad7f2f58e02c5bebee9647056a5.diff

[clang] 8f2d2a7 - For PR45333: Move AnalyzeImplicitConversions to using data recursion

2020-04-06 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-06T16:49:27-07:00 New Revision: 8f2d2a7cb46572d51a7dddcf151fb202e4abeb4d URL: https://github.com/llvm/llvm-project/commit/8f2d2a7cb46572d51a7dddcf151fb202e4abeb4d DIFF: https://github.com/llvm/llvm-project/commit/8f2d2a7cb46572d51a7dddcf151fb202e4abeb4d.diff

[clang] c56975e - Fix template instantiation of a non-dependent call to an inherited

2020-04-06 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-06T19:20:30-07:00 New Revision: c56975e299e17a503066c98a3afaf02c5b231f9e URL: https://github.com/llvm/llvm-project/commit/c56975e299e17a503066c98a3afaf02c5b231f9e DIFF: https://github.com/llvm/llvm-project/commit/c56975e299e17a503066c98a3afaf02c5b231f9e.diff

[clang] 878d960 - [clang][CodeGen] Handle throw expression in conditional operator constant folding

2020-04-08 Thread Richard Smith via cfe-commits
Author: Raul Tambre Date: 2020-04-08T12:32:21-07:00 New Revision: 878d96011acc0314ae7e5f87aca515286abbe4db URL: https://github.com/llvm/llvm-project/commit/878d96011acc0314ae7e5f87aca515286abbe4db DIFF: https://github.com/llvm/llvm-project/commit/878d96011acc0314ae7e5f87aca515286abbe4db.diff L

[clang] 5d3f717 - Remove setters from CXXTypeidExpr and CXXUuidofExpr.

2020-04-14 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-14T23:15:27-07:00 New Revision: 5d3f7176c1b299d456cec7da4923be5f39e61228 URL: https://github.com/llvm/llvm-project/commit/5d3f7176c1b299d456cec7da4923be5f39e61228 DIFF: https://github.com/llvm/llvm-project/commit/5d3f7176c1b299d456cec7da4923be5f39e61228.diff

[clang] 9bd6b77 - Don't print `&` as part of reference template arguments.

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T00:07:12-07:00 New Revision: 9bd6b77ac66fddadc50ca99ca327f1b7f9b0d6e4 URL: https://github.com/llvm/llvm-project/commit/9bd6b77ac66fddadc50ca99ca327f1b7f9b0d6e4 DIFF: https://github.com/llvm/llvm-project/commit/9bd6b77ac66fddadc50ca99ca327f1b7f9b0d6e4.diff

[clang] b09ee88 - Generalize our two different kinds of declaration argument for

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T00:07:12-07:00 New Revision: b09ee8882010ff2a7d55e30c46c19533d0ab562d URL: https://github.com/llvm/llvm-project/commit/b09ee8882010ff2a7d55e30c46c19533d0ab562d DIFF: https://github.com/llvm/llvm-project/commit/b09ee8882010ff2a7d55e30c46c19533d0ab562d.diff

[clang] bab6df8 - Rework how UuidAttr, CXXUuidofExpr, and GUID template arguments and constants are represented.

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T12:20:42-07:00 New Revision: bab6df86aefc5ea4aa3895da7cf46be37add676d URL: https://github.com/llvm/llvm-project/commit/bab6df86aefc5ea4aa3895da7cf46be37add676d DIFF: https://github.com/llvm/llvm-project/commit/bab6df86aefc5ea4aa3895da7cf46be37add676d.diff

[clang] 57acbae - Improve diagnostic when constant-evaluating a std::initializer_list with

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T13:28:24-07:00 New Revision: 57acbaece1ace979e6a9382d9d517d48895b9ef7 URL: https://github.com/llvm/llvm-project/commit/57acbaece1ace979e6a9382d9d517d48895b9ef7 DIFF: https://github.com/llvm/llvm-project/commit/57acbaece1ace979e6a9382d9d517d48895b9ef7.diff

[clang] 30853cd - Attempt to fix build with MSVC.

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T13:28:24-07:00 New Revision: 30853cd689efd73a005163436673c13a29eca805 URL: https://github.com/llvm/llvm-project/commit/30853cd689efd73a005163436673c13a29eca805 DIFF: https://github.com/llvm/llvm-project/commit/30853cd689efd73a005163436673c13a29eca805.diff

[clang] 2ba12ff - Revert "Attempt to fix build with MSVC."

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T17:40:00-07:00 New Revision: 2ba12ff1e51aee7d33233f95734937d44c4a1282 URL: https://github.com/llvm/llvm-project/commit/2ba12ff1e51aee7d33233f95734937d44c4a1282 DIFF: https://github.com/llvm/llvm-project/commit/2ba12ff1e51aee7d33233f95734937d44c4a1282.diff

[clang] 1765edb - Fix memory leak introduced by llvmorg-11-init-11960-gbab6df86aef.

2020-04-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-04-15T19:39:39-07:00 New Revision: 1765edbb5660b028cee56f40e9a1988791762fd5 URL: https://github.com/llvm/llvm-project/commit/1765edbb5660b028cee56f40e9a1988791762fd5 DIFF: https://github.com/llvm/llvm-project/commit/1765edbb5660b028cee56f40e9a1988791762fd5.diff

[clang] c57f8a3 - PR46209: properly determine whether a copy assignment operator is

2020-06-04 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-04T19:19:01-07:00 New Revision: c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a URL: https://github.com/llvm/llvm-project/commit/c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a DIFF: https://github.com/llvm/llvm-project/commit/c57f8a3a20540fcf9fbf98c0a73f381ec32fce2a.diff

[clang] c13dd74 - Set the captures on a CXXRecordDecl representing a lambda closure type

2020-06-04 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-04T19:19:01-07:00 New Revision: c13dd74e311d2ac70dd3ea663d800307d1aa5b6b URL: https://github.com/llvm/llvm-project/commit/c13dd74e311d2ac70dd3ea663d800307d1aa5b6b DIFF: https://github.com/llvm/llvm-project/commit/c13dd74e311d2ac70dd3ea663d800307d1aa5b6b.diff

[clang] ebcbd5b - Set the captures on a CXXRecordDecl representing a lambda closure type

2020-06-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-05T16:05:32-07:00 New Revision: ebcbd5ba39c017bb621eefa3175a224aae85ddc8 URL: https://github.com/llvm/llvm-project/commit/ebcbd5ba39c017bb621eefa3175a224aae85ddc8 DIFF: https://github.com/llvm/llvm-project/commit/ebcbd5ba39c017bb621eefa3175a224aae85ddc8.diff

[clang] 825e3bb - PR46209: properly determine whether a copy assignment operator is

2020-06-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-05T16:05:32-07:00 New Revision: 825e3bb58082eafa8db87a9034379b88f892ce9d URL: https://github.com/llvm/llvm-project/commit/825e3bb58082eafa8db87a9034379b88f892ce9d DIFF: https://github.com/llvm/llvm-project/commit/825e3bb58082eafa8db87a9034379b88f892ce9d.diff

Re: [clang] c13dd74 - Set the captures on a CXXRecordDecl representing a lambda closure type

2020-06-05 Thread Richard Smith via cfe-commits
x in 825e3bb58082eafa8db87a9034379b88f892ce9d. > Thanks, > Jonas > > > > On Thu, Jun 4, 2020 at 7:25 PM Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> >> Author: Richard Smith >> Date: 2020-06-04T19:19:01-07:00 >> New

[clang] f39e12a - PR34581: Don't remove an 'if (p)' guarding a call to 'operator delete(p)' under -Oz.

2020-06-05 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-05T17:13:43-07:00 New Revision: f39e12a06b6018db195848ca1f7bd01bf0240fac URL: https://github.com/llvm/llvm-project/commit/f39e12a06b6018db195848ca1f7bd01bf0240fac DIFF: https://github.com/llvm/llvm-project/commit/f39e12a06b6018db195848ca1f7bd01bf0240fac.diff

[clang] 58f831d - More robust fix for crash on invalid range-based for statement.

2020-06-08 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-08T13:11:23-07:00 New Revision: 58f831d2b3885bbbc2366045e46211c507fa5f8b URL: https://github.com/llvm/llvm-project/commit/58f831d2b3885bbbc2366045e46211c507fa5f8b DIFF: https://github.com/llvm/llvm-project/commit/58f831d2b3885bbbc2366045e46211c507fa5f8b.diff

[clang] 56a8729 - Remove improper uses of DiagnosticErrorTrap and hasErrorOccurred.

2020-06-08 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-06-08T14:19:57-07:00 New Revision: 56a872947acca7635ca969f39f50062f2f779af0 URL: https://github.com/llvm/llvm-project/commit/56a872947acca7635ca969f39f50062f2f779af0 DIFF: https://github.com/llvm/llvm-project/commit/56a872947acca7635ca969f39f50062f2f779af0.diff

<    3   4   5   6   7   8   9   10   11   12   >