diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-22 05:16:05 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:12:23 +0300 |
commit | 927e6efc3d93ff9d34c532180591dc3ca326edf5 (patch) | |
tree | adb579219d8bca90fac1512ae5d2379eb9313920 /src/clint.py | |
parent | ca4c8b7f8a7b9543ef01157cb5ab94783f624ac6 (diff) | |
download | rneovim-927e6efc3d93ff9d34c532180591dc3ca326edf5.tar.gz rneovim-927e6efc3d93ff9d34c532180591dc3ca326edf5.tar.bz2 rneovim-927e6efc3d93ff9d34c532180591dc3ca326edf5.zip |
clint: Allow omitting include guards in .c.h file and func_attr.h file
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clint.py b/src/clint.py index ce31822ada..ca4dbdb1bc 100755 --- a/src/clint.py +++ b/src/clint.py @@ -182,6 +182,7 @@ _ERROR_CATEGORIES = [ 'build/include_order', 'build/printf_format', 'build/storage_class', + 'build/useless_fattr', 'readability/alt_tokens', 'readability/bool', 'readability/braces', @@ -1224,6 +1225,10 @@ def CheckForHeaderGuard(filename, lines, error): lines: An array of strings, each representing a line of the file. error: The function to call with any errors found. """ + if filename.endswith('.c.h') or FileInfo(filename).RelativePath() in set(( + 'func_attr.h', + )): + return cppvar = GetHeaderGuardCPPVariable(filename) |