diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-02-28 00:25:32 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-02-28 00:25:32 +0000 |
| commit | 17c0d7bacfd93c0a82148039da711e03de53a8a1 (patch) | |
| tree | c643345e90d6181541acd4bfdd46fd7442b2f924 /clang/lib/Sema/Sema.h | |
| parent | d844dc305e159e3531b09c4b0d67bd15156733d2 (diff) | |
| download | bcm5719-llvm-17c0d7bacfd93c0a82148039da711e03de53a8a1.tar.gz bcm5719-llvm-17c0d7bacfd93c0a82148039da711e03de53a8a1.zip | |
Implement template instantiation for pointer, reference, and (some)
array types. Semantic checking for the construction of these types has
been factored out of GetTypeForDeclarator and into separate
subroutines (BuildPointerType, BuildReferenceType,
BuildArrayType). We'll be doing the same thing for all other types
(and declarations and expressions).
As part of this, moved the type-instantiation functions into a class
in an anonymous namespace.
llvm-svn: 65663
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 7875a8183b8..7a5a10287f2 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -232,6 +232,13 @@ public: // QualType ConvertDeclSpecToType(const DeclSpec &DS); void ProcessTypeAttributeList(QualType &Result, const AttributeList *AL); + QualType BuildPointerType(QualType T, unsigned Quals, + SourceLocation Loc, DeclarationName Entity); + QualType BuildReferenceType(QualType T, unsigned Quals, + SourceLocation Loc, DeclarationName Entity); + QualType BuildArrayType(QualType T, ArrayType::ArraySizeModifier ASM, + Expr *ArraySize, unsigned Quals, + SourceLocation Loc, DeclarationName Entity); QualType GetTypeForDeclarator(Declarator &D, Scope *S, unsigned Skip = 0); DeclarationName GetNameForDeclarator(Declarator &D); |

