llvm/llvm-project

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

Ouverte

#77 170 ouverte le 6 janv. 2024

 (7 commentaires) (0 réaction) (1 personne assignée)C++ (10 782 forks)batch import
filesystemgood first issuelibc++

Métriques du dépôt

Stars
 (26 378 étoiles)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

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.

Guide contributeur