]> granicus.if.org Git - clang/commitdiff
const-qualify CXXRecordDecl::getCaptureFields.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 11 Feb 2012 00:18:00 +0000 (00:18 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 11 Feb 2012 00:18:00 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150284 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h
lib/AST/DeclCXX.cpp

index 5d333fa41bb8db3aadbde977a42e3d72dc838142..6c3b418ee8cc374b0d3c8a36b3af57c2a08591f9 100644 (file)
@@ -943,7 +943,7 @@ public:
   /// \param ThisCapture Will be set to the field declaration for the
   /// 'this' capture.
   void getCaptureFields(llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
-                        FieldDecl *&ThisCapture);
+                        FieldDecl *&ThisCapture) const;
 
   /// getConversions - Retrieve the overload set containing all of the
   /// conversion functions in this class.
index b65daa5e5edfcf0441b4125c066867c9ca1c17a9..22a9eadaad932e5024dc0b231b7c77f0c6ec49ab 100644 (file)
@@ -979,7 +979,7 @@ void CXXRecordDecl::setLambda(LambdaExpr *Lambda) {
 
 void CXXRecordDecl::getCaptureFields(
        llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
-       FieldDecl *&ThisCapture) {
+       FieldDecl *&ThisCapture) const {
   Captures.clear();
   ThisCapture = 0;