scripts: format-code: enable .clang-ignore file

Add an optional .clang-ignore file s.t. a repository can exclude files
by name or paths from clang-format.  Paths must start "./" per find's
manual and not end in slash.  Filenames must be simply the filename to
exclude.

For example:
./src/external
linux_header.h

This also supports comment lines starts with '#' and will skip over any
line that starts with whitespace.

Change-Id: I4129bc6e3003fc4a46f1dcc3ae38a0ab285c2dd8
Signed-off-by: Patrick Venture <venture@google.com>
1 file changed