upb: delete upb/upb.h

PiperOrigin-RevId: 557659890
pull/13675/head^2
Eric Salo 1 year ago committed by Copybara-Service
parent 4c255351d4
commit 61967e84dd
  1. 2
      BUILD
  2. 1
      upb/message/accessors_test.cc
  3. 1
      upb/message/promote_test.cc
  4. 42
      upb/upb.h
  5. 2
      upb/util/BUILD
  6. 4
      upb/util/compare.c

@ -111,7 +111,6 @@ cc_library(
hdrs = [
"upb/message/internal/extension.h",
"upb/message/message.h",
"upb/upb.h",
"upb/upb.hpp",
],
copts = UPB_DEFAULT_COPTS,
@ -288,7 +287,6 @@ cc_library(
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
deps = [],
)
cc_test(

@ -47,7 +47,6 @@
#include "upb/mini_descriptor/internal/encode.hpp"
#include "upb/mini_descriptor/internal/modifiers.h"
#include "upb/test/test.upb.h"
#include "upb/upb.h"
#include "upb/wire/common.h"
#include "upb/wire/decode.h"

@ -48,7 +48,6 @@
#include "upb/mini_descriptor/internal/encode.hpp"
#include "upb/mini_descriptor/internal/modifiers.h"
#include "upb/test/test.upb.h"
#include "upb/upb.h"
#include "upb/upb.hpp"
#include "upb/wire/common.h"
#include "upb/wire/decode.h"

@ -1,42 +0,0 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google LLC nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This header is deprecated, use the individual #includes below as needed.
// IWYU pragma: private, include "upb/base/status.h"
#ifndef UPB_H_
#define UPB_H_
#include "upb/base/descriptor_constants.h"
#include "upb/base/status.h"
#include "upb/base/string_view.h"
#include "upb/mem/arena.h"
#endif /* UPB_H_ */

@ -140,9 +140,9 @@ cc_library(
hdrs = ["compare.h"],
visibility = ["//visibility:public"],
deps = [
"//:base",
"//:eps_copy_input_stream",
"//:port",
"//:upb",
"//:wire_reader",
"//:wire_types",
],

@ -32,7 +32,7 @@
#include <stdlib.h>
#include "upb/upb.h"
#include "upb/base/string_view.h"
#include "upb/wire/eps_copy_input_stream.h"
#include "upb/wire/reader.h"
#include "upb/wire/types.h"
@ -218,7 +218,7 @@ static upb_UnknownFields* upb_UnknownFields_Build(upb_UnknownField_Context* ctx,
return fields;
}
// Compares two sorted upb_UnknwonFields structures for equality.
// Compares two sorted upb_UnknownFields structures for equality.
static bool upb_UnknownFields_IsEqual(const upb_UnknownFields* uf1,
const upb_UnknownFields* uf2) {
if (uf1->size != uf2->size) return false;

Loading…
Cancel
Save