From 7aa7eb9d0221bc67e2cd564e703a2427dc212b79 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 27 Nov 2012 22:49:42 +0000 Subject: [PATCH] [libclang] Remove WorkingDir field from CIndexer, it has been rendered useless. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168738 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/CIndex.cpp | 1 - tools/libclang/CIndexer.h | 4 ---- 2 files changed, 5 deletions(-) diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 3a6c408bff..81179bd455 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -2486,7 +2486,6 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx, CIndexer *CXXIdx = static_cast(CIdx); FileSystemOptions FileSystemOpts; - FileSystemOpts.WorkingDir = CXXIdx->getWorkingDirectory(); IntrusiveRefCntPtr Diags; ASTUnit *TU = ASTUnit::LoadFromASTFile(ast_filename, Diags, FileSystemOpts, diff --git a/tools/libclang/CIndexer.h b/tools/libclang/CIndexer.h index 1e5fb824bb..5cc1bf648d 100644 --- a/tools/libclang/CIndexer.h +++ b/tools/libclang/CIndexer.h @@ -33,7 +33,6 @@ class CIndexer { unsigned Options; // CXGlobalOptFlags. llvm::sys::Path ResourcesPath; - std::string WorkingDir; public: CIndexer() : OnlyLocalDecls(false), DisplayDiagnostics(false), @@ -59,9 +58,6 @@ public: /// \brief Get the path of the clang resource files. std::string getClangResourcesPath(); - - const std::string &getWorkingDirectory() const { return WorkingDir; } - void setWorkingDirectory(const std::string &Dir) { WorkingDir = Dir; } }; /**