[clang] [ast] CXXRecordDecl::getVisibleConversionFunctions() could be const
authorWhisperity <whisperity@gmail.com>
Tue, 24 Dec 2019 10:09:24 +0000 (11:09 +0100)
committerWhisperity <whisperity@gmail.com>
Tue, 24 Dec 2019 10:09:24 +0000 (11:09 +0100)
commit002e07208a67351f75e306fdc025661e451df03c
tree6dd09eea92d396b61c716d3a74f40a0317b24c8d
parent42dba633a3b3de73d8c27c409ff7414eb64cbc12
[clang] [ast] CXXRecordDecl::getVisibleConversionFunctions() could be const

The function and its called static helpers don't modify the received
CXXRecordDecl arguments at all as the method's result is put into an
output parameter. Thus they can be const which allows for neatly
grabbing the conversion methods in a context where we only have a const
ASTUnit at hand.

Differential Revision: https://reviews.llvm.org/D71805
clang/include/clang/AST/DeclCXX.h
clang/lib/AST/DeclCXX.cpp