[all-commits] [llvm/llvm-project] 767516: Fix gcc5 build of ASTMatchersTest.h

Hans via All-commits all-commits at lists.llvm.org
Fri Jun 5 01:38:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 767516c5463a58f64cc3e0e1125b761aedceecf5
      https://github.com/llvm/llvm-project/commit/767516c5463a58f64cc3e0e1125b761aedceecf5
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M clang/unittests/ASTMatchers/ASTMatchersTest.h

  Log Message:
  -----------
  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;
          ^




More information about the All-commits mailing list