Change lit.cfg to allow whitespace before comments
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ab406107d
commit
d3d01eac01
@ -71,7 +71,7 @@ class LibcxxTestFormat(lit.formats.FileBasedTest):
|
|||||||
elif 'REQUIRES:' in ln:
|
elif 'REQUIRES:' in ln:
|
||||||
items = ln[ln.index('REQUIRES:') + 9:].split(',')
|
items = ln[ln.index('REQUIRES:') + 9:].split(',')
|
||||||
requires.extend([s.strip() for s in items])
|
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++
|
# Stop at the first non-empty line that is not a C++
|
||||||
# comment.
|
# comment.
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user