summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 16:17:09 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-17 12:37:10 (GMT)
commitfddc48dd2696a8530f03616f21d98e7dab8bc96f (patch)
treef0d790411c3e19103c2b87b836b5dcd93d17cf37 /Source
parent95a3d91e5ce2388b5c0e6ea4e4e3663477975a96 (diff)
downloadCMake-fddc48dd2696a8530f03616f21d98e7dab8bc96f.zip
CMake-fddc48dd2696a8530f03616f21d98e7dab8bc96f.tar.gz
CMake-fddc48dd2696a8530f03616f21d98e7dab8bc96f.tar.bz2
ctest.cxx: Use anonymous namespace instead of `static` arrays
Diffstat (limited to 'Source')
-rw-r--r--Source/ctest.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 363f473..eba6d82 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -16,16 +16,16 @@
#include "CTest/cmCTestLaunch.h"
#include "CTest/cmCTestScriptHandler.h"
-static const char* cmDocumentationName[][2] = {
+namespace {
+const char* cmDocumentationName[][2] = {
{ nullptr, " ctest - Testing driver provided by CMake." },
{ nullptr, nullptr }
};
-static const char* cmDocumentationUsage[][2] = { { nullptr,
- " ctest [options]" },
- { nullptr, nullptr } };
+const char* cmDocumentationUsage[][2] = { { nullptr, " ctest [options]" },
+ { nullptr, nullptr } };
-static const char* cmDocumentationOptions[][2] = {
+const char* cmDocumentationOptions[][2] = {
{ "--preset <preset>, --preset=<preset>",
"Read arguments from a test preset." },
{ "--list-presets", "List available test presets." },
@@ -158,6 +158,7 @@ static const char* cmDocumentationOptions[][2] = {
"Regard no tests found either as 'error' or 'ignore' it." },
{ nullptr, nullptr }
};
+} // anonymous namespace
// this is a test driver program for cmCTest.
int main(int argc, char const* const* argv)