You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
501 B
12 lines
501 B
// RUN: %check_clang_tidy %s portability-restrict-system-includes %t \
|
|
// RUN: -- -config="{CheckOptions: [{key: portability-restrict-system-includes.Includes, value: '-*,std*.h'}]}" \
|
|
// RUN: -- -isystem %S/Inputs/portability-restrict-system-includes/system
|
|
|
|
// Test glob functionality: disallow all headers except those that match
|
|
// pattern "std*.h".
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <float.h>
|
|
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: system include float.h not allowed
|