From: Eli Friedman Date: Sat, 11 Feb 2012 00:18:00 +0000 (+0000) Subject: const-qualify CXXRecordDecl::getCaptureFields. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41105ad37a2de9bccfcd8137ccfa869cc8345275;p=clang const-qualify CXXRecordDecl::getCaptureFields. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 5d333fa41b..6c3b418ee8 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -943,7 +943,7 @@ public: /// \param ThisCapture Will be set to the field declaration for the /// 'this' capture. void getCaptureFields(llvm::DenseMap &Captures, - FieldDecl *&ThisCapture); + FieldDecl *&ThisCapture) const; /// getConversions - Retrieve the overload set containing all of the /// conversion functions in this class. diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index b65daa5e5e..22a9eadaad 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -979,7 +979,7 @@ void CXXRecordDecl::setLambda(LambdaExpr *Lambda) { void CXXRecordDecl::getCaptureFields( llvm::DenseMap &Captures, - FieldDecl *&ThisCapture) { + FieldDecl *&ThisCapture) const { Captures.clear(); ThisCapture = 0;