Просмотр исходного кода

Tools: Add hint to resolve [u]int32_t formatting errors

Alexey Lapshin 3 лет назад
Родитель
Сommit
5fb109f2e8
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      tools/idf_py_actions/hints.yml

+ 4 - 0
tools/idf_py_actions/hints.yml

@@ -39,3 +39,7 @@
 -
     re: "The keyword signature for target_link_libraries has already been used"
     hint: "Projects using target_link_libraries with project_elf explicitly and custom CMake projects must specify PRIVATE, PUBLIC or INTERFACE arguments."
+
+-
+    re: "format '([^']+)' expects argument of type '((unsigned )?int|long)', but argument (\\w+) has type '([u]?int32_t)'( {aka '([^']+)'})?"
+    hint: "The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file)."