Add IWYU pragmas for deprecated headers

PiperOrigin-RevId: 490020560
pull/13171/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent d22d6d71ed
commit 907d705e86
  1. 1
      upb/alloc.h
  2. 1
      upb/arena.h
  3. 1
      upb/array.h
  4. 1
      upb/decode.h
  5. 1
      upb/decode_fast.h
  6. 1
      upb/def.h
  7. 1
      upb/encode.h
  8. 1
      upb/json_decode.h
  9. 1
      upb/json_encode.h
  10. 1
      upb/map.h
  11. 1
      upb/mini_table.h
  12. 1
      upb/msg.h
  13. 1
      upb/msg_internal.h
  14. 1
      upb/reflection.h
  15. 1
      upb/status.h
  16. 1
      upb/string_view.h
  17. 1
      upb/text_encode.h
  18. 1
      upb/upb.h

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/mem/alloc.h instead // This header is deprecated, use upb/mem/alloc.h instead
// IWYU pragma: private, include "upb/mem/alloc.h"
#ifndef UPB_ALLOC_H_ #ifndef UPB_ALLOC_H_
#define UPB_ALLOC_H_ #define UPB_ALLOC_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/mem/arena.h instead // This header is deprecated, use upb/mem/arena.h instead
// IWYU pragma: private, include "upb/mem/arena.h"
#ifndef UPB_ARENA_H_ #ifndef UPB_ARENA_H_
#define UPB_ARENA_H_ #define UPB_ARENA_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/collections/array.h instead // This header is deprecated, use upb/collections/array.h instead
// IWYU pragma: private, include "upb/collections/array.h"
#ifndef UPB_ARRAY_H_ #ifndef UPB_ARRAY_H_
#define UPB_ARRAY_H_ #define UPB_ARRAY_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/wire/decode.h instead // This header is deprecated, use upb/wire/decode.h instead
// IWYU pragma: private, include "upb/wire/decode.h"
#ifndef UPB_DECODE_H_ #ifndef UPB_DECODE_H_
#define UPB_DECODE_H_ #define UPB_DECODE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/wire/decode_fast.h instead // This header is deprecated, use upb/wire/decode_fast.h instead
// IWYU pragma: private, include "upb/wire/decode_fast.h"
#ifndef UPB_DECODE_FAST_H_ #ifndef UPB_DECODE_FAST_H_
#define UPB_DECODE_FAST_H_ #define UPB_DECODE_FAST_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/reflection/def.h instead // This header is deprecated, use upb/reflection/def.h instead
// IWYU pragma: private, include "upb/reflection/def.h"
#ifndef UPB_DEF_H_ #ifndef UPB_DEF_H_
#define UPB_DEF_H_ #define UPB_DEF_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/wire/encode.h instead // This header is deprecated, use upb/wire/encode.h instead
// IWYU pragma: private, include "upb/wire/encode.h"
#ifndef UPB_ENCODE_H_ #ifndef UPB_ENCODE_H_
#define UPB_ENCODE_H_ #define UPB_ENCODE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/json/decode.h instead // This header is deprecated, use upb/json/decode.h instead
// IWYU pragma: private, include "upb/json/decode.h"
#ifndef UPB_JSONDECODE_H_ #ifndef UPB_JSONDECODE_H_
#define UPB_JSONDECODE_H_ #define UPB_JSONDECODE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/json/encode.h instead // This header is deprecated, use upb/json/encode.h instead
// IWYU pragma: private, include "upb/json/encode.h"
#ifndef UPB_JSONENCODE_H_ #ifndef UPB_JSONENCODE_H_
#define UPB_JSONENCODE_H_ #define UPB_JSONENCODE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/collections/map.h instead // This header is deprecated, use upb/collections/map.h instead
// IWYU pragma: private, include "upb/collections/map.h"
#ifndef UPB_MAP_H_ #ifndef UPB_MAP_H_
#define UPB_MAP_H_ #define UPB_MAP_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use the header(s) below instead. // This header is deprecated, use the header(s) below instead.
// IWYU pragma: private, include "upb/mini_table/decode.h"
#ifndef UPB_MINI_TABLE_H_ #ifndef UPB_MINI_TABLE_H_
#define UPB_MINI_TABLE_H_ #define UPB_MINI_TABLE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/message/message.h instead // This header is deprecated, use upb/message/message.h instead
// IWYU pragma: private, include "upb/message/message.h"
#ifndef UPB_MSG_H_ #ifndef UPB_MSG_H_
#define UPB_MSG_H_ #define UPB_MSG_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/message/internal.h instead // This header is deprecated, use upb/message/internal.h instead
// IWYU pragma: private, include "upb/message/internal.h"
#ifndef UPB_MSG_INT_H_ #ifndef UPB_MSG_INT_H_
#define UPB_MSG_INT_H_ #define UPB_MSG_INT_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/reflection/message.h instead // This header is deprecated, use upb/reflection/message.h instead
// IWYU pragma: private, include "upb/reflection/message.h"
#ifndef UPB_REFLECTION_H_ #ifndef UPB_REFLECTION_H_
#define UPB_REFLECTION_H_ #define UPB_REFLECTION_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/base/status.h instead // This header is deprecated, use upb/base/status.h instead
// IWYU pragma: private, include "upb/base/status.h"
#ifndef UPB_STATUS_H_ #ifndef UPB_STATUS_H_
#define UPB_STATUS_H_ #define UPB_STATUS_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/base/string_view.h instead // This header is deprecated, use upb/base/string_view.h instead
// IWYU pragma: private, include "upb/base/string_view.h"
#ifndef UPB_STRING_VIEW_H_ #ifndef UPB_STRING_VIEW_H_
#define UPB_STRING_VIEW_H_ #define UPB_STRING_VIEW_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use upb/text/encode.h instead // This header is deprecated, use upb/text/encode.h instead
// IWYU pragma: private, include "upb/text/encode.h"
#ifndef UPB_TEXTENCODE_H_ #ifndef UPB_TEXTENCODE_H_
#define UPB_TEXTENCODE_H_ #define UPB_TEXTENCODE_H_

@ -26,6 +26,7 @@
*/ */
// This header is deprecated, use the individual #includes below as needed. // This header is deprecated, use the individual #includes below as needed.
// IWYU pragma: private, include "upb/base/status.h"
#ifndef UPB_H_ #ifndef UPB_H_
#define UPB_H_ #define UPB_H_

Loading…
Cancel
Save