#ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXTRANSLATIONUNIT_H
#define LLVM_CLANG_TOOLS_LIBCLANG_CXTRANSLATIONUNIT_H
#include "CLog.h"
#include "CXString.h"
#include "clang-c/Index.h"
namespace clang {
class ASTUnit;
class CIndexer;
namespace index {
class CommentToXMLConverter;
}
}
struct CXTranslationUnitImpl { … };
struct CXTargetInfoImpl { … };
namespace clang {
namespace cxtu {
CXTranslationUnitImpl *MakeCXTranslationUnit(CIndexer *CIdx,
std::unique_ptr<ASTUnit> AU);
static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { … }
bool isASTReadError(ASTUnit *AU);
static inline bool isNotUsableTU(CXTranslationUnit TU) { … }
#define LOG_BAD_TU(TU) …
class CXTUOwner { … };
}}
#endif