[all-commits] [llvm/llvm-project] f1736f: [clang-tidy] Mock system headers for portability-r...

Paula Toth via All-commits all-commits at lists.llvm.org
Wed Mar 11 12:13:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f1736f7a2a660944c24aac45e24cdf1ea6c6effa
      https://github.com/llvm/llvm-project/commit/f1736f7a2a660944c24aac45e24cdf1ea6c6effa
  Author: Paula Toth <paulatoth at google.com>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/a.h
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/cstdarg.h
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/cstdlib.h
    A clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/float.h
    R clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/j.h
    A clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/stddef.h
    A clang-tools-extra/test/clang-tidy/checkers/Inputs/portability-restrict-system-includes/system/stdint.h
    M clang-tools-extra/test/clang-tidy/checkers/portability-restrict-system-includes-allow.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability-restrict-system-includes-disallow.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability-restrict-system-includes-glob.cpp

  Log Message:
  -----------
  [clang-tidy] Mock system headers for portability-restrict-system-includes tests.

Summary: Didn't realize that headers such as stddef.h may not exist on all systems. This patch mocks the headers so that the check's tests work on all systems.  (:

Reviewers: RKSimon, aaron.ballman

Reviewed By: aaron.ballman

Subscribers: xazax.hun, cfe-commits

Tags: #clang-tools-extra, #clang

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




More information about the All-commits mailing list