From e73ec108adb15cda40c17ebe891d25460c3c42b3 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 23 Jul 2017 22:34:49 -0400 Subject: scaninc: skipping comments seems to be faster than removing them --- tools/scaninc/c_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/scaninc/c_file.h') diff --git a/tools/scaninc/c_file.h b/tools/scaninc/c_file.h index 38b10f04e..618901b85 100644 --- a/tools/scaninc/c_file.h +++ b/tools/scaninc/c_file.h @@ -44,9 +44,9 @@ private: std::set m_incbins; std::set m_includes; - void RemoveComments(); bool ConsumeHorizontalWhitespace(); bool ConsumeNewline(); + bool ConsumeComment(); void SkipWhitespace(); bool CheckIdentifier(const std::string& ident); void CheckInclude(); -- cgit v1.2.3