summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXCursor.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-07-07 09:02:20 +0000
committerAlp Toker <alp@nuanti.com>2014-07-07 09:02:20 +0000
commit03376dc2c525c725323993fe0a17fd5d7313a9e7 (patch)
treea91038a70d8500eeb9a225c6e443b682e0bcdd85 /clang/tools/libclang/CXCursor.cpp
parent221285bde795a54552cabeb77a20a092a185b80b (diff)
downloadbcm5719-llvm-03376dc2c525c725323993fe0a17fd5d7313a9e7.tar.gz
bcm5719-llvm-03376dc2c525c725323993fe0a17fd5d7313a9e7.zip
Switch over a few uses of param_begin() to parameters()
llvm-svn: 212442
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
-rw-r--r--clang/tools/libclang/CXCursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp
index 8c9cdf436c8..6b0e2eb2558 100644
--- a/clang/tools/libclang/CXCursor.cpp
+++ b/clang/tools/libclang/CXCursor.cpp
@@ -1005,11 +1005,11 @@ CXCursor clang_Cursor_getArgument(CXCursor C, unsigned i) {
const Decl *D = cxcursor::getCursorDecl(C);
if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
if (i < MD->param_size())
- return cxcursor::MakeCXCursor(MD->param_begin()[i],
+ return cxcursor::MakeCXCursor(MD->parameters()[i],
cxcursor::getCursorTU(C));
} else if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
if (i < FD->param_size())
- return cxcursor::MakeCXCursor(FD->param_begin()[i],
+ return cxcursor::MakeCXCursor(FD->parameters()[i],
cxcursor::getCursorTU(C));
}
}
OpenPOWER on IntegriCloud