]> granicus.if.org Git - clang/commit
PR3558: mark "logically const" accessor methods in ASTContext as const,
authorJay Foad <jay.foad@gmail.com>
Wed, 12 Jan 2011 09:06:06 +0000 (09:06 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 12 Jan 2011 09:06:06 +0000 (09:06 +0000)
commit4ba2a17694148e16eaa8d3917f657ffcd3667be4
treeeea2b0e8b20ab2099277ffc51940a4648d4447ca
parentde9d5c39a412611651d77cb41afd41e7849e0f67
PR3558: mark "logically const" accessor methods in ASTContext as const,
and mark the fields they use as mutable. This allows us to remove a few
const_casts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123314 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/Attr.h
include/clang/AST/Decl.h
include/clang/AST/DeclCXX.h
include/clang/AST/DeclTemplate.h
include/clang/AST/DeclarationName.h
include/clang/AST/Expr.h
include/clang/AST/NestedNameSpecifier.h
include/clang/AST/RecordLayout.h
include/clang/AST/Stmt.h
include/clang/AST/TemplateBase.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/Decl.cpp
lib/AST/DeclCXX.cpp
lib/AST/DeclTemplate.cpp
lib/AST/DeclarationName.cpp
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/AST/NestedNameSpecifier.cpp
lib/AST/RecordLayout.cpp
lib/AST/RecordLayoutBuilder.cpp
lib/AST/StmtProfile.cpp
lib/AST/TemplateBase.cpp
lib/AST/Type.cpp