Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions clang/include/clang/ASTMatchers/ASTMatchersInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -871,14 +871,11 @@ IteratorT matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start,
return End;
}

template <typename T, std::enable_if_t<!std::is_base_of<FunctionDecl, T>::value>
* = nullptr>
inline bool isDefaultedHelper(const T *) {
template <typename T> inline bool isDefaultedHelper(const T *FD) {
if constexpr (std::is_base_of_v<FunctionDecl, T>)
return FD->isDefaulted();
return false;
}
inline bool isDefaultedHelper(const FunctionDecl *FD) {
return FD->isDefaulted();
}

// Metafunction to determine if type T has a member called getDecl.
template <typename T>
Expand Down