summaryrefslogtreecommitdiffstats
path: root/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2012-04-26 08:35:39 +0000
committerManuel Klimek <klimek@google.com>2012-04-26 08:35:39 +0000
commitc01d3fbe0f29836890abb16bc834ce9950bdb3ea (patch)
tree165d1819692de65eb06c111c5bdcad8d4fd4156f /clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
parent6699a60b0e3a76757badeaa0ceafcce54f9f4654 (diff)
downloadbcm5719-llvm-c01d3fbe0f29836890abb16bc834ce9950bdb3ea.tar.gz
bcm5719-llvm-c01d3fbe0f29836890abb16bc834ce9950bdb3ea.zip
Adds a small tutorial on how to write RAV based ASTFrontendActions.
llvm-svn: 155627
Diffstat (limited to 'clang/examples/PrintFunctionNames/PrintFunctionNames.cpp')
-rw-r--r--clang/examples/PrintFunctionNames/PrintFunctionNames.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
index ce8f208e41d..b024b968dbc 100644
--- a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
+++ b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
@@ -17,6 +17,7 @@
#include "clang/AST/AST.h"
#include "clang/Frontend/CompilerInstance.h"
#include "llvm/Support/raw_ostream.h"
+#include "clang/Frontend/FrontendActions.h"
using namespace clang;
namespace {
@@ -67,5 +68,5 @@ protected:
}
-static FrontendPluginRegistry::Add<PrintFunctionNamesAction>
+static FrontendPluginRegistry::Add<SyntaxOnlyAction>
X("print-fns", "print function names");
OpenPOWER on IntegriCloud