You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TEST_CASE("Hello World")
{
int x = foo();
int y = bar();
CHECK( x < y);
}
Output:
clang-tidy (trunk) #2 with x86-64 gcc 9.2
-checks='*,-modernize-use-trailing-return-type'
:10:5: warning: this loop is infinite; none of its condition variables (x, y) are updated in the loop body [bugprone-infinite-loop]
CHECK( x < y);
^
/opt/compiler-explorer/libs/catch2/v2.11.1/include/catch.hpp:217:22: note: expanded from macro 'CHECK'
#define CHECK( ... ) INTERNAL_CATCH_TEST( "CHECK", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
^
/opt/compiler-explorer/libs/catch2/v2.11.1/include/internal/catch_capture.hpp:43:5: note: expanded from macro 'INTERNAL_CATCH_TEST'
do { \
^