We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9169dcb commit aa63fdfCopy full SHA for aa63fdf
clang/tools/libclang/CIndexer.cpp
@@ -31,6 +31,11 @@
31
#include <vector>
32
#include <sstream>
33
34
+#ifdef __CYGWIN__
35
+#include <sys/cygwin.h>
36
+#define LLVM_ON_WIN32 1
37
+#endif
38
+
39
#ifdef LLVM_ON_WIN32
40
#include <windows.h>
41
#else
@@ -51,7 +56,13 @@ std::string CIndexer::getClangResourcesPath() {
51
56
VirtualQuery((void *)(uintptr_t)clang_createTranslationUnit, &mbi,
52
57
sizeof(mbi));
53
58
GetModuleFileNameA((HINSTANCE)mbi.AllocationBase, path, MAX_PATH);
54
-
59
60
61
+ char w32path[MAX_PATH];
62
+ strcpy(w32path, path);
63
+ cygwin_conv_to_full_posix_path(w32path, path);
64
65
55
66
llvm::sys::Path LibClangPath(path);
67
LibClangPath.eraseComponent();
68
0 commit comments