Merge remote-tracking branch 'upstream/dev' into integration

This commit is contained in:
J. Nick Koston
2026-02-19 09:17:46 -06:00

View File

@@ -301,7 +301,7 @@ def highlight(s):
],
)
def lint_no_defines(fname, match):
s = highlight(f"static const uint8_t {match.group(1)} = {match.group(2)};")
s = highlight(f"static constexpr uint8_t {match.group(1)} = {match.group(2)};")
return (
"#define macros for integer constants are not allowed, please use "
f"{s} style instead (replace uint8_t with the appropriate "