upb: fix most of the ClangTidy warnings in util/required_fields.?

PiperOrigin-RevId: 567333328
pull/14162/head
Eric Salo 1 year ago committed by Copybara-Service
parent a36deef052
commit fc75bf3fdc
  1. 2
      upb/upb/util/BUILD
  2. 10
      upb/upb/util/required_fields.c
  3. 2
      upb/upb/util/required_fields.h

@ -97,7 +97,9 @@ cc_library(
hdrs = ["required_fields.h"],
visibility = ["//visibility:public"],
deps = [
"//upb:base",
"//upb:collections",
"//upb:message_types",
"//upb:port",
"//upb:reflection",
],

@ -30,11 +30,21 @@
#include "upb/upb/util/required_fields.h"
#include <assert.h>
#include <inttypes.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "upb/upb/base/descriptor_constants.h"
#include "upb/upb/collections/array.h"
#include "upb/upb/collections/map.h"
#include "upb/upb/message/types.h"
#include "upb/upb/port/vsnprintf_compat.h"
#include "upb/upb/reflection/def.h"
#include "upb/upb/reflection/message.h"
// Must be last.

@ -31,6 +31,8 @@
#ifndef UPB_UTIL_REQUIRED_FIELDS_H_
#define UPB_UTIL_REQUIRED_FIELDS_H_
#include <stddef.h>
#include "upb/upb/reflection/def.h"
#include "upb/upb/reflection/message.h"

Loading…
Cancel
Save