Skip to content

Commit 1821aad

Browse files
committed
Fix clang-tidy issues
1 parent 31bf2b8 commit 1821aad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

simplecpp.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ namespace simplecpp {
151151
class SIMPLECPP_LIB Token {
152152
public:
153153
Token(const TokenString &s, const Location &loc, bool wsahead = false) :
154-
whitespaceahead(wsahead), locationchange(false), location(loc), string(s) {
154+
whitespaceahead(wsahead), location(loc), string(s) {
155155
flags();
156156
}
157157

@@ -182,7 +182,8 @@ namespace simplecpp {
182182
bool name;
183183
bool number;
184184
bool whitespaceahead;
185-
bool locationchange; /* token location is at a discontinuity from #line directive */
185+
/** whether token location is at a discontinuity from a #line directive */
186+
bool locationchange {false};
186187
Location location;
187188
Token *previous{};
188189
Token *next{};

0 commit comments

Comments
 (0)