2008-02-06 03:23:21 +03:00
|
|
|
//===--- ParseAST.h - Define the ParseAST method ----------------*- C++ -*-===//
|
2007-07-11 21:01:13 +04:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 22:59:25 +03:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-07-11 21:01:13 +04:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2008-02-06 03:23:21 +03:00
|
|
|
// This file defines the clang::ParseAST method.
|
2007-07-11 21:01:13 +04:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-02-06 03:23:21 +03:00
|
|
|
#ifndef LLVM_CLANG_SEMA_PARSEAST_H
|
|
|
|
#define LLVM_CLANG_SEMA_PARSEAST_H
|
2007-07-11 21:01:13 +04:00
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
class Preprocessor;
|
2007-09-16 02:56:56 +04:00
|
|
|
class ASTConsumer;
|
2009-01-28 07:29:29 +03:00
|
|
|
class TranslationUnit;
|
|
|
|
|
2007-09-16 02:56:56 +04:00
|
|
|
/// ParseAST - Parse the entire file specified, notifying the ASTConsumer as
|
2008-10-28 01:01:05 +03:00
|
|
|
/// the file is parsed.
|
2008-10-16 20:54:18 +04:00
|
|
|
///
|
2009-01-28 07:29:29 +03:00
|
|
|
/// \param TU If 0, then memory used for AST elements will be allocated only
|
|
|
|
/// for the duration of the ParseAST() call. In this case, the client should
|
|
|
|
/// not access any AST elements after ParseAST() returns.
|
2008-10-16 20:54:18 +04:00
|
|
|
void ParseAST(Preprocessor &pp, ASTConsumer *C,
|
2009-01-28 07:29:29 +03:00
|
|
|
TranslationUnit *TU = 0,
|
|
|
|
bool PrintStats = false);
|
2008-08-07 23:48:19 +04:00
|
|
|
|
2007-07-11 21:01:13 +04:00
|
|
|
} // end namespace clang
|
|
|
|
|
|
|
|
#endif
|