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;
|
|
|
|
|
|
|
|
/// 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
|
|
|
///
|
|
|
|
/// \param FreeMemory If false, the memory used for AST elements is
|
|
|
|
/// not released.
|
|
|
|
void ParseAST(Preprocessor &pp, ASTConsumer *C,
|
|
|
|
bool PrintStats = false, bool FreeMemory = true);
|
2008-08-07 23:48:19 +04:00
|
|
|
|
2007-07-11 21:01:13 +04:00
|
|
|
} // end namespace clang
|
|
|
|
|
|
|
|
#endif
|