[libc] Enable llvmlibc clang-tidy checks
authorPaula Toth <paulatoth@google.com>
Tue, 24 Mar 2020 03:33:56 +0000 (20:33 -0700)
committerPaula Toth <paulatoth@google.com>
Tue, 24 Mar 2020 03:34:39 +0000 (20:34 -0700)
commitdab219eedd29fdadf6599224c54c6fd74637cb41
tree79fc624f13537caf0b32c62892a48713761fc835
parent816ad48c820bf49feb276fa623d5115c0bc9ee66
[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
libc/src/.clang-tidy [new file with mode: 0644]
libc/src/math/round_redirector.cpp