remove whitespace at end of line (#1245)

This commit is contained in:
Arvid Norberg 2016-10-22 11:47:24 -04:00 committed by GitHub
parent 31d34fec41
commit 6148984426
58 changed files with 473 additions and 472 deletions

View File

@ -123,7 +123,7 @@ script:
- cd ..
- 'if [ "$lint" == "1" ]; then
python ~/cpplint.py --extensions=cpp --headers=hpp --filter=-,+runtime/explicit --linelength=90 test/*.{cpp,hpp} src/*.cpp include/libtorrent/*.hpp include/libtorrent/kademlia/*.hpp src/kademlia/*.cpp include/libtorrent/aux_/*.hpp include/libtorrent/extensions/*.hpp simulation/*.{cpp,hpp} tools/*.{cpp,hpp} examples/*.{cpp,hpp};
python ~/cpplint.py --extensions=cpp --headers=hpp --filter=-,+runtime/explicit,+whitespace/end_of_line --linelength=90 test/*.{cpp,hpp} src/*.cpp include/libtorrent/*.hpp include/libtorrent/kademlia/*.hpp src/kademlia/*.cpp include/libtorrent/aux_/*.hpp include/libtorrent/extensions/*.hpp simulation/*.{cpp,hpp} tools/*.{cpp,hpp} examples/*.{cpp,hpp};
fi'
# if variant is not set, we do not want to build anything

View File

@ -80,8 +80,9 @@ for l in f:
mode = ''
continue
if l.startswith('// '):
description += l[3:]
if l.startswith('//'):
if l[2] == ' ': description += l[3:]
else: description += l[2:]
continue
l = l.strip()

View File

@ -81,7 +81,7 @@ names = []
types = []
for l in f:
description_line = l.lstrip().startswith('// ')
description_line = l.lstrip().startswith('//')
l = l.strip()