From 54f676177e3f3c52c7c85b34941547a9ac68ce43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 14 Jul 2009 15:30:23 +0200 Subject: [PATCH] doxygen: added a todo to simplify 'for' loops better in the tokenizer --- src/tokenize.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 507c8d508..0514a4583 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -478,6 +478,12 @@ bool Tokenizer::tokenize(std::istream &code, const char FileName[]) // replace "unsigned i" with "unsigned int i" unsignedint(); + /** + * @todo simplify "for" + * - move out start-statement "for (a;b;c);" => "{ a; for(;b;c); }" + * - try to change "for" loop to a "while" loop instead + */ + // Split up variable declarations. simplifyVarDecl();