Skip to content

Commit d284e35

Browse files
committed
fix bad merge
1 parent 62cbf6c commit d284e35

File tree

1 file changed

+17
-0
lines changed
  • clang/include/clang/Sema

1 file changed

+17
-0
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,9 @@ class Sema final {
16551655
/// Add [[gsl::Pointer]] attributes for std:: types.
16561656
void inferGslPointerAttribute(TypedefNameDecl *TD);
16571657

1658+
/// Add _Nullable attributes for std:: types.
1659+
void inferNullableClassAttribute(CXXRecordDecl *CRD);
1660+
16581661
enum PragmaOptionsAlignKind {
16591662
POAK_Native, // #pragma options align=native
16601663
POAK_Natural, // #pragma options align=natural
@@ -13261,6 +13264,19 @@ class Sema final {
1326113264
/// from \p Caller context and erases all functions with lower
1326213265
/// calling priority.
1326313266
void EraseUnwantedCUDAMatches(
13267+
const FunctionDecl *Caller,
13268+
SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches);
13269+
13270+
/// Given a implicit special member, infer its CUDA target from the
13271+
/// calls it needs to make to underlying base/field special members.
13272+
/// \param ClassDecl the class for which the member is being created.
13273+
/// \param CSM the kind of special member.
13274+
/// \param MemberDecl the special member itself.
13275+
/// \param ConstRHS true if this is a copy operation with a const object on
13276+
/// its RHS.
13277+
/// \param Diagnose true if this call should emit diagnostics.
13278+
/// \return true if there was an error inferring.
13279+
/// The result of this call is implicit CUDA target attribute(s) attached to
1326413280
/// the member declaration.
1326513281
bool inferCUDATargetForImplicitSpecialMember(CXXRecordDecl *ClassDecl,
1326613282
CXXSpecialMember CSM,
@@ -13287,6 +13303,7 @@ class Sema final {
1328713303
void checkCUDATargetOverload(FunctionDecl *NewFD,
1328813304
const LookupResult &Previous);
1328913305
/// Copies target attributes from the template TD to the function FD.
13306+
void inheritCUDATargetAttrs(FunctionDecl *FD, const FunctionTemplateDecl &TD);
1329013307

1329113308
/// Returns the name of the launch configuration function. This is the name
1329213309
/// of the function that will be called to configure kernel call, with the

0 commit comments

Comments
 (0)