Rename ptr.h to nonnull.h (#839)

This commit is contained in:
Jon Meow
2021-09-20 15:15:30 -07:00
committed by GitHub
parent 9edb2459fd
commit b1af08fed0
10 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ cc_library(
name = "arena",
hdrs = ["arena.h"],
deps = [
":ptr",
":nonnull",
],
)
@@ -31,8 +31,8 @@ cc_test(
)
cc_library(
name = "ptr",
hdrs = ["ptr.h"],
name = "nonnull",
hdrs = ["nonnull.h"],
deps = [
"//common:check",
"@llvm-project//llvm:Support",
+1 -1
View File
@@ -8,7 +8,7 @@
#include <memory>
#include <vector>
#include "executable_semantics/common/ptr.h"
#include "executable_semantics/common/nonnull.h"
namespace Carbon {
@@ -2,8 +2,8 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef EXECUTABLE_SEMANTICS_COMMON_PTR_H_
#define EXECUTABLE_SEMANTICS_COMMON_PTR_H_
#ifndef EXECUTABLE_SEMANTICS_COMMON_NONNULL_H_
#define EXECUTABLE_SEMANTICS_COMMON_NONNULL_H_
#include <type_traits>
@@ -19,4 +19,4 @@ using Nonnull = T _Nonnull;
} // namespace Carbon
#endif // EXECUTABLE_SEMANTICS_COMMON_PTR_H_
#endif // EXECUTABLE_SEMANTICS_COMMON_NONNULL_H_