]> granicus.if.org Git - clang/commit
[Modules] Consider enable_if attrs in isSameEntity.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 15 Feb 2017 22:43:27 +0000 (22:43 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 15 Feb 2017 22:43:27 +0000 (22:43 +0000)
commit78221647368cf3ec82ebac5ecc70cfe7e37c7b08
treef21ba9d217290424bad086f4c46333789a3efd9a
parenta8b97055bf49b9734b757fac76d9ac71efa26d23
[Modules] Consider enable_if attrs in isSameEntity.

Two functions that differ only in their enable_if attributes are
considered overloads, so we should check for those when we're trying to
figure out if two functions are mergeable.

We need to do the same thing for pass_object_size, as well. Looks like
that'll be a bit less trivial, since we sometimes do these merging
checks before we have pass_object_size attributes available (see the
merge checks in ASTDeclReader::VisitFunctionDecl that happen before we
read parameters, and merge checks in calls to ReadDeclAs<>()).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295252 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderDecl.cpp
test/Modules/Inputs/overloadable-attrs/a.h [new file with mode: 0644]
test/Modules/Inputs/overloadable-attrs/module.modulemap [new file with mode: 0644]
test/Modules/overloadable-attrs.cpp [new file with mode: 0644]