commit | d4e8193c6bf264d32332a82d6ec0188c9bdac14f | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Wed Jun 17 04:40:45 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Jun 18 11:25:43 2015 +0900 |
tree | 5aa49b3c2c4d3fcfacbaa50f3f92c2ccb14d6ffc | |
parent | 14b8bea45a560e1bb61e5e4d0f1fbb50a988224e [diff] [blame] |
[C++] Add a fast path for comment-only-lines
diff --git a/parser.cc b/parser.cc index 7c60673..eaec6fb 100644 --- a/parser.cc +++ b/parser.cc
@@ -100,6 +100,10 @@ } line = line.StripLeftSpaces(); + + if (line[0] == '#') + return; + if (HandleDirective(line)) { return; }