aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/misc/MacroParenthesesCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/misc/MacroParenthesesCheck.cpp')
-rw-r--r--clang-tidy/misc/MacroParenthesesCheck.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang-tidy/misc/MacroParenthesesCheck.cpp b/clang-tidy/misc/MacroParenthesesCheck.cpp
index cfc94c47..dd4df1cc 100644
--- a/clang-tidy/misc/MacroParenthesesCheck.cpp
+++ b/clang-tidy/misc/MacroParenthesesCheck.cpp
@@ -79,7 +79,8 @@ static bool possibleVarDecl(const MacroInfo *MI, const Token *Tok) {
if (Tok == MI->tokens_end())
return false;
- // If we see int/short/struct/etc., just assume this is a variable declaration.
+ // If we see int/short/struct/etc., just assume this is a variable
+ // declaration.
if (isVarDeclKeyword(*Tok))
return true;
@@ -88,10 +89,10 @@ static bool possibleVarDecl(const MacroInfo *MI, const Token *Tok) {
return false;
// Skip possible types, etc
- while (
- Tok != MI->tokens_end() &&
- Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon,
- tok::star, tok::amp, tok::ampamp, tok::less, tok::greater))
+ while (Tok != MI->tokens_end() &&
+ Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon,
+ tok::star, tok::amp, tok::ampamp, tok::less,
+ tok::greater))
Tok++;
// Return true for possible variable declarations.