[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;
     }