diff options
author | Evan Martin <martine@danga.com> | 2012-08-12 22:09:33 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-08-12 22:09:33 (GMT) |
commit | c963c4834d0ab05ce8ecf341c74db6ded379fa8a (patch) | |
tree | 46473deed3a5eb66fca363fcf1f13c54578df144 /src/msvc_helper.h | |
parent | 1843f550d9b8b6d271cefdfb5fffd150bb8ef069 (diff) | |
download | Ninja-c963c4834d0ab05ce8ecf341c74db6ded379fa8a.zip Ninja-c963c4834d0ab05ce8ecf341c74db6ded379fa8a.tar.gz Ninja-c963c4834d0ab05ce8ecf341c74db6ded379fa8a.tar.bz2 |
msvc helper: attempt to filter out when it prints the input filename
This is a heuristic but it appears to work for the Chrome build.
Diffstat (limited to 'src/msvc_helper.h')
-rw-r--r-- | src/msvc_helper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/msvc_helper.h b/src/msvc_helper.h index 5a657be..5bf9787 100644 --- a/src/msvc_helper.h +++ b/src/msvc_helper.h @@ -34,5 +34,11 @@ struct CLWrapper { /// Exposed for testing. static string FilterShowIncludes(const string& line); + /// Parse a line of cl.exe output and return true if it looks like + /// it's printing an input filename. This is a heuristic but it appears + /// to be the best we can do. + /// Exposed for testing. + static bool FilterInputFilename(const string& line); + vector<string> includes_; }; |