Silence warnings about ui::WindowImpl's BOOL& parameters
This commit is contained in:
parent
cdbfff2fcf
commit
07de5ef462
1 changed files with 9 additions and 2 deletions
|
@ -13,6 +13,14 @@ IGNORED_FILES = [
|
||||||
'browser/mac/bry_inspectable_web_contents_view_private.h',
|
'browser/mac/bry_inspectable_web_contents_view_private.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
FILTERS = [
|
||||||
|
'-build/header_guard',
|
||||||
|
'-build/include_what_you_use',
|
||||||
|
'-legal/copyright',
|
||||||
|
# cpplint doesn't like the BOOL& parameters that ui::WindowImpl uses.
|
||||||
|
'-runtime/references',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
|
@ -32,8 +40,7 @@ def list_files(directories, filters):
|
||||||
|
|
||||||
|
|
||||||
def cpplint(files):
|
def cpplint(files):
|
||||||
rules = '--filter=-build/header_guard,-build/include_what_you_use,-legal/copyright'
|
return subprocess.call([sys.executable, CPPLINT, '--filter=' + ','.join(FILTERS)] + list(files))
|
||||||
return subprocess.call([sys.executable, CPPLINT, rules] + list(files))
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue