[libcxx] r214454 - Change lit.cfg to allow whitespace before comments

Eric Fiselier eric at efcs.ca
Thu Jul 31 15:56:52 PDT 2014


Author: ericwf
Date: Thu Jul 31 17:56:52 2014
New Revision: 214454

URL: http://llvm.org/viewvc/llvm-project?rev=214454&view=rev
Log:
Change lit.cfg to allow whitespace before comments

Modified:
    libcxx/trunk/test/lit.cfg

Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=214454&r1=214453&r2=214454&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Thu Jul 31 17:56:52 2014
@@ -71,7 +71,7 @@ class LibcxxTestFormat(lit.formats.FileB
                 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





More information about the cfe-commits mailing list