[cfe-commits] r168738 - in /cfe/trunk/tools/libclang: CIndex.cpp CIndexer.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Tue Nov 27 14:49:43 PST 2012
Author: akirtzidis
Date: Tue Nov 27 16:49:42 2012
New Revision: 168738
URL: http://llvm.org/viewvc/llvm-project?rev=168738&view=rev
Log:
[libclang] Remove WorkingDir field from CIndexer, it has been rendered useless.
No functionality change.
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
cfe/trunk/tools/libclang/CIndexer.h
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=168738&r1=168737&r2=168738&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Tue Nov 27 16:49:42 2012
@@ -2486,7 +2486,6 @@
CIndexer *CXXIdx = static_cast<CIndexer *>(CIdx);
FileSystemOptions FileSystemOpts;
- FileSystemOpts.WorkingDir = CXXIdx->getWorkingDirectory();
IntrusiveRefCntPtr<DiagnosticsEngine> Diags;
ASTUnit *TU = ASTUnit::LoadFromASTFile(ast_filename, Diags, FileSystemOpts,
Modified: cfe/trunk/tools/libclang/CIndexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexer.h?rev=168738&r1=168737&r2=168738&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexer.h (original)
+++ cfe/trunk/tools/libclang/CIndexer.h Tue Nov 27 16:49:42 2012
@@ -33,7 +33,6 @@
unsigned Options; // CXGlobalOptFlags.
llvm::sys::Path ResourcesPath;
- std::string WorkingDir;
public:
CIndexer() : OnlyLocalDecls(false), DisplayDiagnostics(false),
@@ -59,9 +58,6 @@
/// \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; }
};
/**
More information about the cfe-commits
mailing list