bee7ec73438c63343f0bb410ee0c5b147a9c8f7e
[lldb.git] / clang-tools-extra / test / clang-tidy / checkers / portability-restrict-system-includes-glob.cpp
1 // RUN: %check_clang_tidy %s portability-restrict-system-includes %t \
2 // RUN:     -- -config="{CheckOptions: [{key: portability-restrict-system-includes.Includes, value: '-*,std*.h'}]}"
3
4 // Test glob functionality: disallow all headers except those that match
5 // pattern "std*.h".
6
7 #include <stddef.h>
8 #include <stdint.h>
9 #include <float.h>
10 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include float.h not allowed