llvm/llvm-project

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

Aberta

#77.170 aberto em 6 de jan. de 2024

 (7 comentários) (0 reação) (1 responsável)C++ (10.782 forks)batch import
filesystemgood first issuelibc++

Métricas do repositório

Stars
 (26.378 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

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.

Guia do colaborador