File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ void CheckClass::privateFunctions()
644644 while (ftok->str () != " {" )
645645 ftok = ftok->next ();
646646 const Token *etok = ftok->link ();
647-
647+
648648 for (; ftok != etok; ftok = ftok->next ())
649649 {
650650 if (Token::Match (ftok, " %var% (" ))
Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
208208 // Preprocessor
209209 if (!line.empty () && line[0 ] == ' #' )
210210 {
211- enum {
211+ enum
212+ {
212213 ESC_NONE,
213214 ESC_SINGLE,
214215 ESC_DOUBLE
@@ -221,7 +222,7 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
221222
222223 // need space.. #if( => #if (
223224 bool needSpace = true ;
224- while (i != line.end ())
225+ while (i != line.end ())
225226 {
226227 // disable esc-mode
227228 if (escapeStatus != ESC_NONE)
@@ -234,7 +235,9 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
234235 {
235236 escapeStatus = ESC_NONE;
236237 }
237- } else {
238+ }
239+ else
240+ {
238241 // enable esc-mode
239242 if (escapeStatus == ESC_NONE && *i == ' "' )
240243 escapeStatus = ESC_DOUBLE;
@@ -264,7 +267,9 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
264267 if (escapeStatus != ESC_NONE && prev == ' \\ ' && *i == ' \\ ' )
265268 {
266269 prev = ' ' ;
267- } else {
270+ }
271+ else
272+ {
268273 prev = *i;
269274 }
270275 i++;
@@ -273,7 +278,9 @@ std::string Preprocessor::preprocessCleanupDirectives(const std::string &process
273278 {
274279 // unmatched quotes.. compiler should probably complain about this..
275280 }
276- } else {
281+ }
282+ else
283+ {
277284 // Do not mess with regular code..
278285 code << line;
279286 }
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ class Preprocessor
152152 static std::string removeParantheses (const std::string &str);
153153
154154 /* *
155- * clean up #-preprocessor lines (only)
155+ * clean up #-preprocessor lines (only)
156156 * @param processedFile The data to be processed
157157 */
158158 std::string preprocessCleanupDirectives (const std::string &processedFile) const ;
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ int main(int argc, char **argv)
251251 makeConditionalVariable (fout, " INCLUDE_FOR_LIB" , " -Ilib" );
252252 makeConditionalVariable (fout, " INCLUDE_FOR_CLI" , " -Ilib -Iexternals -Iexternals/tinyxml" );
253253 makeConditionalVariable (fout, " INCLUDE_FOR_TEST" , " -Ilib -Icli -Iexternals -Iexternals/tinyxml" );
254-
254+
255255 fout << " BIN=$(DESTDIR)$(PREFIX)/bin\n\n " ;
256256 fout << " # For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n " ;
257257 fout << " DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl\n " ;
You can’t perform that action at this time.
0 commit comments