brintos

brintos / llvm-project-archived public Read only

0
0
Text · 475 B · fed9026 Raw
12 lines · cpp
1// RUN: %check_clang_tidy %s portability-restrict-system-includes %t \2// RUN:     -- -config="{CheckOptions: {portability-restrict-system-includes.Includes: '-*,std*.h'}}" \3// RUN:     -- -isystem %S/Inputs/restrict-system-includes/system4 5// Test glob functionality: disallow all headers except those that match6// pattern "std*.h".7 8#include <stddef.h>9#include <stdint.h>10#include <float.h>11// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include float.h not allowed12