Skip to content

Commit 32586a1

Browse files
authored
merge main into amd-staging (llvm#1864)
2 parents e6430d2 + 68ca6b5 commit 32586a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+896
-639
lines changed

clang/include/clang/ASTMatchers/ASTMatchersInternal.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -871,14 +871,11 @@ IteratorT matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start,
871871
return End;
872872
}
873873

874-
template <typename T, std::enable_if_t<!std::is_base_of<FunctionDecl, T>::value>
875-
* = nullptr>
876-
inline bool isDefaultedHelper(const T *) {
874+
template <typename T> inline bool isDefaultedHelper(const T *FD) {
875+
if constexpr (std::is_base_of_v<FunctionDecl, T>)
876+
return FD->isDefaulted();
877877
return false;
878878
}
879-
inline bool isDefaultedHelper(const FunctionDecl *FD) {
880-
return FD->isDefaulted();
881-
}
882879

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

0 commit comments

Comments
 (0)