Change lit.cfg to allow whitespace before comments

llvm-svn: 214454
This commit is contained in:
Eric Fiselier 2014-07-31 22:56:52 +00:00
parent 140f6029ce
commit 993dfb1eef
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class LibcxxTestFormat(lit.formats.FileBasedTest):
elif 'REQUIRES:' in ln:
items = ln[ln.index('REQUIRES:') + 9:].split(',')
requires.extend([s.strip() for s in items])
elif not ln.startswith("//") and ln.strip():
elif not ln.strip().startswith("//") and ln.strip():
# Stop at the first non-empty line that is not a C++
# comment.
break