mirror of
https://github.com/esphome/esphome.git
synced 2026-10-11 05:44:15 +00:00
[core] Catch heap allocating helper calls with explicit template arguments (#20391)
This commit is contained in:
+2
-1
@@ -1065,7 +1065,8 @@ HEAP_ALLOCATING_HELPERS = {
|
||||
r"str_sprintf|"
|
||||
r"str_snprintf|"
|
||||
r"value_accuracy_to_string"
|
||||
r")\s*\(" + CPP_RE_EOL,
|
||||
# Explicit template arguments at any nesting depth, e.g. format_hex<std::array<uint8_t, 4>>(
|
||||
r")\s*(?:<[^;{}()\n]*>\s*)?\(" + CPP_RE_EOL,
|
||||
include=cpp_include,
|
||||
exclude=[
|
||||
# The definitions themselves
|
||||
|
||||
Reference in New Issue
Block a user