llvm/llvm-project

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

Open

#77 170 ouverte le 6 janv. 2024

Voir sur GitHub
 (7 commentaires) (0 réactions) (1 assigné)C++ (10 782 forks)batch import
filesystemgood first issuelibc++

Métriques du dépôt

Stars
 (26 378 stars)
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