]> granicus.if.org Git - clang/commit
Add an AdjustedType sugar node for adjusting calling conventions
authorReid Kleckner <reid@kleckner.net>
Thu, 5 Dec 2013 01:23:43 +0000 (01:23 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 5 Dec 2013 01:23:43 +0000 (01:23 +0000)
commit8e77b2bb5a22893e5f177997434ed7a529cf1cbc
treeedea68d06aed577d05cd2a46a354bfeabf7eba7d
parentb8f3702eecd7d67c458fcee9a399a65128787e64
Add an AdjustedType sugar node for adjusting calling conventions

Summary:
In general, this type node can be used to represent any type adjustment
that occurs implicitly without losing type sugar.  The immediate use of
this is to adjust the calling conventions of member function pointer
types without breaking template instantiation.

Fixes PR17996.

Reviewers: rsmith

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196451 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/clang/AST/ASTContext.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/ASTDiagnostic.cpp
lib/AST/ASTImporter.cpp
lib/AST/Comment.cpp
lib/AST/Decl.cpp
lib/AST/DeclPrinter.cpp
lib/AST/ItaniumMangle.cpp
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/SemaCXX/calling-conv-compat.cpp
test/SemaCXX/decl-microsoft-call-conv.cpp
tools/libclang/CIndex.cpp
tools/libclang/RecursiveASTVisitor.h