================
@@ -3490,11 +3504,12 @@ def from_source(
etc. e.g. ["-Wall", "-I/path/to/include"].
In-memory file content can be provided via unsaved_files. This is a
- list of 2-tuples. The first element is the filename (str or
+ list of 2-tuples. The first element is the filename (str, bytes or
PathLike). The second element defines the content. Content can be
- provided as str source code or as file objects (anything with a read()
- method). If a file object is being used, content will be read until EOF
- and the read cursor will not be reset to its original position.
+ provided as str or bytes source code, or as file objects (anything with
+ a read() method). If a file object is being used, content will be read
+ until EOF and the read cursor will not be reset to its original
+ position.
----------------
Endilll wrote:
After discussion offline, me and Jannick agreed that we should accept `bytes`
everywhere for paths, and that the only other place that needs `bytes`
treatment in annotations is `Type.get_offset`.
https://github.com/llvm/llvm-project/pull/180876
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits