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;
|
2008-04-16 06:11:58 +00:00
|
|
|
class Preprocessor;
|
2008-04-17 22:31:54 +00:00
|
|
|
class PreprocessorFactory;
|
|
|
|
|
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-01-18 01:15:54 +00:00
|
|
|
ASTConsumer *CreateCodeRewriterTest(const std::string& InFile,
|
2008-03-22 00:08:40 +00:00
|
|
|
const std::string& OutFile,
|
2008-03-10 20:43:59 +00:00
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LOpts);
|
2008-08-05 18:50:11 +00:00
|
|
|
|
|
|
|
ASTConsumer *CreateLLVMCodeGenWriter(bool EmitBC, Diagnostic &Diags,
|
|
|
|
const LangOptions &Features,
|
|
|
|
const std::string& InFile,
|
|
|
|
const std::string& OutFile,
|
|
|
|
bool GenerateDebugInfo);
|
2007-12-19 22:24:34 +00:00
|
|
|
|
2008-04-16 06:11:58 +00:00
|
|
|
ASTConsumer* CreateHTMLPrinter(const std::string &OutFile, Diagnostic &D,
|
2008-04-17 22:31:54 +00:00
|
|
|
Preprocessor *PP, PreprocessorFactory* PPF);
|
2008-03-18 21:19:49 +00:00
|
|
|
|
2007-12-19 22:24:34 +00:00
|
|
|
ASTConsumer *CreateSerializationTest(Diagnostic &Diags,
|
2008-06-04 15:55:15 +00:00
|
|
|
FileManager& FMgr);
|
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,
|
2008-06-04 15:55:15 +00:00
|
|
|
Diagnostic &Diags);
|
2007-09-06 23:00:42 +00:00
|
|
|
|
2007-06-23 00:39:57 +00:00
|
|
|
} // end clang namespace
|
|
|
|
|
2008-07-02 00:03:09 +00:00
|
|
|
#include "AnalysisConsumer.h"
|
|
|
|
|
2007-06-23 00:39:57 +00:00
|
|
|
#endif
|