[cfe-commits] r100444 - /cfe/trunk/include/clang/Frontend/ASTUnit.h
Douglas Gregor
dgregor at apple.com
Mon Apr 5 11:20:14 PDT 2010
Author: dgregor
Date: Mon Apr 5 13:20:14 2010
New Revision: 100444
URL: http://llvm.org/viewvc/llvm-project?rev=100444&view=rev
Log:
Make the ASTUnit constructor private; all ASTUnit clients should be using the static factory functions
Modified:
cfe/trunk/include/clang/Frontend/ASTUnit.h
Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=100444&r1=100443&r2=100444&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
+++ cfe/trunk/include/clang/Frontend/ASTUnit.h Mon Apr 5 13:20:14 2010
@@ -52,7 +52,6 @@
typedef std::map<FileID, std::vector<PreprocessedEntity *> >
PreprocessedEntitiesByFileMap;
private:
- llvm::OwningPtr<Diagnostic> DiagEngine;
llvm::OwningPtr<FileManager> FileMgr;
llvm::OwningPtr<SourceManager> SourceMgr;
llvm::OwningPtr<HeaderSearch> HeaderInfo;
@@ -117,6 +116,8 @@
ASTUnit(const ASTUnit&); // DO NOT IMPLEMENT
ASTUnit &operator=(const ASTUnit &); // DO NOT IMPLEMENT
+ ASTUnit(Diagnostic &Diag, bool MainFileIsAST);
+
public:
class ConcurrencyCheck {
volatile ASTUnit &Self;
@@ -136,7 +137,6 @@
};
friend class ConcurrencyCheck;
- ASTUnit(Diagnostic &Diag, bool MainFileIsAST);
~ASTUnit();
bool isMainFileAST() const { return MainFileIsAST; }
More information about the cfe-commits
mailing list