189a1d03eSRichard // RUN: %check_clang_tidy %s portability-restrict-system-includes %t \ 2*e8a3ddafSNathan James // RUN: -- -config="{CheckOptions: {portability-restrict-system-includes.Includes: '-*,stddef.h'}}" \ 389a1d03eSRichard // RUN: -- -isystem %S/Inputs/restrict-system-includes/system 489a1d03eSRichard 589a1d03eSRichard // Test allow-list functionality: disallow all but stddef.h. 689a1d03eSRichard 789a1d03eSRichard #include <stddef.h> 889a1d03eSRichard #include <stdint.h> 989a1d03eSRichard // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include stdint.h not allowed 1089a1d03eSRichard #include <float.h> 1189a1d03eSRichard // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include float.h not allowed 12