[all-commits] [llvm/llvm-project] ba18c3: [clang-tidy] Remove opencl-c.h inclusion from tests

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Thu Feb 24 08:29:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba18c360b2f3c25fe9091c7a7931eded374b3cf6
      https://github.com/llvm/llvm-project/commit/ba18c360b2f3c25fe9091c7a7931eded374b3cf6
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-02-24 (Thu, 24 Feb 2022)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/altera-id-dependent-backward-branch.cpp
    M clang-tools-extra/test/clang-tidy/checkers/altera-single-work-item-barrier.cpp

  Log Message:
  -----------
  [clang-tidy] Remove opencl-c.h inclusion from tests

After D120254 some clang-tidy tests started failing on release builds.

clang-tidy has been using the `-fdeclare-opencl-builtins` functionality
since this became the default in clang, so there is no need to include
`opencl-c.h`.

Differential Revision: https://reviews.llvm.org/D120470




More information about the All-commits mailing list