diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h --- a/clang/unittests/ASTMatchers/ASTMatchersTest.h +++ b/clang/unittests/ASTMatchers/ASTMatchersTest.h @@ -59,24 +59,23 @@ }; inline ArrayRef langCxx11OrLater() { - static std::vector Result = {Lang_CXX11, Lang_CXX14, Lang_CXX17, - Lang_CXX20}; + static const TestLanguage Result[] = {Lang_CXX11, Lang_CXX14, Lang_CXX17, + Lang_CXX20}; return Result; } inline ArrayRef langCxx14OrLater() { - static std::vector Result = {Lang_CXX14, Lang_CXX17, - Lang_CXX20}; + static const TestLanguage Result[] = {Lang_CXX14, Lang_CXX17, Lang_CXX20}; return Result; } inline ArrayRef langCxx17OrLater() { - static std::vector Result = {Lang_CXX17, Lang_CXX20}; + static const TestLanguage Result[] = {Lang_CXX17, Lang_CXX20}; return Result; } inline ArrayRef langCxx20OrLater() { - static std::vector Result = {Lang_CXX20}; + static const TestLanguage Result[] = {Lang_CXX20}; return Result; }