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