hanchenye-llvm-project/clang/lib/AST
Ted Kremenek c23c7e6a51 Change uses of:
Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
  Type::getAsRecordType() -> Type::getAs<RecordType>()
  Type::getAsPointerType() -> Type::getAs<PointerType>()
  Type::getAsBlockPointerType() -> Type::getAs<BlockPointerType>()
  Type::getAsLValueReferenceType() -> Type::getAs<LValueReferenceType>()
  Type::getAsRValueReferenceType() -> Type::getAs<RValueReferenceType>()
  Type::getAsMemberPointerType() -> Type::getAs<MemberPointerType>()
  Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
  Type::getAsTagType() -> Type::getAs<TagType>()
  
And remove Type::getAsReferenceType(), etc.

This change is similar to one I made a couple weeks ago, but that was partly
reverted pending some additional design discussion. With Doug's pending smart
pointer changes for Types, it seemed natural to take this approach.

llvm-svn: 77510
2009-07-29 21:53:49 +00:00
..
APValue.cpp Remove some now-unneeded calls to llvm::errs().flush(). 2009-03-10 18:00:19 +00:00
ASTConsumer.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
ASTContext.cpp Change uses of: 2009-07-29 21:53:49 +00:00
CMakeLists.txt Add a Profile function for statements so that we can (eventually) determine 2009-07-28 00:33:38 +00:00
Decl.cpp Change uses of: 2009-07-29 21:53:49 +00:00
DeclBase.cpp Change uses of: 2009-07-29 21:53:49 +00:00
DeclCXX.cpp Change uses of: 2009-07-29 21:53:49 +00:00
DeclGroup.cpp Remove the serialization code that predates precompiled 2009-04-22 21:45:53 +00:00
DeclObjC.cpp Implement ObjCMethodDecl::getCanonicalDecl(). 2009-07-28 05:11:17 +00:00
DeclPrinter.cpp Change uses of: 2009-07-29 21:53:49 +00:00
DeclTemplate.cpp Refactor the code that produces a TemplateSpecializationType, so that 2009-07-28 23:00:59 +00:00
DeclarationName.cpp Change uses of: 2009-07-29 21:53:49 +00:00
Expr.cpp Change uses of: 2009-07-29 21:53:49 +00:00
ExprCXX.cpp Change uses of: 2009-07-29 21:53:49 +00:00
ExprConstant.cpp Change uses of: 2009-07-29 21:53:49 +00:00
InheritViz.cpp Change uses of: 2009-07-29 21:53:49 +00:00
Makefile Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
NestedNameSpecifier.cpp Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions. 2009-06-30 01:26:17 +00:00
ParentMap.cpp Add ParentMap:getParentIgnoreParens(). 2009-05-11 19:49:27 +00:00
RecordLayoutBuilder.cpp Change uses of: 2009-07-29 21:53:49 +00:00
RecordLayoutBuilder.h Add a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual size and alignment + base offsets. 2009-07-28 19:24:15 +00:00
Stmt.cpp Simplify printing of the statistics for types. 2009-05-26 14:40:08 +00:00
StmtDumper.cpp Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions. 2009-06-30 01:26:17 +00:00
StmtIterator.cpp When evaluating a VarDecl as a constant or determining whether it is 2009-05-26 18:54:04 +00:00
StmtPrinter.cpp Allow front-end 'isa' access on object's of type 'id'. 2009-07-24 17:54:45 +00:00
StmtProfile.cpp Use the new statement/expression profiling code to unique dependent 2009-07-29 16:09:57 +00:00
StmtViz.cpp Update for LLVM API changes. 2009-06-24 17:37:55 +00:00
TemplateName.cpp [llvm up] 2009-07-29 18:26:50 +00:00
Type.cpp Change uses of: 2009-07-29 21:53:49 +00:00