aboutsummaryrefslogtreecommitdiff
path: root/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-08-10Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325)David Blaikie1-2/+3
After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. llvm-svn: 215323
2014-07-17Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie1-3/+2
This reverts commit r213307. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213325
2014-07-17unique_ptr-ify ownership of ASTConsumersDavid Blaikie1-2/+3
(after fixing a bug in MultiplexConsumer I noticed the ownership of the nested consumers was implemented with raw pointers - so this fixes that... and follows the source back to its origin pushing unique_ptr ownership up through there too) llvm-svn: 213307
2013-12-21Fix getCustomDiagID() usage in example codeAlp Toker1-3/+3
This was setting a bad example. DiagIDs are a limited resource and the message argument is evaluated as a format string. llvm-svn: 197855
2012-12-04Sort the #include lines for examples/...Chandler Carruth1-1/+1
llvm-svn: 169241
2012-04-26Reverted unintentional commit.Manuel Klimek1-2/+1
llvm-svn: 155629
2012-04-26Adds a small tutorial on how to write RAV based ASTFrontendActions.Manuel Klimek1-1/+2
llvm-svn: 155627
2011-11-19Update signature of HandleTopLevelDecl.Douglas Gregor1-1/+3
llvm-svn: 145001
2011-09-27Fix examples for r140478. PR11021.Eli Friedman1-2/+2
llvm-svn: 140618
2010-08-02Frontend: Change PluginASTAction::ParseArgs to take a CompilerInstance objectDaniel Dunbar1-4/+16
for use in reporting diagnostics. - We don't want to use the Action's own CompilerInstance, because that is only initialized during file processing and I like that invariant. Also, if ParseArgs returns false then abandon execution. Also, remove unused PluginASTAction::PrintHelp virtual method. llvm-svn: 110039
2010-07-26Make a variable static.Dan Gohman1-1/+1
llvm-svn: 109438
2010-06-16Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵Daniel Dunbar1-1/+14
Straszheim! llvm-svn: 106113
2009-12-11Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.Daniel Dunbar1-2/+2
llvm-svn: 91176
2009-11-15Add a trivial example plugin, which prints the names of the top-level decls.Daniel Dunbar1-0/+44
- The build scriptage is about twice as long as the code, which is nice. :) llvm-svn: 88826