[all-commits] [llvm/llvm-project] dab219: [libc] Enable llvmlibc clang-tidy checks

Paula Toth via All-commits all-commits at lists.llvm.org
Mon Mar 23 20:35:57 PDT 2020


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

  Changed paths:
    A libc/src/.clang-tidy
    M libc/src/math/round_redirector.cpp

  Log Message:
  -----------
  [libc] Enable llvmlibc clang-tidy checks

Summary:
Add  clang-tidy for llvm-libc source directory.

Example of check in action:
```
/workspace/llvm-project/libc/src/string/strcpy.cpp:10:1: error: system include stdio.h not allowed [llvmlibc-restrict-system-libc-headers,-warnings-as-errors]
#include <stdio.h>
^~~~~~~~~~~~~~~~~~
```

Reviewers: sivachandra, abrachet

Reviewed By: sivachandra, abrachet

Subscribers: aheejin, MaskRay, tschuett, libc-commits

Tags: #libc-project

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




More information about the All-commits mailing list