diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
commit | 80bfbba822da41b74969be8e635b1b4c8e2d3a8c (patch) | |
tree | 9c04bec373a4ad6b3b51026b7879cf93a535158d /include/clang/Frontend/ASTConsumers.h | |
parent | 9a8dc2497021b3758e1c521c75f0c716da3ca0d4 (diff) |
Revert "unique_ptr-ify ownership of ASTConsumers"
This reverts commit r213307.
Reverting to have some on-list discussion/confirmation about the ongoing
direction of smart pointer usage in the LLVM project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/ASTConsumers.h')
-rw-r--r-- | include/clang/Frontend/ASTConsumers.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/clang/Frontend/ASTConsumers.h b/include/clang/Frontend/ASTConsumers.h index 4afcb0c28a..366c499b67 100644 --- a/include/clang/Frontend/ASTConsumers.h +++ b/include/clang/Frontend/ASTConsumers.h @@ -16,8 +16,6 @@ #include "clang/Basic/LLVM.h" -#include <memory> - namespace clang { class ASTConsumer; @@ -32,26 +30,24 @@ class TargetOptions; // original C code. The output is intended to be in a format such that // clang could re-parse the output back into the same AST, but the // implementation is still incomplete. -std::unique_ptr<ASTConsumer> CreateASTPrinter(raw_ostream *OS, - StringRef FilterString); +ASTConsumer *CreateASTPrinter(raw_ostream *OS, StringRef FilterString); // AST dumper: dumps the raw AST in human-readable form to stderr; this is // intended for debugging. -std::unique_ptr<ASTConsumer> CreateASTDumper(StringRef FilterString, - bool DumpLookups = false); +ASTConsumer *CreateASTDumper(StringRef FilterString, bool DumpLookups = false); // AST Decl node lister: prints qualified names of all filterable AST Decl // nodes. -std::unique_ptr<ASTConsumer> CreateASTDeclNodeLister(); +ASTConsumer *CreateASTDeclNodeLister(); // Graphical AST viewer: for each function definition, creates a graph of // the AST and displays it with the graph viewer "dotty". Also outputs // function declarations to stderr. -std::unique_ptr<ASTConsumer> CreateASTViewer(); +ASTConsumer *CreateASTViewer(); // DeclContext printer: prints out the DeclContext tree in human-readable form // to stderr; this is intended for debugging. -std::unique_ptr<ASTConsumer> CreateDeclContextPrinter(); +ASTConsumer *CreateDeclContextPrinter(); } // end clang namespace |