]> granicus.if.org Git - clang/commit
It's kindof silly that ExtQuals has an ASTContext&, and we can use that
authorJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 11:01:00 +0000 (11:01 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 11:01:00 +0000 (11:01 +0000)
commit49f4e1cbd839da27ff4814b4ea6d85a79f786cbd
tree9ab7a1af57b1fc26ad1d0b8913ac7da554101ff3
parent55270e4bde91bd30d16086ae71f0f65caf3b8a51
It's kindof silly that ExtQuals has an ASTContext&, and we can use that
space better.  Remove this reference.  To make that work, change some APIs
(most importantly, getDesugaredType()) to take an ASTContext& if they
need to return a QualType.  Simultaneously, diminish the need to return a
QualType by introducing some useful APIs on SplitQualType, which is
just a std::pair<const Type *, Qualifiers>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121478 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/AST/Type.h
include/clang/Checker/PathSensitive/MemRegion.h
lib/AST/ASTContext.cpp
lib/AST/ASTDiagnostic.cpp
lib/AST/StmtDumper.cpp
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/Checker/GRExprEngine.cpp
lib/Checker/MemRegion.cpp
lib/Checker/RegionStore.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Serialization/ASTCommon.h