diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-08-28 14:56:04 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-08-28 17:58:33 +0200 |
commit | 703f36a4b8733a515093e2d1d85a3136728269eb (patch) | |
tree | bcbdf3efe489a651d5bd9608eebad85c704c6ba3 /src/libs/3rdparty/cplusplus/Lexer.cpp | |
parent | 12642cc49a37e50eb3b099bfd34c28e6259b7526 (diff) |
C++: remove reserved names.
See [global.names] (17.6.4.3.2 in the C++11 spec.)
Change-Id: I8434496dbe392b52d339d5f17cfaeee8dbd88995
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Lexer.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Lexer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/3rdparty/cplusplus/Lexer.cpp b/src/libs/3rdparty/cplusplus/Lexer.cpp index 2da7d3a41c..93e47045f3 100644 --- a/src/libs/3rdparty/cplusplus/Lexer.cpp +++ b/src/libs/3rdparty/cplusplus/Lexer.cpp @@ -137,7 +137,7 @@ void Lexer::scan(Token *tok) void Lexer::scan_helper(Token *tok) { - _Lagain: + again: while (_yychar && std::isspace(_yychar)) { if (_yychar == '\n') { tok->f.joined = s._newlineExpected; @@ -198,7 +198,7 @@ void Lexer::scan_helper(Token *tok) } if (! f._scanCommentTokens) - goto _Lagain; + goto again; tok->f.kind = originalKind; return; // done @@ -232,7 +232,7 @@ void Lexer::scan_helper(Token *tok) switch (ch) { case '\\': s._newlineExpected = true; - goto _Lagain; + goto again; case '"': scanStringLiteral(tok); @@ -404,7 +404,7 @@ void Lexer::scan_helper(Token *tok) scanCppComment(commentType); if (! f._scanCommentTokens) - goto _Lagain; + goto again; tok->f.kind = commentType; @@ -419,7 +419,7 @@ void Lexer::scan_helper(Token *tok) yyinp(); if (ch == '*' && _yychar == '/') - goto _Ldone; + goto done; if (_yychar == '<') yyinp(); @@ -438,14 +438,14 @@ void Lexer::scan_helper(Token *tok) } } - _Ldone: + done: if (_yychar) yyinp(); else s._tokenKind = commentKind; if (! f._scanCommentTokens) - goto _Lagain; + goto again; tok->f.kind = commentKind; |