aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/pp-scanner.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-scanner.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-scanner.cpp')
-rw-r--r--src/libs/cplusplus/pp-scanner.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/cplusplus/pp-scanner.cpp b/src/libs/cplusplus/pp-scanner.cpp
index 9f3320e4d3a..2b23a3e2289 100644
--- a/src/libs/cplusplus/pp-scanner.cpp
+++ b/src/libs/cplusplus/pp-scanner.cpp
@@ -259,13 +259,13 @@ const char *pp_skip_argument::operator () (const char *__first, const char *__la
lines = 0;
while (__first != __last) {
- if (!depth && (*__first == ')' || *__first == ','))
+ if (!depth && (*__first == ')' || *__first == ',')) {
break;
- else if (*__first == '(')
+ } else if (*__first == '(') {
++depth, ++__first;
- else if (*__first == ')')
+ } else if (*__first == ')') {
--depth, ++__first;
- else if (*__first == '\"') {
+ } else if (*__first == '\"') {
__first = skip_string_literal (__first, __last);
lines += skip_string_literal.lines;
} else if (*__first == '\'') {
@@ -283,8 +283,9 @@ const char *pp_skip_argument::operator () (const char *__first, const char *__la
} else if (*__first == '\n') {
++__first;
++lines;
- } else
+ } else {
++__first;
+ }
}
return __first;