[all-commits] [llvm/llvm-project] 2a4c30: [libc] Make clang-tidy use host compiler's resourc...

Paula Toth via All-commits all-commits at lists.llvm.org
Thu May 21 18:41:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a4c30985ded329d64357f5535d2ff2a3f955c81
      https://github.com/llvm/llvm-project/commit/2a4c30985ded329d64357f5535d2ff2a3f955c81
  Author: Paula Toth <paulatoth at google.com>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M libc/CMakeLists.txt
    M libc/cmake/modules/LLVMLibCHeaderRules.cmake
    M libc/cmake/modules/LLVMLibCObjectRules.cmake

  Log Message:
  -----------
  [libc] Make clang-tidy use host compiler's resource dir.

Summary: When building llvm-libc with linting enabled, clang-tidy would use the resource dir of the monorepo rather then the host compiler's resource dir. This presented issues when including headers from the host compiler e.g. for sanitizers. Therefore this patch explicitly tells clang-tidy to use the host compiler's resource dir.

Reviewers: sivachandra

Reviewed By: sivachandra

Subscribers: mgorny, tschuett, ecnelises, libc-commits

Tags: #libc-project

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




More information about the All-commits mailing list