llvm/llvm-project

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

開放

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

 (7 則留言) (0 個反應) (1 位負責人)C++ (10,782 個分叉)batch import
filesystemgood first issuelibc++

倉庫指標

星標
 (26,378 顆星)
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.

貢獻者指南