llvm/llvm-project

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

Open

#77.170 aperta il 6 gen 2024

Vedi su GitHub
 (7 commenti) (0 reazioni) (1 assegnatario)C++ (10.782 fork)batch import
filesystemgood first issuelibc++

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor