diff options
author | Manuel Klimek <klimek@google.com> | 2012-04-26 08:35:39 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-04-26 08:35:39 +0000 |
commit | d9ed0fd0d10b604f3e6ce9efa83743fd5d31b5a1 (patch) | |
tree | 699276b469ee0b51ec79315680f554280b4a04b6 /examples/PrintFunctionNames | |
parent | fd93630cce9b9bce6b4d735e1277be2c7e3a7fbf (diff) |
Adds a small tutorial on how to write RAV based ASTFrontendActions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/PrintFunctionNames')
-rw-r--r-- | examples/PrintFunctionNames/PrintFunctionNames.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/PrintFunctionNames/PrintFunctionNames.cpp b/examples/PrintFunctionNames/PrintFunctionNames.cpp index ce8f208e41..b024b968db 100644 --- a/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/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"); |