forked from OSchip/llvm-project
Change lit.cfg to allow whitespace before comments
llvm-svn: 214454
This commit is contained in:
parent
140f6029ce
commit
993dfb1eef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue