llvm/llvm-project

`std::filesystem::canonical("")` should throw

Open

#77,170 建立於 2024年1月6日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)C++ (10,782 fork)batch import
filesystemgood first issuelibc++

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

Per fs.op.canonical, !exists(p) is an error. However, calling canonical("") returns the current path instead of raising an exception.

Tested with Apple clang version 15.0.0 (clang-1500.1.0.2.5) and -std=c++17.

貢獻者指南