mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Rename ptr.h to nonnull.h (#839)
This commit is contained in:
@@ -37,7 +37,7 @@ cc_library(
|
||||
":pattern",
|
||||
":source_location",
|
||||
"//common:ostream",
|
||||
"//executable_semantics/common:ptr",
|
||||
"//executable_semantics/common:nonnull",
|
||||
"@llvm-project//llvm:Support",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "executable_semantics/ast/declaration.h"
|
||||
#include "executable_semantics/ast/library_name.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "executable_semantics/ast/member.h"
|
||||
#include "executable_semantics/ast/pattern.h"
|
||||
#include "executable_semantics/ast/source_location.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <string_view>
|
||||
|
||||
#include "common/ostream.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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_
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "common/ostream.h"
|
||||
#include "executable_semantics/ast/expression.h"
|
||||
#include "executable_semantics/ast/statement.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
#include "executable_semantics/interpreter/dictionary.h"
|
||||
#include "executable_semantics/interpreter/interpreter.h"
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "common/ostream.h"
|
||||
#include "executable_semantics/ast/function_definition.h"
|
||||
#include "executable_semantics/ast/statement.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
#include "executable_semantics/interpreter/address.h"
|
||||
#include "executable_semantics/interpreter/field_path.h"
|
||||
#include "executable_semantics/interpreter/stack.h"
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
#include "executable_semantics/ast/paren_contents.h"
|
||||
#include "executable_semantics/ast/pattern.h"
|
||||
#include "executable_semantics/common/arena.h"
|
||||
#include "executable_semantics/common/ptr.h"
|
||||
#include "executable_semantics/common/nonnull.h"
|
||||
|
||||
namespace Carbon {
|
||||
class ParseAndLexContext;
|
||||
|
||||
Reference in New Issue
Block a user