| 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 using |
| 15 | /// \c validateOnDiskUnifiedCASDatabasesIfNeeded. |
| 16 | /// |
| 17 | /// Note: invalid results are handled as an \c Error. |
| 18 | enum class ValidationResult { |
| 19 | /// The data is already valid. |
| 20 | Valid, |
| 21 | /// The data was invalid, but was recovered. |
| 22 | Recovered, |
| 23 | /// Validation was skipped, as it was not needed. |
| 24 | Skipped, |
| 25 | }; |
| 26 | |
| 27 | } // namespace llvm::cas |
| 28 | |
| 29 | #endif // LLVM_CAS_VALIDATIONRESULT_H |
| 30 | |