[libc-commits] [libc] feat(filemode): implement class and helper functions to handle file modes for an opened file (PR #220906)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Sep 11 12:53:00 PDT 2026
================
@@ -132,6 +142,10 @@ class FileMode {
Mode file_mode_;
};
+inline constexpr FileMode FileMode::APPEND_MODE("a");
+inline constexpr FileMode FileMode::READ_MODE("r");
+inline constexpr FileMode FileMode::WRITE_MODE("w");
----------------
michaelrj-google wrote:
instead of just `inline` you should use `LIBC_INLINE_VAR` for these.
https://github.com/llvm/llvm-project/pull/220906
More information about the libc-commits
mailing list