[cfe-commits] r150284 - in /cfe/trunk: include/clang/AST/DeclCXX.h lib/AST/DeclCXX.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Feb 10 16:18:01 PST 2012
Author: efriedma
Date: Fri Feb 10 18:18:00 2012
New Revision: 150284
URL: http://llvm.org/viewvc/llvm-project?rev=150284&view=rev
Log:
const-qualify CXXRecordDecl::getCaptureFields.
Modified:
cfe/trunk/include/clang/AST/DeclCXX.h
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/include/clang/AST/DeclCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclCXX.h?rev=150284&r1=150283&r2=150284&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclCXX.h (original)
+++ cfe/trunk/include/clang/AST/DeclCXX.h Fri Feb 10 18:18:00 2012
@@ -943,7 +943,7 @@
/// \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.
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=150284&r1=150283&r2=150284&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Fri Feb 10 18:18:00 2012
@@ -979,7 +979,7 @@
void CXXRecordDecl::getCaptureFields(
llvm::DenseMap<const VarDecl *, FieldDecl *> &Captures,
- FieldDecl *&ThisCapture) {
+ FieldDecl *&ThisCapture) const {
Captures.clear();
ThisCapture = 0;
More information about the cfe-commits
mailing list