Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Parser.cpp
diff options
context:
space:
mode:
Commit7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-11-28 10:42:25 +0200
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-11-28 20:58:46 +0200
Filesa3acc545a4a6258d2d3e97f69b55a844272fac08 /JSImpl/src/Parser.cpp
IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.tar
IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.tar.gz
IPL-7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c.zip
Parent9cf31d4b4e389f7c879aa8750a397e32f55a43d1 (diff)
Fix clang-tidy warnings
1 files changed, 4 insertions, 1 deletions
-rw-r--r--JSImpl/src/Parser.cpp5
diff --git a/JSImpl/src/Parser.cpp b/JSImpl/src/Parser.cpp
index 00907a0..8f415fb 100644
--- a/JSImpl/src/Parser.cpp
+++ b/JSImpl/src/Parser.cpp
@@ -140,7 +140,8 @@ ExpressionPtr Parser::PrimaryExpression(NormalType a)
{
if (a == NormalType::Initial)
{
- return SimpleExpression();
+ auto simple = SimpleExpression();
+ return simple;
}
if (auto simple = SimpleExpression())
@@ -682,9 +683,11 @@ ExpressionPtr Parser::ConditionalExpression(NormalType a, AllowType b)
if (Match(TokenType::QuestionMark))
{
auto trueExpr= AssignmentExpression(NormalType::Normal, b);
+ (void)trueExpr;
if (Match(TokenType::Colon))
{
auto falseExpr = AssignmentExpression(NormalType::Normal, b);
+ (void)falseExpr;
// TODO implement trinary operator
assert(false);
return ExpressionPtr();