From a1185afe0f653cca036f117b540fefc6f799e95d Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 9 Jun 2010 18:11:12 +0000 Subject: Remove unneeded directories. Even though Roman removed these directories in his working copy, they weren't removed from the actual repository, also causing his working copy to be corrupted. --- .../PrintFunctionNames/PrintFunctionNames.cpp | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp (limited to 'contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp') diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp deleted file mode 100644 index 5b7b66a..0000000 --- a/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ /dev/null @@ -1,44 +0,0 @@ -//===- PrintFunctionNames.cpp ---------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// Example clang plugin which simply prints the names of all the top-level decls -// in the input file. -// -//===----------------------------------------------------------------------===// - -#include "clang/Frontend/FrontendPluginRegistry.h" -#include "clang/AST/ASTConsumer.h" -#include "clang/AST/AST.h" -#include "llvm/Support/raw_ostream.h" -using namespace clang; - -namespace { - -class PrintFunctionsConsumer : public ASTConsumer { -public: - virtual void 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(D)) - llvm::errs() << "top-level-decl: \"" << ND->getNameAsString() << "\"\n"; - } - } -}; - -class PrintFunctionNamesAction : public ASTFrontendAction { -protected: - ASTConsumer *CreateASTConsumer(CompilerInstance &CI, llvm::StringRef) { - return new PrintFunctionsConsumer(); - } -}; - -} - -FrontendPluginRegistry::Add -X("print-fns", "print function names"); -- cgit v1.1