summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/depfile_parser.h')
-rw-r--r--src/depfile_parser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/depfile_parser.h b/src/depfile_parser.h
index fd94be9..08bf68a 100644
--- a/src/depfile_parser.h
+++ b/src/depfile_parser.h
@@ -18,8 +18,11 @@ using namespace std;
#include "string_piece.h"
+/// Parser for the dependency information emitted by gcc's -M flags.
struct DepfileParser {
- bool Parse(const string& content, string* err);
+ /// Parse an input file. Warning: may mutate the content in-place
+ /// and parsed StringPieces are pointers within it.
+ bool Parse(string* content, string* err);
StringPiece out_;
vector<StringPiece> ins_;