LLVM 24.0.0git
ValidationResult.h
Go to the documentation of this file.
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
12namespace 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.
19enum class ValidationResult {
20 /// The data is already valid.
22 /// The data was invalid, but was recovered.
24 /// Validation or recovery was skipped, as it was not needed.
26};
27
28} // namespace llvm::cas
29
30#endif // LLVM_CAS_VALIDATIONRESULT_H
ValidationResult
Represents the result of validating the contents, e.g.
@ Valid
The data is already valid.
@ Recovered
The data was invalid, but was recovered.
@ Skipped
Validation or recovery was skipped, as it was not needed.