forked from qt-creator/qt-creator
		
	Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
		
				
					committed by
					
						 Orgad Shaneh
						Orgad Shaneh
					
				
			
			
				
	
			
			
			
						parent
						
							c67f7f6349
						
					
				
				
					commit
					ad9e7ccab6
				
			| @@ -1862,12 +1862,11 @@ void Preprocessor::handleElseDirective(PPToken *tk, const PPToken £Token) | ||||
|             else if (m_client && !wasSkipping && startSkipping) | ||||
|                 startSkippingBlocks(poundToken); | ||||
|         } | ||||
|     } | ||||
| #ifndef NO_DEBUG | ||||
|     else { | ||||
|     } else { | ||||
|         std::cerr << "*** WARNING #else without #if" << std::endl; | ||||
|     } | ||||
| #endif // NO_DEBUG | ||||
|     } | ||||
| } | ||||
|  | ||||
| void Preprocessor::handleEndIfDirective(PPToken *tk, const PPToken £Token) | ||||
| @@ -1930,12 +1929,11 @@ void Preprocessor::handleIfDefDirective(bool checkUndefined, PPToken *tk) | ||||
|             startSkippingBlocks(*tk); | ||||
|  | ||||
|         lex(tk); // consume the identifier | ||||
|     } | ||||
| #ifndef NO_DEBUG | ||||
|     else { | ||||
|     } else { | ||||
|         std::cerr << "*** WARNING #ifdef without identifier" << std::endl; | ||||
|     } | ||||
| #endif // NO_DEBUG | ||||
|     } | ||||
| } | ||||
|  | ||||
| void Preprocessor::handleUndefDirective(PPToken *tk) | ||||
| @@ -1948,12 +1946,11 @@ void Preprocessor::handleUndefDirective(PPToken *tk) | ||||
|         if (m_client && macro) | ||||
|             m_client->macroAdded(*macro); | ||||
|         lex(tk); // consume macro name | ||||
|     } | ||||
| #ifndef NO_DEBUG | ||||
|     else { | ||||
|     } else { | ||||
|         std::cerr << "*** WARNING #undef without identifier" << std::endl; | ||||
|     } | ||||
| #endif // NO_DEBUG | ||||
|     } | ||||
| } | ||||
|  | ||||
| PPToken Preprocessor::generateToken(enum Kind kind, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user