summaryrefslogtreecommitdiffstats
path: root/clang/examples
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-19 19:22:13 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-19 19:22:13 +0000
commit9f39a765e23f5bc5c38c4d58723b131b995b4f73 (patch)
treeea8a0c1803066059f81c9b5b57de862e398ee427 /clang/examples
parent328d8d255ed7fed38a499fdd0acfe6cf7f524d65 (diff)
downloadbcm5719-llvm-9f39a765e23f5bc5c38c4d58723b131b995b4f73.tar.gz
bcm5719-llvm-9f39a765e23f5bc5c38c4d58723b131b995b4f73.zip
Update signature of HandleTopLevelDecl.
llvm-svn: 145001
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/PrintFunctionNames/PrintFunctionNames.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
index fde60955aa0..ce8f208e41d 100644
--- a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
+++ b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
@@ -23,12 +23,14 @@ namespace {
class PrintFunctionsConsumer : public ASTConsumer {
public:
- virtual void HandleTopLevelDecl(DeclGroupRef DG) {
+ virtual bool HandleTopLevelDecl(DeclGroupRef DG) {
for (DeclGroupRef::iterator i = DG.begin(), e = DG.end(); i != e; ++i) {
const Decl *D = *i;
if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
llvm::errs() << "top-level-decl: \"" << ND->getNameAsString() << "\"\n";
}
+
+ return true;
}
};
OpenPOWER on IntegriCloud