llvm/llvm-project

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

オープン

#77,170 opened on 2024/01/06

 (7 件のコメント) (0 件のリアクション) (1 人の担当者)C++ (10,782 件のフォーク)batch import
filesystemgood first issuelibc++

Repository metrics

Stars
 (26,378 個のスター)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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.

コントリビューターガイド