From 3413af0d748fd2adaaa9feeb072c5ba358796a17 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Fri, 9 Mar 2018 11:49:29 -0500 Subject: [PATCH] tools: fix indent.py to recognize all DEFUN types: DEFUN DEFUN_ATTR DEFUN_CMD_ELEMENT DEFUN_CMD_FUNC_DECL DEFUN_CMD_FUNC_TEXT DEFUN_DEPRECATED DEFUN_HIDDEN DEFUN_NOSH DEFUNSH DEFUNSH_ATTR DEFUNSH_DEPRECATED DEFUNSH_HIDDEN Signed-off-by: Lou Berger --- tools/indent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/indent.py b/tools/indent.py index 91bb23f67c..139049b670 100755 --- a/tools/indent.py +++ b/tools/indent.py @@ -6,7 +6,7 @@ import sys, re, subprocess, os # find all DEFUNs defun_re = re.compile( - r'^((DEF(UN(_NOSH|_HIDDEN)?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)', + r'^((DEF(UN(|_ATTR|_CMD_(ELEMENT|FUNC_(DECL|TEXT))|_DEPRECATED|_NOSH|_HIDDEN|SH(|_ATTR|_DEPRECATED|_HIDDEN))?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)', re.M | re.S) define_re = re.compile( r'((^#\s*define[^\n]+[^\\]\n)+)', -- 2.39.5