Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions cel-c/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ cc_library(
deps = [
":assert",
":config",
"//cel-c/src:ckdint",
"//cel-c/src:malloc",
"//cel-c/internal:ckdint",
"//cel-c/internal:malloc",
"@protobuf//upb/mem",
],
)
Expand All @@ -67,7 +67,7 @@ cc_test(
deps = [
":alloc",
":config",
"//cel-c/src:align",
"//cel-c/internal:align",
"@googletest//:gtest_main",
],
)
Expand All @@ -85,8 +85,8 @@ cc_library(
":alloc",
":assert",
":config",
"//cel-c/src:align",
"//cel-c/src:ckdint",
"//cel-c/internal:align",
"//cel-c/internal:ckdint",
"@protobuf//upb/base",
"@protobuf//upb/mem",
],
Expand Down Expand Up @@ -184,8 +184,8 @@ cc_library(
":string_view",
":type",
":type_proto",
"//cel-c/src:malloc",
"//cel-c/src:setjmp",
"//cel-c/internal:malloc",
"//cel-c/internal:setjmp",
"@cel-spec//proto/cel/expr:checked_upb_proto",
"@cel-spec//proto/cel/expr:syntax_upb_proto",
"@protobuf//upb/mem",
Expand Down Expand Up @@ -240,8 +240,8 @@ cc_library(
":string_view",
":type",
":type_proto_v1alpha1",
"//cel-c/src:malloc",
"//cel-c/src:setjmp",
"//cel-c/internal:malloc",
"//cel-c/internal:setjmp",
"@googleapis//google/api/expr/v1alpha1:checked_upb_proto",
"@protobuf//upb/mem",
],
Expand Down Expand Up @@ -290,8 +290,8 @@ cc_library(
":config",
":status",
":string_view",
"//cel-c/src:deque",
"//cel-c/src:malloc",
"//cel-c/internal:deque",
"//cel-c/internal:malloc",
],
)

Expand Down Expand Up @@ -617,7 +617,7 @@ cc_library(
deps = [
":assert",
":config",
"//cel-c/src:ckdint",
"//cel-c/internal:ckdint",
],
)

Expand Down Expand Up @@ -956,10 +956,10 @@ cc_library(
deps = [
":assert",
":config",
"//cel-c/src:bit",
"//cel-c/src:config",
"//cel-c/src:uint128",
"//cel-c/src:unaligned",
"//cel-c/internal:bit",
"//cel-c/internal:config",
"//cel-c/internal:uint128",
"//cel-c/internal:unaligned",
"@protobuf//upb/base",
],
)
Expand Down Expand Up @@ -1049,7 +1049,7 @@ cc_library(
":type",
":value",
":well_known_types",
"//cel-c/src/runtime", # buildcleaner: keep
"//cel-c/internal/runtime", # buildcleaner: keep
"@protobuf//upb/reflection",
],
)
Expand Down Expand Up @@ -1184,8 +1184,8 @@ cc_library(
":error_space",
":status_code",
":string_view",
"//cel-c/src:array",
"//cel-c/src:string",
"//cel-c/internal:array",
"//cel-c/internal:string",
],
)

Expand Down Expand Up @@ -1363,7 +1363,7 @@ cc_library(
":config",
":cstring_view",
":hash",
"//cel-c/src:memory",
"//cel-c/internal:memory",
"@protobuf//upb/base",
],
)
Expand Down Expand Up @@ -1414,7 +1414,7 @@ cc_library(
":assert",
":config",
":duration",
"//cel-c/src:ckdint",
"//cel-c/internal:ckdint",
],
)

Expand Down Expand Up @@ -1663,7 +1663,7 @@ cc_library(
":timestamp",
":value_kind",
":well_known_types",
"//cel-c/src:value", # buildcleaner: keep
"//cel-c/internal:value", # buildcleaner: keep
"@protobuf//upb/message",
"@protobuf//upb/reflection",
],
Expand Down
4 changes: 2 additions & 2 deletions cel-c/alloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

#include "cel-c/assert.h"
#include "cel-c/config.h"
#include "cel-c/src/ckdint.h"
#include "cel-c/src/malloc.h"
#include "cel-c/internal/ckdint.h"
#include "cel-c/internal/malloc.h"
#include "upb/mem/alloc.h"

extern "C" CEL_NULLABLE(void*)
Expand Down
2 changes: 1 addition & 1 deletion cel-c/alloc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "cel-c/config.h"
#include "cel-c/src/align.h"
#include "cel-c/internal/align.h"

namespace {

Expand Down
4 changes: 2 additions & 2 deletions cel-c/arena.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

#include "cel-c/assert.h"
#include "cel-c/config.h"
#include "cel-c/src/align.h"
#include "cel-c/src/ckdint.h"
#include "cel-c/internal/align.h"
#include "cel-c/internal/ckdint.h"
#include "upb/base/string_view.h"
#include "upb/mem/arena.h"

Expand Down
4 changes: 2 additions & 2 deletions cel-c/ast_proto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include "cel-c/ast.h"
#include "cel-c/config.h"
#include "cel-c/constant_proto.h"
#include "cel-c/internal/malloc.h"
#include "cel-c/internal/setjmp.h"
#include "cel-c/operators.h"
#include "cel-c/ref.h"
#include "cel-c/ref_proto.h"
#include "cel-c/src/malloc.h"
#include "cel-c/src/setjmp.h"
#include "cel-c/status.h"
#include "cel-c/string_view.h"
#include "cel-c/type.h"
Expand Down
4 changes: 2 additions & 2 deletions cel-c/ast_proto_v1alpha1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include "cel-c/ast.h"
#include "cel-c/config.h"
#include "cel-c/constant_proto_v1alpha1.h"
#include "cel-c/internal/malloc.h"
#include "cel-c/internal/setjmp.h"
#include "cel-c/operators.h"
#include "cel-c/ref.h"
#include "cel-c/ref_proto_v1alpha1.h"
#include "cel-c/src/malloc.h"
#include "cel-c/src/setjmp.h"
#include "cel-c/status.h"
#include "cel-c/string_view.h"
#include "cel-c/type.h"
Expand Down
4 changes: 2 additions & 2 deletions cel-c/ast_traverse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include "cel-c/ast.h"
#include "cel-c/ast_visitor.h"
#include "cel-c/config.h"
#include "cel-c/src/deque.h"
#include "cel-c/src/malloc.h"
#include "cel-c/internal/deque.h"
#include "cel-c/internal/malloc.h"
#include "cel-c/status.h"
#include "cel-c/string_view.h"

Expand Down
2 changes: 1 addition & 1 deletion cel-c/duration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "cel-c/assert.h"
#include "cel-c/config.h"
#include "cel-c/src/ckdint.h"
#include "cel-c/internal/ckdint.h"

extern "C" bool cel_Duration_Normalize(int64_t* cel_nonnull sec,
int32_t* cel_nonnull nsec) {
Expand Down
8 changes: 4 additions & 4 deletions cel-c/hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include <stdint.h>

#include "cel-c/assert.h"
#include "cel-c/src/bit.h"
#include "cel-c/src/config.h"
#include "cel-c/src/uint128.h"
#include "cel-c/src/unaligned.h"
#include "cel-c/internal/bit.h"
#include "cel-c/internal/config.h"
#include "cel-c/internal/uint128.h"
#include "cel-c/internal/unaligned.h"

static CEL_NONNULL(const void*) const _cel_kHashSeed = &_cel_kHashSeed;

Expand Down
8 changes: 4 additions & 4 deletions cel-c/src/BUILD → cel-c/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,10 @@ cc_test(
"//cel-c:timestamp",
"//cel-c:trilean",
"//cel-c:value",
"//cel-c/src/runtime",
"//cel-c/src/testing:compiler",
"//cel-c/src/testing:def_pool",
"//cel-c/src/testing:parser",
"//cel-c/internal/runtime",
"//cel-c/internal/testing:compiler",
"//cel-c/internal/testing:def_pool",
"//cel-c/internal/testing:parser",
"@abseil-cpp//absl/cleanup",
"@abseil-cpp//absl/container:flat_hash_map",
"@abseil-cpp//absl/log:absl_check",
Expand Down
8 changes: 4 additions & 4 deletions cel-c/src/align.h → cel-c/internal/align.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// Internal header providing address alignment functions. Uses compiler
// intrinsics if available, otherwise falls back to a pure implementation.

#ifndef THIRD_PARTY_CEL_C_SRC_ALIGN_H_
#define THIRD_PARTY_CEL_C_SRC_ALIGN_H_
#ifndef THIRD_PARTY_CEL_C_INTERNAL_ALIGN_H_
#define THIRD_PARTY_CEL_C_INTERNAL_ALIGN_H_

#include <limits.h>
#include <stdbool.h> // IWYU pragma: keep
Expand All @@ -25,7 +25,7 @@

#include "cel-c/assert.h"
#include "cel-c/config.h"
#include "cel-c/src/bit.h"
#include "cel-c/internal/bit.h"

// NOLINTBEGIN(runtime/int)
// NOLINTBEGIN(google-runtime-int)
Expand Down Expand Up @@ -531,4 +531,4 @@ CEL_END_DECLS
// NOLINTEND(google-runtime-int)
// NOLINTEND(runtime/int)

#endif // THIRD_PARTY_CEL_C_SRC_ALIGN_H_
#endif // THIRD_PARTY_CEL_C_INTERNAL_ALIGN_H_
2 changes: 1 addition & 1 deletion cel-c/src/align_test.cc → cel-c/internal/align_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "cel-c/src/align.h"
#include "cel-c/internal/align.h"

#include <cstddef>

Expand Down
8 changes: 4 additions & 4 deletions cel-c/src/alloca.h → cel-c/internal/alloca.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_CEL_C_SRC_ALLOCA_H_
#define THIRD_PARTY_CEL_C_SRC_ALLOCA_H_
#ifndef THIRD_PARTY_CEL_C_INTERNAL_ALLOCA_H_
#define THIRD_PARTY_CEL_C_INTERNAL_ALLOCA_H_

#include "cel-c/src/config.h"
#include "cel-c/internal/config.h"

#ifdef _WIN32
#include <malloc.h>
Expand All @@ -28,4 +28,4 @@

#define _cel_alloca(size) alloca(size)

#endif // THIRD_PARTY_CEL_C_SRC_ALLOCA_H_
#endif // THIRD_PARTY_CEL_C_INTERNAL_ALLOCA_H_
2 changes: 1 addition & 1 deletion cel-c/src/any.cc → cel-c/internal/any.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "cel-c/src/any.h"
#include "cel-c/internal/any.h"

#include <stdbool.h>
#include <string.h>
Expand Down
6 changes: 3 additions & 3 deletions cel-c/src/any.h → cel-c/internal/any.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_CEL_C_SRC_ANY_H_
#define THIRD_PARTY_CEL_C_SRC_ANY_H_
#ifndef THIRD_PARTY_CEL_C_INTERNAL_ANY_H_
#define THIRD_PARTY_CEL_C_INTERNAL_ANY_H_

#include <stdbool.h>

Expand Down Expand Up @@ -68,4 +68,4 @@ _cel_AnyUnpackResult_ToMessage(_cel_AnyUnpackResult result);

CEL_END_DECLS

#endif // THIRD_PARTY_CEL_C_SRC_ANY_H_
#endif // THIRD_PARTY_CEL_C_INTERNAL_ANY_H_
2 changes: 1 addition & 1 deletion cel-c/src/any_test.cc → cel-c/internal/any_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "cel-c/src/any.h"
#include "cel-c/internal/any.h"

#include <string>

Expand Down
6 changes: 3 additions & 3 deletions cel-c/src/arc.h → cel-c/internal/arc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
// toolchains that occur when mixing `<atomic>` and `<stdatomic.h>`. Instead we
// use compiler intrinsics across the board.

#ifndef THIRD_PARTY_CEL_C_SRC_ARC_H_
#define THIRD_PARTY_CEL_C_SRC_ARC_H_
#ifndef THIRD_PARTY_CEL_C_INTERNAL_ARC_H_
#define THIRD_PARTY_CEL_C_INTERNAL_ARC_H_

#include <limits.h>
#include <stdbool.h> // IWYU pragma: keep
Expand Down Expand Up @@ -135,4 +135,4 @@ CEL_END_DECLS
// NOLINTEND(google-runtime-int)
// NOLINTEND(runtime/int)

#endif // THIRD_PARTY_CEL_C_SRC_ARC_H_
#endif // THIRD_PARTY_CEL_C_INTERNAL_ARC_H_
2 changes: 1 addition & 1 deletion cel-c/src/arc_test.cc → cel-c/internal/arc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "cel-c/src/arc.h"
#include "cel-c/internal/arc.h"

#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
8 changes: 4 additions & 4 deletions cel-c/src/arena_array.h → cel-c/internal/arena_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
// Internal header providing a dynamic array implementation which uses
// arena-based memory management.

#ifndef THIRD_PARTY_CEL_C_SRC_ARENA_ARRAY_H_
#define THIRD_PARTY_CEL_C_SRC_ARENA_ARRAY_H_
#ifndef THIRD_PARTY_CEL_C_INTERNAL_ARENA_ARRAY_H_
#define THIRD_PARTY_CEL_C_INTERNAL_ARENA_ARRAY_H_

#include <stdalign.h> // IWYU pragma: keep
#include <stdbool.h> // IWYU pragma: keep
#include <stddef.h>

#include "cel-c/arena.h"
#include "cel-c/config.h"
#include "cel-c/src/generic_array.h"
#include "cel-c/internal/generic_array.h"

CEL_BEGIN_DECLS

Expand Down Expand Up @@ -376,4 +376,4 @@ static CEL_INLINE CEL_NULLABLE(void*)

CEL_END_DECLS

#endif // THIRD_PARTY_CEL_C_SRC_ARENA_ARRAY_H_
#endif // THIRD_PARTY_CEL_C_INTERNAL_ARENA_ARRAY_H_
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "cel-c/src/arena_array.h"
#include "cel-c/internal/arena_array.h"

#include <cstddef>

Expand Down
Loading