forked from OSchip/llvm-project
Fix gcc5 build of ASTMatchersTest.h
After a180d54
the build was failing with:
In file included from /work/llvm.monorepo/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp:9:0:
/work/llvm.monorepo/clang/unittests/ASTMatchers/ASTMatchersTest.h:
In function ‘llvm::ArrayRef<clang::TestLanguage> clang::ast_matchers::langCxx11OrLater()’:
/work/llvm.monorepo/clang/unittests/ASTMatchers/ASTMatchersTest.h:64:10:
error: could not convert ‘(const clang::TestLanguage*)(& Result)’ from
‘const clang::TestLanguage*’ to ‘llvm::ArrayRef<clang::TestLanguage>’
return Result;
^
This commit is contained in:
parent
a7534dc819
commit
767516c546
|
@ -61,22 +61,22 @@ private:
|
|||
inline ArrayRef<TestLanguage> langCxx11OrLater() {
|
||||
static const TestLanguage Result[] = {Lang_CXX11, Lang_CXX14, Lang_CXX17,
|
||||
Lang_CXX20};
|
||||
return Result;
|
||||
return ArrayRef<TestLanguage>(Result);
|
||||
}
|
||||
|
||||
inline ArrayRef<TestLanguage> langCxx14OrLater() {
|
||||
static const TestLanguage Result[] = {Lang_CXX14, Lang_CXX17, Lang_CXX20};
|
||||
return Result;
|
||||
return ArrayRef<TestLanguage>(Result);
|
||||
}
|
||||
|
||||
inline ArrayRef<TestLanguage> langCxx17OrLater() {
|
||||
static const TestLanguage Result[] = {Lang_CXX17, Lang_CXX20};
|
||||
return Result;
|
||||
return ArrayRef<TestLanguage>(Result);
|
||||
}
|
||||
|
||||
inline ArrayRef<TestLanguage> langCxx20OrLater() {
|
||||
static const TestLanguage Result[] = {Lang_CXX20};
|
||||
return Result;
|
||||
return ArrayRef<TestLanguage>(Result);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in New Issue