aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/pp-engine.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2013-07-17 00:01:45 +0300
committerOrgad Shaneh <[email protected]>2013-07-17 11:11:25 +0200
commitad9e7ccab6e8476c0cb478ea2e4f13354dc21635 (patch)
tree9c67e7cfec7e7d0603e9279de9227cdef1cac530 /src/libs/cplusplus/pp-engine.cpp
parentc67f7f63497b321f42ee0081f29b7e3804023a10 (diff)
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/pp-engine.cpp')
-rw-r--r--src/libs/cplusplus/pp-engine.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp
index 659b888327b..0f678adf025 100644
--- a/src/libs/cplusplus/pp-engine.cpp
+++ b/src/libs/cplusplus/pp-engine.cpp
@@ -1862,12 +1862,11 @@ void Preprocessor::handleElseDirective(PPToken *tk, const PPToken &poundToken)
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 &poundToken)
@@ -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,