[cfe-commits] r84484 - /cfe/trunk/tools/CIndex/CIndex.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Oct 19 03:20:26 PDT 2009
Author: d0k
Date: Mon Oct 19 05:20:24 2009
New Revision: 84484
URL: http://llvm.org/viewvc/llvm-project?rev=84484&view=rev
Log:
CIndex: make variable non-static to avoid potential race conditions, per
Daniel's comment.
Modified:
cfe/trunk/tools/CIndex/CIndex.cpp
Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=84484&r1=84483&r2=84484&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Mon Oct 19 05:20:24 2009
@@ -283,14 +283,12 @@
void setOnlyLocalDecls(bool Local = true) { OnlyLocalDecls = Local; }
/// \brief Get the path of the clang binary.
- static const llvm::sys::Path& getClangPath();
+ const llvm::sys::Path& getClangPath();
private:
bool OnlyLocalDecls;
- static llvm::sys::Path ClangPath;
+ llvm::sys::Path ClangPath;
};
-llvm::sys::Path CIndexer::ClangPath;
-
const llvm::sys::Path& CIndexer::getClangPath() {
// Did we already compute the path?
if (!ClangPath.empty())
More information about the cfe-commits
mailing list