summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-10-02 17:38:57 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-10-02 17:38:57 +0000
commite9021117a1fbe474227517886b352ad08718f1fd (patch)
tree61011b4add17084e89e4e70ae287967436f0ccce
parentb22351cb185aa40acbd63d60596a96927b0c6f55 (diff)
downloadbcm5719-llvm-e9021117a1fbe474227517886b352ad08718f1fd.tar.gz
bcm5719-llvm-e9021117a1fbe474227517886b352ad08718f1fd.zip
constify four getInstantiatedFromMemberTemplate() in DeclTemplate.h.
llvm-svn: 249159
-rw-r--r--clang/include/clang/AST/DeclTemplate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h
index 6df1e722e7b..bd38ac88238 100644
--- a/clang/include/clang/AST/DeclTemplate.h
+++ b/clang/include/clang/AST/DeclTemplate.h
@@ -946,7 +946,7 @@ public:
return const_cast<FunctionTemplateDecl*>(this)->getMostRecentDecl();
}
- FunctionTemplateDecl *getInstantiatedFromMemberTemplate() {
+ FunctionTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<FunctionTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
@@ -2034,7 +2034,7 @@ public:
return const_cast<ClassTemplateDecl*>(this)->getMostRecentDecl();
}
- ClassTemplateDecl *getInstantiatedFromMemberTemplate() {
+ ClassTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<ClassTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
@@ -2264,7 +2264,7 @@ public:
this)->getPreviousDecl());
}
- TypeAliasTemplateDecl *getInstantiatedFromMemberTemplate() {
+ TypeAliasTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<TypeAliasTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
@@ -2867,7 +2867,7 @@ public:
return const_cast<VarTemplateDecl *>(this)->getMostRecentDecl();
}
- VarTemplateDecl *getInstantiatedFromMemberTemplate() {
+ VarTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<VarTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
OpenPOWER on IntegriCloud