14 lines · cpp
1// RUN: %check_clang_tidy %s llvmlibc-restrict-system-libc-headers %t \2// RUN: -- -- -isystem %S/Inputs/system \3// RUN: -resource-dir %S/Inputs/resource4 5#include <stdio.h>6// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stdio.h not allowed7#include <stdlib.h>8// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stdlib.h not allowed9#include "string.h"10// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include string.h not allowed11#include "stdatomic.h"12#include <stddef.h>13// Compiler provided headers should not throw warnings.14