llvm-project
1465fdc0 - [clang][ssaf] Refactor path validation into shared `FormatFile` utilities (#188847)

Commit
13 days ago
[clang][ssaf] Refactor path validation into shared `FormatFile` utilities (#188847) This patch introduces the following changes: - Renames `SummaryFile` to `FormatFile` to better reflect that the struct pairs a file path with its resolved `SerializationFormat`. - Consolidates duplicated input/output path validation logic from `SSAFLinker.cpp` and `SSAFFormat.cpp` into shared `FormatFile::fromInputPath()` and `FormatFile::fromOutputPath()` methods in `Tool/Utils.{h,cpp}` - Moves error message constants from the public header into the `.cpp` file and rewords them. - Removes per-tool local error messages and filesystem logic that are now handled centrally. - Updates all affected lit tests to match the new error message wording and adds a test for directory-as-input.
Author
Parents
Loading