]> granicus.if.org Git - clang/commitdiff
Make the ASTUnit constructor private; all ASTUnit clients should be using the static...
authorDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 18:20:14 +0000 (18:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 18:20:14 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100444 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/ASTUnit.h

index 247df7c1dd6edb9791b30abc2a9a50f3c71bb2a3..573a3f2723d2b01ea0a0baa8bc2f78f79ace2fb8 100644 (file)
@@ -52,7 +52,6 @@ public:
   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 @@ private:
   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 @@ public:
   };
   friend class ConcurrencyCheck;
   
-  ASTUnit(Diagnostic &Diag, bool MainFileIsAST);
   ~ASTUnit();
 
   bool isMainFileAST() const { return MainFileIsAST; }