[cfe-commits] [PATCH] Add isConstMethod(), isVolatileMethod() to CXXMethodDecl

Sam Panzer panzer at google.com
Tue Aug 7 10:30:35 PDT 2012


Several places in the codebase determine if a method is const or volatile
by querying the method's type qualifiers directly, but it makes sense to
centralize the (simple) logic directly in CXXMethodDecl. It's particularly
useful for refactoring tools :)

-Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120807/dc744eae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const-method.patch
Type: application/octet-stream
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120807/dc744eae/attachment.obj>


More information about the cfe-commits mailing list