| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_CAS_VALIDATIONRESULT_H |
| 10 | #define LLVM_CAS_VALIDATIONRESULT_H |
| 11 | |
| 12 | namespace llvm::cas { |
| 13 | |
| 14 | /// Represents the result of validating the contents, e.g. using |
| 15 | /// \c validateOnDiskUnifiedCASDatabasesIfNeeded, or of recovering from a |
| 16 | /// failed validation, e.g. using \c recoverOnDiskUnifiedCASDatabases. |
| 17 | /// |
| 18 | /// Note: invalid results are handled as an \c Error. |
| 19 | enum class ValidationResult { |
| 20 | /// The data is already valid. |
| 21 | Valid, |
| 22 | /// The data was invalid, but was recovered. |
| 23 | Recovered, |
| 24 | /// Validation or recovery was skipped, as it was not needed. |
| 25 | Skipped, |
| 26 | }; |
| 27 | |
| 28 | } // namespace llvm::cas |
| 29 | |
| 30 | #endif // LLVM_CAS_VALIDATIONRESULT_H |
| 31 | |