Home | History | Annotate | Download | only in Sema

Lines Matching defs:Kind

94 /// \brief Determine whether the token kind starts a simple-type-specifier.
95 bool Sema::isSimpleTypeSpecifier(tok::TokenKind Kind) const {
96 switch (Kind) {
98 // token kind is a valid type specifier
247 // FIXME: LookupNestedNameSpecifierName isn't the right kind of
249 LookupNameKind Kind = isClassName ? LookupNestedNameSpecifierName :
251 LookupResult Result(*this, &II, NameLoc, Kind);
288 Kind, S, SS, Validator,
1740 int Kind = isa<TypeAliasDecl>(Old) ? 1 : 0;
1742 << Kind << NewType;
1753 int Kind = isa<TypeAliasDecl>(Old) ? 1 : 0;
1755 << Kind << NewType << OldType;
2110 static bool hasAttribute(const Decl *D, attr::Kind Kind) {
2112 if (Attribute->getKind() == Kind)
2332 static std::pair<diag::kind, SourceLocation>
2334 diag::kind PrevDiag;
2439 diag::kind PrevDiag;
2743 // Check cautiously as the friend object kind isn't yet complete.
3157 diag::kind PrevDiag;
3234 // declaration to determine the kind. Do we need to be compatible here?
4114 llvm_unreachable("Unknown name kind");
4227 if (Chunk.Kind != DeclaratorChunk::MemberPointer)
4770 if (D.getName().Kind != UnqualifiedId::IK_Identifier) {
4930 unsigned kind = -1U;
4933 kind = 0; // __block
4935 kind = 1; // global
4937 kind = 3; // ivar
4939 kind = 2; // field
4942 if (kind != -1U) {
4944 << kind;
5151 AttributeList::Kind Kind) {
5153 if (L->getKind() == Kind)
5159 AttributeList::Kind Kind) {
5161 if (hasParsedAttr(S, PD.getDeclSpec().getAttributes().getList(), Kind))
5167 if (hasParsedAttr(S, PD.getTypeObject(I).getAttrs(), Kind))
5172 return hasParsedAttr(S, PD.getAttributes(), Kind);
5794 // Determine what kind of declaration we're shadowing.
5795 unsigned Kind;
5798 Kind = 3; // field
5800 Kind = 2; // static data member
5802 Kind = 1; // global
5804 Kind = 0; // local
5811 Diag(R.getNameLoc(), diag::warn_decl_shadow) << Name << Kind << OldDC;
6473 // - the type R of the function is some kind of typedef or other reference
7069 // definition kind to FDK_Definition.
8482 InitializationKind Kind
8497 InitializationSequence InitSeq(*this, Entity, Kind, Args);
8498 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, Args, &DclT);
8954 InitializationKind Kind
8957 InitializationSequence InitSeq(*this, Entity, Kind, None);
8958 ExprResult Init = InitSeq.Perform(*this, Entity, Kind, None);
10040 if (Outer.Kind == DeclaratorChunk::Function &&
10604 /// \brief Get diagnostic %select index for tag kind for
10614 default: llvm_unreachable("Invalid tag kind for redecl diagnostic!");
10618 /// \brief Determine if tag kind is a class-key compatible with
10621 /// \returns true iff the tag kind is compatible.
10627 /// \brief Determine whether a tag with a given kind is acceptable
10630 /// \returns true if the new tag kind is acceptable, false otherwise.
10637 // elaborated-type-specifier shall agree in kind with the
10723 /// TagSpec indicates what kind of tag this is. TUK indicates whether this is a
10746 TagTypeKind Kind = TypeWithKeyword::getTagTypeKindForTypeSpec(TagSpec);
10762 if (Kind == TTK_Enum) {
10785 << TypeWithKeyword::getTagTypeKindName(Kind) << Name;
10796 if (Kind == TTK_Enum) {
10882 << Kind << Name << DC << SS.getRange();
11071 if (!isAcceptableTagRedeclaration(PrevTagDecl, Kind,
11076 Kind != TTK_Enum);
11087 Kind = PrevTagDecl->getTagKind();
11096 if (Kind == TTK_Enum && PrevTagDecl->getTagKind() == TTK_Enum) {
11199 // Okay, we're going to make a redeclaration. If this is some kind
11227 // found the wrong kind of type on the first
11231 unsigned Kind = 0;
11232 if (isa<TypedefDecl>(PrevDecl)) Kind = 1;
11233 else if (isa<TypeAliasDecl>(PrevDecl)) Kind = 2;
11234 else if (isa<ClassTemplateDecl>(PrevDecl)) Kind = 3;
11235 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind;
11246 unsigned Kind = 0;
11247 if (isa<TypedefDecl>(PrevDecl)) Kind = 1;
11248 else if (isa<TypeAliasDecl>(PrevDecl)) Kind = 2;
11249 else if (isa<ClassTemplateDecl>(PrevDecl)) Kind = 3;
11250 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind;
11257 unsigned Kind = 0;
11258 if (isa<TypeAliasDecl>(PrevDecl)) Kind = 1;
11260 << Name << Kind << TND->getUnderlyingType();
11297 if (Kind == TTK_Enum) {
11347 New = CXXRecordDecl::Create(Context, Kind, SearchDC, KWLoc, Loc, Name,
11353 New = RecordDecl::Create(Context, Kind, SearchDC, KWLoc, Loc, Name,
11425 if ((Name || Kind == TTK_Enum) &&
12064 default: llvm_unreachable("Unknown visitibility kind");