keith added inline comments.

================
Comment at: clang/test/lit.cfg.py:60
+if platform.system() == 'Windows':
+    root_sep = 'C:\\'
+else:
----------------
compnerd wrote:
> This isn't really a separator, this is the root itself.  I think that it 
> makes sense to name it accordingly.  Please do not hard code this to `C:\`.  
> There is no guarantee that the root is `C:\`.
Yea I didn't like the original naming here either, any suggestions? I avoid 
`path` in these because of the existing `pathsep`, maybe `fsroot` and `fssep`?

What are you suggesting in place of hardcoding `C:\`? I don't think we could 
detect what folks are using in the tests, so it does seem like it would be up 
for individual tests to do this however it makes sense. It appears that there 
are a few hundred uses of this in tests today, does that break in general if 
you're using another drive?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111457/new/

https://reviews.llvm.org/D111457

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to