]> granicus.if.org Git - clang/commit
[AST] Introduce a new DecayedType sugar node
authorReid Kleckner <reid@kleckner.net>
Mon, 24 Jun 2013 17:51:48 +0000 (17:51 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 24 Jun 2013 17:51:48 +0000 (17:51 +0000)
commit12df246d6dea2ee1f92c186f922f1afcf499647a
tree5ec11fdddf2a02522c56ab6a745c4db769efdc9c
parent8d90b4ab994c48c4b6d53122282dc93ac722bfc7
[AST] Introduce a new DecayedType sugar node

The goal of this sugar node is to be able to look at an arbitrary
FunctionType and tell if any of the parameters were decayed from an
array or function type.  Ultimately this is necessary to implement
Microsoft's C++ name mangling scheme, which mangles decayed arrays
differently from normal pointers.

Reviewers: rsmith

Differential Revision: http://llvm-reviews.chandlerc.com/D1014

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184763 91177308-0d34-0410-b5e6-96231b3b80d8
24 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/Decl.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/Type.h
include/clang/AST/TypeLoc.h
include/clang/AST/TypeNodes.def
include/clang/Serialization/ASTBitCodes.h
lib/AST/ASTContext.cpp
lib/AST/ASTImporter.cpp
lib/AST/Decl.cpp
lib/AST/ItaniumMangle.cpp
lib/AST/TypePrinter.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Index/print-type.c
test/Sema/function.c
test/SemaCXX/function-type-qual.cpp
tools/libclang/CIndex.cpp
tools/libclang/RecursiveASTVisitor.h