Commit 06bcf722 authored by Nico Weber's avatar Nico Weber

Try to get clang plugin compiling again after upstream r331155.

While here, also s/LLVM_ON_WIN32/_WIN32/ since LLVM_ON_WIN32 is going
away and _WIN32 is the same thing.

Bug: none
Change-Id: I64f813b4d4c488fbd9ff7601416e29b4b1973a10
Reviewed-on: https://chromium-review.googlesource.com/1035103
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554755}
parent d9857640
......@@ -711,7 +711,7 @@ bool BlinkGCPluginConsumer::InIgnoredDirectory(RecordInfo* info) {
std::string filename;
if (!GetFilename(info->record()->getLocStart(), &filename))
return false; // TODO: should we ignore non-existing file locations?
#if defined(LLVM_ON_WIN32)
#if defined(_WIN32)
std::replace(filename.begin(), filename.end(), '\\', '/');
#endif
for (const auto& dir : options_.ignored_directories)
......
......@@ -17,7 +17,7 @@
#ifdef LLVM_ON_UNIX
#include <sys/param.h>
#endif
#if defined(LLVM_ON_WIN32)
#if defined(_WIN32)
#include <windows.h>
#endif
......@@ -154,7 +154,11 @@ bool ChromeClassTester::InImplementationFile(SourceLocation record_location) {
break;
}
record_location =
#if defined(LLVM_FORCE_HEAD_REVISION)
source_manager.getImmediateExpansionRange(record_location).getBegin();
#else
source_manager.getImmediateExpansionRange(record_location).first;
#endif
}
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment