hanchenye-llvm-project/clang/lib/Frontend
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
..
ASTConsumers.cpp remove dead code. 2009-06-30 07:50:26 +00:00
ASTUnit.cpp Handle PCHReader::IgnorePCH, it gets returned for when the file does not exist. 2009-06-25 18:22:30 +00:00
AnalysisConsumer.cpp (1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory" 2009-07-27 22:13:39 +00:00
Backend.cpp Don't use a formatted ostream when writing .ll either. 2009-07-29 17:12:55 +00:00
CMakeLists.txt Lexically order files in CMakeLists.txt files. 2009-07-15 21:08:41 +00:00
CacheTokens.cpp Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp 2009-05-19 04:14:29 +00:00
DeclXML.cpp De-ASTContext-ify DeclContext. 2009-06-30 02:36:12 +00:00
DependencyFile.cpp Clean up some unnecessary includes. 2009-05-19 04:30:57 +00:00
DiagChecker.cpp Add missing include for stderr and fprintf, needed 2009-05-19 12:06:47 +00:00
DocumentXML.cpp More XML output support, from Olaf Krzikalla! 2009-06-15 19:02:54 +00:00
FixItRewriter.cpp Update for raw_fd_ostream API changes. raw_fd_ostream now has a 2009-07-15 17:32:18 +00:00
GeneratePCH.cpp Introduce the notion of "Relocatable" precompiled headers, which are built 2009-07-07 00:12:59 +00:00
HTMLDiagnostics.cpp (1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory" 2009-07-27 22:13:39 +00:00
HTMLPrint.cpp Fix a crash with -emit-html from stdin. 2009-05-19 05:28:52 +00:00
InitHeaderSearch.cpp add gentoo 2009.0 g++ header locations 2009-07-26 16:14:05 +00:00
InitPreprocessor.cpp define __STDC_VERSION__ processor token for c94 2009-07-21 00:07:02 +00:00
Makefile Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
ManagerRegistry.cpp
PCHReader.cpp Change uses of: 2009-07-29 21:53:49 +00:00
PCHReaderDecl.cpp Make ObjCImplDecl inherit from ObjCContainerDecl. 2009-07-27 19:04:32 +00:00
PCHReaderStmt.cpp Allow front-end 'isa' access on object's of type 'id'. 2009-07-24 17:54:45 +00:00
PCHWriter.cpp Make longjmp a real builtin. 2009-07-28 02:25:19 +00:00
PCHWriterDecl.cpp Make ObjCImplDecl inherit from ObjCContainerDecl. 2009-07-27 19:04:32 +00:00
PCHWriterStmt.cpp Allow front-end 'isa' access on object's of type 'id'. 2009-07-24 17:54:45 +00:00
PlistDiagnostics.cpp Add missing '"' 2009-07-29 01:10:25 +00:00
PrintParserCallbacks.cpp Clean up the ActOnTag action, so that there is only a single entry 2009-07-23 16:36:45 +00:00
PrintPreprocessedOutput.cpp no really, add the lines :) 2009-06-15 04:08:28 +00:00
RewriteBlocks.cpp Change uses of: 2009-07-29 21:53:49 +00:00
RewriteMacros.cpp Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp 2009-05-19 04:14:29 +00:00
RewriteObjC.cpp Change uses of: 2009-07-29 21:53:49 +00:00
RewriteTest.cpp Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp 2009-05-19 04:14:29 +00:00
StmtXML.cpp More XML output support, from Olaf Krzikalla! 2009-06-15 19:02:54 +00:00
TextDiagnosticBuffer.cpp
TextDiagnosticPrinter.cpp Minor tweak to -fdiagnostics-print-source-range-info to make it print 2009-06-15 05:18:27 +00:00
TypeXML.cpp More XML output support, from Olaf Krzikalla! 2009-06-15 19:02:54 +00:00
Warnings.cpp switch Warnings.cpp to use the diagnostics machinery to print diagnostics, not *fprintf*! 2009-06-23 01:20:39 +00:00