Lines Matching refs:kind
92 // is computed using the kind of that entity, not the kind of the
135 /// Does this computation kind permit us to consider additional
156 LVComputationKind kind) {
157 assert(!hasExplicitVisibilityAlready(kind) &&
159 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind);
201 llvm_unreachable("bad visibility kind");
206 NamedDecl::ExplicitVisibilityKind kind) {
209 if (kind == NamedDecl::VisibilityForType) {
352 llvm_unreachable("bad template argument kind");
379 /// We don't need a computation kind here because we can assume
420 llvm_unreachable("bad visibility computation kind");
1041 NamedDecl::ExplicitVisibilityKind kind,
1046 if (Optional<Visibility> V = getVisibilityOf(ND, kind))
1054 return getVisibilityOf(InstantiatedFrom, kind);
1062 kind);
1068 return getExplicitVisibilityAux(MostRecent, kind, true);
1075 return getVisibilityOf(InstantiatedFrom, kind);
1080 kind);
1091 kind);
1097 return getVisibilityOf(InstantiatedFrom, kind);
1104 return getVisibilityOf(TD->getTemplatedDecl(), kind);
1110 NamedDecl::getExplicitVisibility(ExplicitVisibilityKind kind) const {
1111 return getExplicitVisibilityAux(this, kind, false);
1503 static bool isRedeclarable(Decl::Kind K) {
1511 llvm_unreachable("unknown decl kind");
1522 // A kind mismatch implies that the declaration is not replaced.
1536 // name and kind in the same scope but different contexts; we should
1587 // It's a newer declaration of the same kind of declaration in the same
1780 VarDecl::VarDecl(Kind DK, ASTContext &C, DeclContext *DC,
1983 DefinitionKind Kind = isThisDeclarationADefinition();
1984 if (Kind != TentativeDefinition)
1990 Kind = I->isThisDeclarationADefinition();
1991 if (Kind == Definition)
1993 else if (Kind == TentativeDefinition)
2009 DefinitionKind Kind = DeclarationOnly;
2013 Kind = std::max(Kind, I->isThisDeclarationADefinition(C));
2014 if (Kind == Definition)
2018 return Kind;
2990 // It is possible to instantiate TSK_ExplicitSpecialization kind
3197 llvm_unreachable("Function cannot have a template specialization kind");
3395 llvm_unreachable("bad init storage kind");
3589 RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C,
3599 assert(classof(static_cast<Decl*>(this)) && "Invalid Kind!");
3670 Source->FindExternalLexicalDecls(this, [](Decl::Kind K) {