diff --git a/lgtm/cpp-queries/c-style-math-functions.qhelp b/lgtm/cpp-queries/c-style-math-functions.qhelp index ed31aba5fe489..c76aa6a27edbc 100644 --- a/lgtm/cpp-queries/c-style-math-functions.qhelp +++ b/lgtm/cpp-queries/c-style-math-functions.qhelp @@ -20,7 +20,7 @@ definitional differences of these functions, we prefer to avoid use of the funct

Most current c++ standard libraries will allow invoking math functions in the global namespace

-#include +#include \ float my_pow( float base, float exp ) { return pow( base, exp ); @@ -29,7 +29,7 @@ float my_pow( float base, float exp ) {

Prefer invoking the version in the std namespace.

-#include +#include \ float my_pow( float base, float exp ) { return std::pow( base, exp );