[clang] [clang] NFC: Refactor UnsignedOrNone into SmallOptional<T> with enum support (PR #191828)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 08:49:21 PDT 2026


================
@@ -0,0 +1,79 @@
+//===- UnsignedOrNone.h - simple optional index-----*- 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
+//
+//===----------------------------------------------------------------------===//
+//
+/// \file
+/// Defines clang::UnsignedOrNone.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_BASIC_UNSIGNED_OR_NONE_H
+#define LLVM_CLANG_BASIC_UNSIGNED_OR_NONE_H
----------------
zyn0217 wrote:

ditto

https://github.com/llvm/llvm-project/pull/191828


More information about the cfe-commits mailing list