summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangASTSource.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-08-12 23:45:38 +0000
committerSean Callanan <scallanan@apple.com>2010-08-12 23:45:38 +0000
commit04949cc65e839a38e3561c2f6ed5ed2b13d4ec64 (patch)
tree03c898abce82a47eeafd820b229822727553cd81 /lldb/source/Expression/ClangASTSource.cpp
parentb3732bb3b76a4e12212f5e672ab281bd96ff906d (diff)
downloadbcm5719-llvm-04949cc65e839a38e3561c2f6ed5ed2b13d4ec64.tar.gz
bcm5719-llvm-04949cc65e839a38e3561c2f6ed5ed2b13d4ec64.zip
Added documentation to ClangASTSource and
NameSearchContext. llvm-svn: 110980
Diffstat (limited to 'lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r--lldb/source/Expression/ClangASTSource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp
index f914728898d..7176cbef76f 100644
--- a/lldb/source/Expression/ClangASTSource.cpp
+++ b/lldb/source/Expression/ClangASTSource.cpp
@@ -111,6 +111,10 @@ clang::NamedDecl *NameSearchContext::AddFunDecl(void *type) {
false,
true);
+ // We have to do more than just synthesize the FunctionDecl. We have to
+ // synthesize ParmVarDecls for all of the FunctionDecl's arguments. To do
+ // this, we raid the function's FunctionProtoType for types.
+
QualType QT = QualType::getFromOpaquePtr(type);
clang::Type *T = QT.getTypePtr();
const FunctionProtoType *FPT = T->getAs<FunctionProtoType>();
OpenPOWER on IntegriCloud