brintos

brintos / llvm-project-archived public Read only

0
0
Text · 442 B · 66e389e Raw
11 lines · cpp
1// RUN: %check_clang_tidy %s portability-restrict-system-includes %t \2// RUN:     -- -config="{CheckOptions: {portability-restrict-system-includes.Includes: '*,-stddef.h'}}" \3// RUN:     -- -isystem %S/Inputs/restrict-system-includes/system4 5// Test block-list functionality: allow all but stddef.h.6 7#include <stddef.h>8// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stddef.h not allowed9#include <stdint.h>10#include <float.h>11