fuchsia-restrict-system-includes.rst
1003 Bytes
fuchsia-restrict-system-includes
Checks for allowed system includes and suggests removal of any others.
It is important to note that running this check with fixes may break code, as the fix removes headers. Fixes are applied to source and header files, but not to system headers.
For example, given the allowed system includes 'a.h,b*':
#include <a.h>
#include <b.h>
#include <bar.h>
#include <c.h> // Warning, as c.h is not explicitly allowed
All system includes can be allowed with '*', and all can be disallowed with an empty string ('').