summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-08-12 22:09:33 (GMT)
committerEvan Martin <martine@danga.com>2012-08-12 22:09:33 (GMT)
commitc963c4834d0ab05ce8ecf341c74db6ded379fa8a (patch)
tree46473deed3a5eb66fca363fcf1f13c54578df144 /src/msvc_helper.h
parent1843f550d9b8b6d271cefdfb5fffd150bb8ef069 (diff)
downloadNinja-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.h6
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_;
};