adding a function to test whether a char is a path separator

Hi Doug,

While refactoring clang::FileManager to use llvm::sys::path, I had a
need for a function to test whether a char is a path separator. I
think it would be generally useful. Would you be able to review it?
You can see Issue 4186045: add llvm::sys::path::is_separator(ch) to test whether ch is a path separator. - Code Review or the attachment.

Thanks,

is_separator.patch (2.42 KB)

Looks good to me!

  • Doug