clang-tidy: avoid global non const variables
Found with cppcoreguidelines-avoid-non-const-global-variables Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Luis Díaz Más
parent
d1e116a8ef
commit
86c71ae6c3
@@ -24,7 +24,7 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
const char* testcases[] = {
|
||||
static constexpr const char* testcases[] = {
|
||||
// bool
|
||||
"True",
|
||||
"False",
|
||||
@@ -52,7 +52,7 @@ const char* testcases[] = {
|
||||
"-4/3",
|
||||
"0/0",
|
||||
// nok
|
||||
"text"
|
||||
"text",
|
||||
};
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user