style: update non-type template args to kCamelCase
Updates most, if not all, deviations from our non-type template
arg style guide.
Change-Id: I275639a7c15e38e0db9d198a6802f9cd5bb9cf89
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/39661
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/pw_tokenizer/tokenize_test.cc b/pw_tokenizer/tokenize_test.cc
index 9849a54..393d8f7 100644
--- a/pw_tokenizer/tokenize_test.cc
+++ b/pw_tokenizer/tokenize_test.cc
@@ -29,17 +29,17 @@
namespace {
// Constructs an array with the hashed string followed by the provided bytes.
-template <uint8_t... data, size_t size>
+template <uint8_t... kData, size_t kSize>
constexpr auto ExpectedData(
- const char (&format)[size],
+ const char (&format)[kSize],
uint32_t token_mask = std::numeric_limits<uint32_t>::max()) {
const uint32_t value = Hash(format) & token_mask;
- return std::array<uint8_t, sizeof(uint32_t) + sizeof...(data)>{
+ return std::array<uint8_t, sizeof(uint32_t) + sizeof...(kData)>{
static_cast<uint8_t>(value & 0xff),
static_cast<uint8_t>(value >> 8 & 0xff),
static_cast<uint8_t>(value >> 16 & 0xff),
static_cast<uint8_t>(value >> 24 & 0xff),
- data...};
+ kData...};
}
TEST(TokenizeString, EmptyString_IsZero) {