Originally reported on Google Code with ID 54
ConvertToQuotedInclude tidies any stray leading directory separator after is has stripped
an include path:
StripLeft(&path, "/");
to work on windows, it needs to do the following:
StripLeft(&path, "/") || StripLeft(&path, "\\");
Without this a number of the tests are failing like so:
Unexpected summary diffs for tests/virtual_tpl_method.cc:
+++
@@ -1,8 +1,8 @@
tests/virtual_tpl_method.cc should add these lines:
-#include "tests/indirect.h"
+#include "\tests/indirect.h"
tests/virtual_tpl_method.cc should remove these lines:
- #include "tests/direct.h" // lines XX-XX
The full include-list for tests/virtual_tpl_method.cc:
-#include "tests/indirect.h" // for IndirectClass
+#include "\tests/indirect.h" // for IndirectClass
---
I'm assuming this will no-op on Linux, but I could use an #ifdef _MSC_VER guard to
ensure this additional strip is only performed on Win32.
Reported by paul.holden on 2011-07-16 17:58:50
- Attachment: fix_convert_to_quoted_include.patch
该提问来源于开源项目:include-what-you-use/include-what-you-use