[cfe-commits] r145001 - /cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp
Douglas Gregor
dgregor at apple.com
Sat Nov 19 11:22:14 PST 2011
Author: dgregor
Date: Sat Nov 19 13:22:13 2011
New Revision: 145001
URL: http://llvm.org/viewvc/llvm-project?rev=145001&view=rev
Log:
Update signature of HandleTopLevelDecl.
Modified:
cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp
Modified: cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp?rev=145001&r1=145000&r2=145001&view=diff
==============================================================================
--- cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp (original)
+++ cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp Sat Nov 19 13:22:13 2011
@@ -23,12 +23,14 @@
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;
}
};
More information about the cfe-commits
mailing list