2007-10-07 06:04:32 +00:00
|
|
|
//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
|
2007-06-23 00:39:57 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 19:59:25 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-23 00:39:57 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2007-10-07 06:04:32 +00:00
|
|
|
// AST Consumers.
|
2007-06-23 00:39:57 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2007-10-07 06:04:32 +00:00
|
|
|
#ifndef DRIVER_ASTCONSUMERS_H
|
|
|
|
#define DRIVER_ASTCONSUMERS_H
|
2007-06-23 00:39:57 +00:00
|
|
|
|
2008-02-16 23:17:23 +00:00
|
|
|
#include <string>
|
2007-11-28 21:32:21 +00:00
|
|
|
#include <iosfwd>
|
2007-11-27 21:46:50 +00:00
|
|
|
|
2008-02-06 01:42:25 +00:00
|
|
|
namespace llvm {
|
|
|
|
class Module;
|
|
|
|
namespace sys { class Path; }
|
|
|
|
}
|
2007-06-23 00:39:57 +00:00
|
|
|
namespace clang {
|
|
|
|
|
2007-09-15 22:56:56 +00:00
|
|
|
class ASTConsumer;
|
2007-09-15 23:21:08 +00:00
|
|
|
class Diagnostic;
|
2007-12-05 00:26:13 +00:00
|
|
|
class FileManager;
|
2007-11-28 05:34:05 +00:00
|
|
|
struct LangOptions;
|
2007-06-23 00:39:57 +00:00
|
|
|
|
2007-11-28 21:32:21 +00:00
|
|
|
ASTConsumer *CreateASTPrinter(std::ostream* OS = NULL);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2007-09-15 23:02:28 +00:00
|
|
|
ASTConsumer *CreateASTDumper();
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2007-09-19 21:29:43 +00:00
|
|
|
ASTConsumer *CreateASTViewer();
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2008-02-22 20:00:31 +00:00
|
|
|
ASTConsumer *CreateCFGDumper(bool ViewGraphs, const std::string& FName);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2008-02-22 20:13:09 +00:00
|
|
|
ASTConsumer *CreateLiveVarAnalyzer(const std::string& fname);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2007-09-15 23:21:08 +00:00
|
|
|
ASTConsumer *CreateDeadStoreChecker(Diagnostic &Diags);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2007-09-17 20:49:30 +00:00
|
|
|
ASTConsumer *CreateUnitValsChecker(Diagnostic &Diags);
|
2008-01-08 18:04:06 +00:00
|
|
|
|
2008-02-18 21:21:23 +00:00
|
|
|
ASTConsumer *CreateGRSimpleVals(Diagnostic &Diags,
|
|
|
|
const std::string& Function,
|
2008-03-07 22:58:01 +00:00
|
|
|
bool Visualize = false, bool TrimGraph = false);
|
2008-03-06 00:08:09 +00:00
|
|
|
|
|
|
|
ASTConsumer* CreateCFRefChecker(Diagnostic &Diags,
|
|
|
|
const std::string& FunctionName);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2008-01-18 01:15:54 +00:00
|
|
|
ASTConsumer *CreateCodeRewriterTest(const std::string& InFile,
|
|
|
|
Diagnostic &Diags);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
|
|
|
ASTConsumer *CreateSerializationTest(Diagnostic &Diags,
|
|
|
|
FileManager& FMgr,
|
2007-12-05 21:34:36 +00:00
|
|
|
const LangOptions &LOpts);
|
2007-12-13 00:37:31 +00:00
|
|
|
|
2007-12-19 23:49:37 +00:00
|
|
|
ASTConsumer *CreateASTSerializer(const std::string& InFile,
|
|
|
|
const std::string& EmitDir,
|
2007-12-19 22:24:34 +00:00
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LOpts);
|
2007-09-06 23:00:42 +00:00
|
|
|
|
2007-06-23 00:39:57 +00:00
|
|
|
} // end clang namespace
|
|
|
|
|
|
|
|
#endif
|