ASTUnit.h revision 313e26c4e81f0e467490a530548450f4c824a6c4
14b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis//===--- ASTUnit.h - ASTUnit utility ----------------------------*- C++ -*-===// 24b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// 34b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// The LLVM Compiler Infrastructure 44b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// 54b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// This file is distributed under the University of Illinois Open Source 64b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// License. See LICENSE.TXT for details. 74b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// 84b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis//===----------------------------------------------------------------------===// 94b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// 104b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// ASTUnit utility class. 114b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis// 124b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis//===----------------------------------------------------------------------===// 134b562cf889bc59e1914dd2c5d9fbd7e7bfa1ad77Argyrios Kyrtzidis 140853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis#ifndef LLVM_CLANG_FRONTEND_ASTUNIT_H 150853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis#define LLVM_CLANG_FRONTEND_ASTUNIT_H 160853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 1731b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar#include "clang/Basic/SourceManager.h" 180853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis#include "llvm/ADT/OwningPtr.h" 1936c4464ba6cfc2a63dc67c493ef2f5ab2aea09ccSteve Naroff#include "clang/Basic/FileManager.h" 20f96b524306ccfa623235d375deee79637bd38f29Steve Naroff#include "clang/Index/ASTLocation.h" 21a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor#include "llvm/ADT/SmallVector.h" 22313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor#include "llvm/System/Path.h" 230853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis#include <string> 24f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar#include <vector> 25f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar#include <cassert> 264db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor#include <utility> 274db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor 284db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregornamespace llvm { 294db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor class MemoryBuffer; 304db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor} 310853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 320853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidisnamespace clang { 33521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass ASTContext; 34521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass CompilerInvocation; 35521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass Decl; 36521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass Diagnostic; 37521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass FileEntry; 38521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass FileManager; 39521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass HeaderSearch; 40521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass Preprocessor; 41521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass SourceManager; 42521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbarclass TargetInfo; 430853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 44f96b524306ccfa623235d375deee79637bd38f29Steve Naroffusing namespace idx; 45f96b524306ccfa623235d375deee79637bd38f29Steve Naroff 460853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis/// \brief Utility class for loading a ASTContext from a PCH file. 470853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis/// 480853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidisclass ASTUnit { 4936c4464ba6cfc2a63dc67c493ef2f5ab2aea09ccSteve Naroff FileManager FileMgr; 5036c4464ba6cfc2a63dc67c493ef2f5ab2aea09ccSteve Naroff 5131b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar SourceManager SourceMgr; 520853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis llvm::OwningPtr<HeaderSearch> HeaderInfo; 530853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis llvm::OwningPtr<TargetInfo> Target; 540853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis llvm::OwningPtr<Preprocessor> PP; 550853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis llvm::OwningPtr<ASTContext> Ctx; 56f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 57807b06157a1a5c050520fc194d32f16d22d423a8Daniel Dunbar /// Optional owned invocation, just used to make the invocation used in 58807b06157a1a5c050520fc194d32f16d22d423a8Daniel Dunbar /// LoadFromCommandLine available. 59807b06157a1a5c050520fc194d32f16d22d423a8Daniel Dunbar llvm::OwningPtr<CompilerInvocation> Invocation; 60807b06157a1a5c050520fc194d32f16d22d423a8Daniel Dunbar 617d1d49d2971b20a97b3c2a301470b9eaaa130137Douglas Gregor // OnlyLocalDecls - when true, walking this AST should only visit declarations 627d1d49d2971b20a97b3c2a301470b9eaaa130137Douglas Gregor // that come from the AST itself, not from included precompiled headers. 637d1d49d2971b20a97b3c2a301470b9eaaa130137Douglas Gregor // FIXME: This is temporary; eventually, CIndex will always do this. 647d1d49d2971b20a97b3c2a301470b9eaaa130137Douglas Gregor bool OnlyLocalDecls; 65c7822dbf3c01a2a5f837cff82ba7889ea755dacaDaniel Dunbar 66f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar /// Track whether the main file was loaded from an AST or not. 67c7822dbf3c01a2a5f837cff82ba7889ea755dacaDaniel Dunbar bool MainFileIsAST; 68c7822dbf3c01a2a5f837cff82ba7889ea755dacaDaniel Dunbar 69f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar /// Track the top-level decls which appeared in an ASTUnit which was loaded 70f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar /// from a source file. 71f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar // 72f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar // FIXME: This is just an optimization hack to avoid deserializing large parts 73f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar // of a PCH file when using the Index library on an ASTUnit loaded from 74f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar // source. In the long term we should make the Index library use efficient and 75f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar // more scalable search mechanisms. 76f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar std::vector<Decl*> TopLevelDecls; 77f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 7868d40e2d16b9fadba386853d6bbb60089291fdc5Daniel Dunbar /// The name of the original source file used to generate this ASTUnit. 7968d40e2d16b9fadba386853d6bbb60089291fdc5Daniel Dunbar std::string OriginalSourceFile; 8068d40e2d16b9fadba386853d6bbb60089291fdc5Daniel Dunbar 81f96b524306ccfa623235d375deee79637bd38f29Steve Naroff // Critical optimization when using clang_getCursor(). 82f96b524306ccfa623235d375deee79637bd38f29Steve Naroff ASTLocation LastLoc; 83f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 84a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor /// \brief The set of diagnostics produced when creating this 85a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor /// translation unit. 86a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor llvm::SmallVector<StoredDiagnostic, 4> Diagnostics; 87a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor 88313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor /// \brief Temporary files that should be removed when the ASTUnit is 89313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor /// destroyed. 90313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor llvm::SmallVector<llvm::sys::Path, 4> TemporaryFiles; 91313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor 9231b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar ASTUnit(const ASTUnit&); // DO NOT IMPLEMENT 9331b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar ASTUnit &operator=(const ASTUnit &); // DO NOT IMPLEMENT 941eb4433ac451dc16f4133a88af2d002ac26c58efMike Stump 950853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidispublic: 965262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar ASTUnit(bool MainFileIsAST); 970853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis ~ASTUnit(); 980853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 99c7822dbf3c01a2a5f837cff82ba7889ea755dacaDaniel Dunbar bool isMainFileAST() const { return MainFileIsAST; } 100c7822dbf3c01a2a5f837cff82ba7889ea755dacaDaniel Dunbar 10131b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar const SourceManager &getSourceManager() const { return SourceMgr; } 10231b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar SourceManager &getSourceManager() { return SourceMgr; } 1030853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 1040853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis const Preprocessor &getPreprocessor() const { return *PP.get(); } 1050853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis Preprocessor &getPreprocessor() { return *PP.get(); } 1061eb4433ac451dc16f4133a88af2d002ac26c58efMike Stump 1070853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis const ASTContext &getASTContext() const { return *Ctx.get(); } 1080853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis ASTContext &getASTContext() { return *Ctx.get(); } 1090853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 11036c4464ba6cfc2a63dc67c493ef2f5ab2aea09ccSteve Naroff const FileManager &getFileManager() const { return FileMgr; } 11136c4464ba6cfc2a63dc67c493ef2f5ab2aea09ccSteve Naroff FileManager &getFileManager() { return FileMgr; } 112f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 11377accc11f04ed4ff9afd4e27d430144d4714be56Steve Naroff const std::string &getOriginalSourceFileName(); 114e19944c93961b7618f4f3f3185f698f46369ea54Steve Naroff const std::string &getPCHFileName(); 115b85bca2676b433ae555db09de4dd2823ff13b856Zhongxing Xu 116313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor /// \brief Add a temporary file that the ASTUnit depends on. 117313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor /// 118313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor /// This file will be erased when the ASTUnit is destroyed. 119313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor void addTemporaryFile(const llvm::sys::Path &TempFile) { 120313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor TemporaryFiles.push_back(TempFile); 121313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor } 122313e26c4e81f0e467490a530548450f4c824a6c4Douglas Gregor 1237d1d49d2971b20a97b3c2a301470b9eaaa130137Douglas Gregor bool getOnlyLocalDecls() const { return OnlyLocalDecls; } 124f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 125f96b524306ccfa623235d375deee79637bd38f29Steve Naroff void setLastASTLocation(ASTLocation ALoc) { LastLoc = ALoc; } 126f96b524306ccfa623235d375deee79637bd38f29Steve Naroff ASTLocation getLastASTLocation() const { return LastLoc; } 127f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 128f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar std::vector<Decl*> &getTopLevelDecls() { 129f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar assert(!isMainFileAST() && "Invalid call for AST based ASTUnit!"); 130f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar return TopLevelDecls; 131f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar } 132f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar const std::vector<Decl*> &getTopLevelDecls() const { 133f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar assert(!isMainFileAST() && "Invalid call for AST based ASTUnit!"); 134f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar return TopLevelDecls; 135f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar } 136f772d1e2a5688572d07f42896a50ac57a4a41fe8Daniel Dunbar 137a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor // Retrieve the diagnostics associated with this AST 138a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor typedef const StoredDiagnostic * diag_iterator; 139a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor diag_iterator diag_begin() const { return Diagnostics.begin(); } 140a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor diag_iterator diag_end() const { return Diagnostics.end(); } 141a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor unsigned diag_size() const { return Diagnostics.size(); } 142a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor llvm::SmallVector<StoredDiagnostic, 4> &getDiagnostics() { 143a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor return Diagnostics; 144a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor } 145a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor 1464db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor /// \brief A mapping from a file name to the memory buffer that stores the 1474db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor /// remapped contents of that file. 1484db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor typedef std::pair<std::string, const llvm::MemoryBuffer *> RemappedFile; 1494db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor 1500853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis /// \brief Create a ASTUnit from a PCH file. 1510853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis /// 15231b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar /// \param Filename - The PCH file to load. 1530853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis /// 1545262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// \param Diags - The diagnostics engine to use for reporting errors; its 1555262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// lifetime is expected to extend past that of the returned ASTUnit. 15631b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar /// 15731b87d8006d4863dd9b17e515ac720941efc38e3Daniel Dunbar /// \returns - The initialized ASTUnit or null if the PCH failed to load. 1580853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis static ASTUnit *LoadFromPCHFile(const std::string &Filename, 1595262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar Diagnostic &Diags, 1605cf48766d626ff6b223acc9d4b7e415ca8480836Ted Kremenek bool OnlyLocalDecls = false, 1614db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor RemappedFile *RemappedFiles = 0, 162a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor unsigned NumRemappedFiles = 0, 163a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor bool CaptureDiagnostics = false); 164521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar 165521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar /// LoadFromCompilerInvocation - Create an ASTUnit from a source file, via a 166521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar /// CompilerInvocation object. 167521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar /// 168521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar /// \param CI - The compiler invocation to use; it must have exactly one input 169f7acc37450d59ef751df73acb91de73850cc6517Daniel Dunbar /// source file. The ASTUnit takes ownership of the CompilerInvocation object. 170521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar /// 1715262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// \param Diags - The diagnostics engine to use for reporting errors; its 1725262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// lifetime is expected to extend past that of the returned ASTUnit. 173521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar // 174521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar // FIXME: Move OnlyLocalDecls, UseBumpAllocator to setters on the ASTUnit, we 175521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar // shouldn't need to specify them at construction time. 176f7acc37450d59ef751df73acb91de73850cc6517Daniel Dunbar static ASTUnit *LoadFromCompilerInvocation(CompilerInvocation *CI, 177521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar Diagnostic &Diags, 178a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor bool OnlyLocalDecls = false, 179a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor bool CaptureDiagnostics = false); 180521bf9c529e653ab28896d027352d3e16e2672d5Daniel Dunbar 1817b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// LoadFromCommandLine - Create an ASTUnit from a vector of command line 1827b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// arguments, which must specify exactly one source file. 1837b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// 1847b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// \param ArgBegin - The beginning of the argument vector. 1857b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// 1867b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// \param ArgEnd - The end of the argument vector. 1877b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// 1885262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// \param Diags - The diagnostics engine to use for reporting errors; its 1895262fda30b876c8aae95f2eb92e349418d6b14bbDaniel Dunbar /// lifetime is expected to extend past that of the returned ASTUnit. 1907b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar /// 191869824e87940f97b87064db2df2861e82e08a8c6Daniel Dunbar /// \param ResourceFilesPath - The path to the compiler resource files. 1927b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar // 1937b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar // FIXME: Move OnlyLocalDecls, UseBumpAllocator to setters on the ASTUnit, we 1947b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar // shouldn't need to specify them at construction time. 1957b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar static ASTUnit *LoadFromCommandLine(const char **ArgBegin, 1967b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar const char **ArgEnd, 1977b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar Diagnostic &Diags, 198869824e87940f97b87064db2df2861e82e08a8c6Daniel Dunbar llvm::StringRef ResourceFilesPath, 1997b55668db7618334cc40011d3c1e128524d89462Daniel Dunbar bool OnlyLocalDecls = false, 2004db64a461cb3442934afe43c83ed3f17f7c11c1dDouglas Gregor RemappedFile *RemappedFiles = 0, 201a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor unsigned NumRemappedFiles = 0, 202a88084b78fd4ca5d3d858c14b02414f8cc399f02Douglas Gregor bool CaptureDiagnostics = false); 2030853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis}; 2040853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 2050853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis} // namespace clang 2060853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis 2070853a02c3b04d96a3c432b883e403175c954cd81Argyrios Kyrtzidis#endif 208