From 3f1e937ea156f087a00d2efeed5316c76f60313d Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 17 Jul 2021 08:19:04 +0200 Subject: [PATCH] Running astyle [ci skip] --- lib/analyzer.h | 3 +-- lib/valueflow.cpp | 3 +-- test/testfunctions.cpp | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/analyzer.h b/lib/analyzer.h index b519cdde8..592c1ee5f 100644 --- a/lib/analyzer.h +++ b/lib/analyzer.h @@ -140,8 +140,7 @@ struct Analyzer { virtual void update(Token* tok, Action a, Direction d) = 0; /// Try to evaluate the value of a token(most likely a condition) virtual std::vector evaluate(Evaluate e, const Token* tok, const Token* ctx = nullptr) const = 0; - std::vector evaluate(const Token* tok, const Token* ctx = nullptr) const - { + std::vector evaluate(const Token* tok, const Token* ctx = nullptr) const { return evaluate(Evaluate::Integral, tok, ctx); } /// Lower any values to possible diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 61b51a9d1..114c0b267 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -2177,8 +2177,7 @@ struct ValueFlowAnalyzer : Analyzer { return Action::None; } - virtual std::vector evaluate(Evaluate e, const Token* tok, const Token* ctx = nullptr) const OVERRIDE - { + virtual std::vector evaluate(Evaluate e, const Token* tok, const Token* ctx = nullptr) const OVERRIDE { if (e == Evaluate::Integral) { if (tok->hasKnownIntValue()) return {static_cast(tok->values().front().intvalue)}; diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index 61d51e8fb..f38025a2f 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -1381,7 +1381,8 @@ private: check(code, "test.c", &s); // c code (c89) ASSERT_EQUALS("[test.c:1]: (error) Found a exit path from function with non-void return type that has missing return statement\n", errout.str()); - s.standards.c = Standards::C99; check(code, "test.c", &s); // c code (c99) + s.standards.c = Standards::C99; + check(code, "test.c", &s); // c code (c99) ASSERT_EQUALS("", errout.str()); check(code, "test.cpp", &s); // c++ code