// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #ifndef CARBON_EXPLORER_BASE_NONNULL_H_ #define CARBON_EXPLORER_BASE_NONNULL_H_ #include namespace Carbon { // A non-nullable pointer. Written as `Nonnull` instead of `T*`. // // Sanitizers enforce this dynamically on assignment, return, and when passing // as an argument. Static analysis will also track erroneous uses of `nullptr`. template >* = nullptr> using Nonnull = T _Nonnull; } // namespace Carbon #endif // CARBON_EXPLORER_BASE_NONNULL_H_