HomePhabricator

[libc] Enable llvmlibc clang-tidy checks

Authored by PaulkaToast on Mar 23 2020, 8:33 PM.

Description

[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

Details

Committed
PaulkaToastMar 23 2020, 8:34 PM
Reviewer
sivachandra
Differential Revision
D76559: [libc] Enable llvmlibc clang-tidy checks
Parents
rG816ad48c820b: [NFC][RUIP] Small debug output refine
Branches
Unknown
Tags
Unknown