aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-22 05:16:05 +0300
committerZyX <kp-pav@yandex.ru>2017-03-27 00:12:23 +0300
commit927e6efc3d93ff9d34c532180591dc3ca326edf5 (patch)
treeadb579219d8bca90fac1512ae5d2379eb9313920 /src/clint.py
parentca4c8b7f8a7b9543ef01157cb5ab94783f624ac6 (diff)
downloadrneovim-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-xsrc/clint.py5
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)