mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
clint: Allow omitting include guards in .c.h file and func_attr.h file
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user