summaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h')
-rw-r--r--contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h b/contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h
index 33eb9f6ad12..73d9cadf930 100644
--- a/contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h
+++ b/contrib/libs/llvm12/include/llvm/Support/BinaryStreamError.h
@@ -1,58 +1,58 @@
-#pragma once
-
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-parameter"
-#endif
-
-//===- BinaryStreamError.h - Error extensions for Binary Streams *- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_SUPPORT_BINARYSTREAMERROR_H
-#define LLVM_SUPPORT_BINARYSTREAMERROR_H
-
-#include "llvm/ADT/StringRef.h"
-#include "llvm/Support/Error.h"
-
-#include <string>
-
-namespace llvm {
-enum class stream_error_code {
- unspecified,
- stream_too_short,
- invalid_array_size,
- invalid_offset,
- filesystem_error
-};
-
-/// Base class for errors originating when parsing raw PDB files
-class BinaryStreamError : public ErrorInfo<BinaryStreamError> {
-public:
- static char ID;
- explicit BinaryStreamError(stream_error_code C);
- explicit BinaryStreamError(StringRef Context);
- BinaryStreamError(stream_error_code C, StringRef Context);
-
- void log(raw_ostream &OS) const override;
- std::error_code convertToErrorCode() const override;
-
- StringRef getErrorMessage() const;
-
- stream_error_code getErrorCode() const { return Code; }
-
-private:
- std::string ErrMsg;
- stream_error_code Code;
-};
-} // namespace llvm
-
-#endif // LLVM_SUPPORT_BINARYSTREAMERROR_H
-
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+#pragma once
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
+
+//===- BinaryStreamError.h - Error extensions for Binary Streams *- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_SUPPORT_BINARYSTREAMERROR_H
+#define LLVM_SUPPORT_BINARYSTREAMERROR_H
+
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Error.h"
+
+#include <string>
+
+namespace llvm {
+enum class stream_error_code {
+ unspecified,
+ stream_too_short,
+ invalid_array_size,
+ invalid_offset,
+ filesystem_error
+};
+
+/// Base class for errors originating when parsing raw PDB files
+class BinaryStreamError : public ErrorInfo<BinaryStreamError> {
+public:
+ static char ID;
+ explicit BinaryStreamError(stream_error_code C);
+ explicit BinaryStreamError(StringRef Context);
+ BinaryStreamError(stream_error_code C, StringRef Context);
+
+ void log(raw_ostream &OS) const override;
+ std::error_code convertToErrorCode() const override;
+
+ StringRef getErrorMessage() const;
+
+ stream_error_code getErrorCode() const { return Code; }
+
+private:
+ std::string ErrMsg;
+ stream_error_code Code;
+};
+} // namespace llvm
+
+#endif // LLVM_SUPPORT_BINARYSTREAMERROR_H
+
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif