summaryrefslogtreecommitdiff
path: root/tests/key_field_test.h
diff options
context:
space:
mode:
authorWen Sun <30698014+sunwen18@users.noreply.github.com>2022-11-18 11:04:46 -0800
committerGitHub <noreply@github.com>2022-11-18 11:04:46 -0800
commiteb1abb51ea856a7b118c0d6a47624470caec0463 (patch)
tree602fae1ea08eb46947b040845c93fa8ad1cda5f8 /tests/key_field_test.h
parent1fa60910005556cf9f9f67d89412beb7e918fe57 (diff)
downloadflatbuffers-eb1abb51ea856a7b118c0d6a47624470caec0463.tar.gz
flatbuffers-eb1abb51ea856a7b118c0d6a47624470caec0463.tar.bz2
flatbuffers-eb1abb51ea856a7b118c0d6a47624470caec0463.zip
Add support for using array of scalar as key field in Cpp (#7623)
* add support for using array of scalar as key field * update cmakelist and test.cpp to include the tests * update bazel rule * address comments * clang format * delete comment * delete comment * address the rest of the commnets * address comments * update naming in test file * format build file * buildifier * make keycomparelessthan call keycomparewithvalue * update to use flatbuffer array instead of raw pointer * clang * format * revert format * revert format * update * run generate_code.py * run code generator * revert changes by generate_code.py * fist run make flatc and then run generate_code.py Co-authored-by: Wen Sun <sunwen@google.com>
Diffstat (limited to 'tests/key_field_test.h')
-rw-r--r--tests/key_field_test.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/key_field_test.h b/tests/key_field_test.h
new file mode 100644
index 00000000..4cc4ddcc
--- /dev/null
+++ b/tests/key_field_test.h
@@ -0,0 +1,12 @@
+#ifndef TESTS_KEY_FIELD_TEST_H
+#define TESTS_KEY_FIELD_TEST_H
+
+namespace flatbuffers {
+namespace tests {
+
+void FixedSizedScalarKeyInStructTest();
+
+} // namespace tests
+} // namespace flatbuffers
+
+#endif