diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-19 16:51:38 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-19 16:51:38 +0000 |
commit | 923f305b2eee76656775ea3c4a5df63a5d8d42ca (patch) | |
tree | 38a021a3cddaf763da977a27c4c99368b255e311 /clang/lib/AST/Comment.cpp | |
parent | a225ed8d2b661a5ceb6f108930b3f889501d929f (diff) | |
download | bcm5719-llvm-923f305b2eee76656775ea3c4a5df63a5d8d42ca.tar.gz bcm5719-llvm-923f305b2eee76656775ea3c4a5df63a5d8d42ca.zip |
Remove const_casts by propagating constness down to called functions.
llvm-svn: 166287
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index edb0f60fdfe..361f8ac61c2 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -305,12 +305,12 @@ void DeclInfo::fill() { IsFilled = true; } -StringRef ParamCommandComment::getParamName(comments::FullComment *FC) const { +StringRef ParamCommandComment::getParamName(const FullComment *FC) const { assert(isParamIndexValid()); return FC->getThisDeclInfo()->ParamVars[getParamIndex()]->getName(); } -StringRef TParamCommandComment::getParamName(comments::FullComment *FC) const { +StringRef TParamCommandComment::getParamName(const FullComment *FC) const { assert(isPositionValid()); const TemplateParameterList *TPL = FC->getThisDeclInfo()->TemplateParameters; for (unsigned i = 0, e = getDepth(); i != e; ++i) { @@ -323,7 +323,7 @@ StringRef TParamCommandComment::getParamName(comments::FullComment *FC) const { } return ""; } - + } // end namespace comments } // end namespace clang |