Skip to content
Draft
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
42 changes: 0 additions & 42 deletions interpreter/llvm-project/clang/include/clang/AST/DeclTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -1079,20 +1079,6 @@ class FunctionTemplateDecl : public RedeclarableTemplateDecl {
return makeSpecIterator(getSpecializations(), true);
}

/// All specializations that that have already been loaded, ie avoiding
/// deserialization of lazily registered specializations.
spec_range loaded_specializations() const {
return spec_range(loaded_spec_begin(), loaded_spec_end());
}

spec_iterator loaded_spec_begin() const {
return makeSpecIterator(getCommonPtr()->Specializations, false);
}

spec_iterator loaded_spec_end() const {
return makeSpecIterator(getCommonPtr()->Specializations, true);
}

/// Return whether this function template is an abbreviated function template,
/// e.g. `void foo(auto x)` or `template<typename T> void foo(auto x)`
bool isAbbreviated() const {
Expand Down Expand Up @@ -2469,20 +2455,6 @@ class ClassTemplateDecl : public RedeclarableTemplateDecl {
return makeSpecIterator(getSpecializations(), true);
}

/// All specializations that that have already been loaded, ie avoiding
/// deserialization of lazily registered specializations.
spec_range loaded_specializations() const {
return spec_range(loaded_spec_begin(), loaded_spec_end());
}

spec_iterator loaded_spec_begin() const {
return makeSpecIterator(getCommonPtr()->Specializations, false);
}

spec_iterator loaded_spec_end() const {
return makeSpecIterator(getCommonPtr()->Specializations, true);
}

// Implement isa/cast/dyncast support
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
static bool classofKind(Kind K) { return K == ClassTemplate; }
Expand Down Expand Up @@ -3212,20 +3184,6 @@ class VarTemplateDecl : public RedeclarableTemplateDecl {
return makeSpecIterator(getSpecializations(), true);
}

/// All specializations that that have already been loaded, ie avoiding
/// deserialization of lazily registered specializations.
spec_range loaded_specializations() const {
return spec_range(loaded_spec_begin(), loaded_spec_end());
}

spec_iterator loaded_spec_begin() const {
return makeSpecIterator(getCommonPtr()->Specializations, false);
}

spec_iterator loaded_spec_end() const {
return makeSpecIterator(getCommonPtr()->Specializations, true);
}

// Implement isa/cast/dyncast support
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
static bool classofKind(Kind K) { return K == VarTemplate; }
Expand Down
Loading