diff options
author | Michal Marek <mmarek@suse.com> | 2015-10-14 03:45:52 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-01-05 16:10:29 -0500 |
commit | d2fb5aeda926307e4d95e3e824146aee9943de59 (patch) | |
tree | 024300ab859297ae6d2adc1ff180a2141a1e4342 /scripts | |
parent | 4b63f603135022ca048524cd16f1c6a76a3f169d (diff) |
tags: Treat header files as C code
This allows to apply the same patters to both source and header files.
The effect is mostly visible in the case of DECLARE_BITMAP, but there
are small gains all over the place. There is also lots of random changes
in the diff, I believe this is simply because there are still lots of
unexpanded macros in the code and the C and C++ parsers fail and recover
at different points. Also, qconf.h is parsed as C, but that's a
negligible regression.
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index f69fa0c87312..25e30c30d1ad 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
@@ -165,42 +165,42 @@ exuberant() | |||
165 | -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \ | 165 | -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \ |
166 | -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ | 166 | -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ |
167 | -I static,const \ | 167 | -I static,const \ |
168 | --extra=+f --c-kinds=+px \ | 168 | --extra=+f --c-kinds=+px --langmap=c:+.h \ |
169 | --regex-asm='/^(ENTRY|_GLOBAL)\(([^)]*)\).*/\2/' \ | 169 | --regex-asm='/^(ENTRY|_GLOBAL)\(([^)]*)\).*/\2/' \ |
170 | --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ | 170 | --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ |
171 | --regex-c='/^COMPAT_SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/compat_sys_\1/' \ | 171 | --regex-c='/^COMPAT_SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/compat_sys_\1/' \ |
172 | --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ | 172 | --regex-c='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ |
173 | --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1_rcuidle/' \ | 173 | --regex-c='/^TRACE_EVENT\(([^,)]*).*/trace_\1_rcuidle/' \ |
174 | --regex-c++='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1/' \ | 174 | --regex-c='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1/' \ |
175 | --regex-c++='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1_rcuidle/' \ | 175 | --regex-c='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1_rcuidle/' \ |
176 | --regex-c++='/PAGEFLAG\(([^,)]*).*/Page\1/' \ | 176 | --regex-c='/PAGEFLAG\(([^,)]*).*/Page\1/' \ |
177 | --regex-c++='/PAGEFLAG\(([^,)]*).*/SetPage\1/' \ | 177 | --regex-c='/PAGEFLAG\(([^,)]*).*/SetPage\1/' \ |
178 | --regex-c++='/PAGEFLAG\(([^,)]*).*/ClearPage\1/' \ | 178 | --regex-c='/PAGEFLAG\(([^,)]*).*/ClearPage\1/' \ |
179 | --regex-c++='/TESTSETFLAG\(([^,)]*).*/TestSetPage\1/' \ | 179 | --regex-c='/TESTSETFLAG\(([^,)]*).*/TestSetPage\1/' \ |
180 | --regex-c++='/TESTPAGEFLAG\(([^,)]*).*/Page\1/' \ | 180 | --regex-c='/TESTPAGEFLAG\(([^,)]*).*/Page\1/' \ |
181 | --regex-c++='/SETPAGEFLAG\(([^,)]*).*/SetPage\1/' \ | 181 | --regex-c='/SETPAGEFLAG\(([^,)]*).*/SetPage\1/' \ |
182 | --regex-c++='/__SETPAGEFLAG\(([^,)]*).*/__SetPage\1/' \ | 182 | --regex-c='/__SETPAGEFLAG\(([^,)]*).*/__SetPage\1/' \ |
183 | --regex-c++='/TESTCLEARFLAG\(([^,)]*).*/TestClearPage\1/' \ | 183 | --regex-c='/TESTCLEARFLAG\(([^,)]*).*/TestClearPage\1/' \ |
184 | --regex-c++='/__TESTCLEARFLAG\(([^,)]*).*/TestClearPage\1/' \ | 184 | --regex-c='/__TESTCLEARFLAG\(([^,)]*).*/TestClearPage\1/' \ |
185 | --regex-c++='/CLEARPAGEFLAG\(([^,)]*).*/ClearPage\1/' \ | 185 | --regex-c='/CLEARPAGEFLAG\(([^,)]*).*/ClearPage\1/' \ |
186 | --regex-c++='/__CLEARPAGEFLAG\(([^,)]*).*/__ClearPage\1/' \ | 186 | --regex-c='/__CLEARPAGEFLAG\(([^,)]*).*/__ClearPage\1/' \ |
187 | --regex-c++='/__PAGEFLAG\(([^,)]*).*/__SetPage\1/' \ | 187 | --regex-c='/__PAGEFLAG\(([^,)]*).*/__SetPage\1/' \ |
188 | --regex-c++='/__PAGEFLAG\(([^,)]*).*/__ClearPage\1/' \ | 188 | --regex-c='/__PAGEFLAG\(([^,)]*).*/__ClearPage\1/' \ |
189 | --regex-c++='/PAGEFLAG_FALSE\(([^,)]*).*/Page\1/' \ | 189 | --regex-c='/PAGEFLAG_FALSE\(([^,)]*).*/Page\1/' \ |
190 | --regex-c++='/TESTSCFLAG\(([^,)]*).*/TestSetPage\1/' \ | 190 | --regex-c='/TESTSCFLAG\(([^,)]*).*/TestSetPage\1/' \ |
191 | --regex-c++='/TESTSCFLAG\(([^,)]*).*/TestClearPage\1/' \ | 191 | --regex-c='/TESTSCFLAG\(([^,)]*).*/TestClearPage\1/' \ |
192 | --regex-c++='/SETPAGEFLAG_NOOP\(([^,)]*).*/SetPage\1/' \ | 192 | --regex-c='/SETPAGEFLAG_NOOP\(([^,)]*).*/SetPage\1/' \ |
193 | --regex-c++='/CLEARPAGEFLAG_NOOP\(([^,)]*).*/ClearPage\1/' \ | 193 | --regex-c='/CLEARPAGEFLAG_NOOP\(([^,)]*).*/ClearPage\1/' \ |
194 | --regex-c++='/__CLEARPAGEFLAG_NOOP\(([^,)]*).*/__ClearPage\1/' \ | 194 | --regex-c='/__CLEARPAGEFLAG_NOOP\(([^,)]*).*/__ClearPage\1/' \ |
195 | --regex-c++='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \ | 195 | --regex-c='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \ |
196 | --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \ | 196 | --regex-c='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \ |
197 | --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' \ | 197 | --regex-c='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' \ |
198 | --regex-c++='/TASK_PFA_TEST\([^,]*,\s*([^)]*)\)/task_\1/' \ | 198 | --regex-c='/TASK_PFA_TEST\([^,]*,\s*([^)]*)\)/task_\1/' \ |
199 | --regex-c++='/TASK_PFA_SET\([^,]*,\s*([^)]*)\)/task_set_\1/' \ | 199 | --regex-c='/TASK_PFA_SET\([^,]*,\s*([^)]*)\)/task_set_\1/' \ |
200 | --regex-c++='/TASK_PFA_CLEAR\([^,]*,\s*([^)]*)\)/task_clear_\1/'\ | 200 | --regex-c='/TASK_PFA_CLEAR\([^,]*,\s*([^)]*)\)/task_clear_\1/'\ |
201 | --regex-c++='/DEF_MMIO_(IN|OUT)_(X|D)\(([^,]*),\s*[^)]*\)/\3/' \ | 201 | --regex-c='/DEF_MMIO_(IN|OUT)_(X|D)\(([^,]*),\s*[^)]*\)/\3/' \ |
202 | --regex-c++='/DEBUGGER_BOILERPLATE\(([^,]*)\)/\1/' \ | 202 | --regex-c='/DEBUGGER_BOILERPLATE\(([^,]*)\)/\1/' \ |
203 | --regex-c++='/DEF_PCI_AC_(NO)?RET\(([^,]*),.*/\2/' \ | 203 | --regex-c='/DEF_PCI_AC_(NO)?RET\(([^,]*),.*/\2/' \ |
204 | --regex-c='/PCI_OP_READ\((\w*).*[1-4]\)/pci_bus_read_config_\1/' \ | 204 | --regex-c='/PCI_OP_READ\((\w*).*[1-4]\)/pci_bus_read_config_\1/' \ |
205 | --regex-c='/PCI_OP_WRITE\((\w*).*[1-4]\)/pci_bus_write_config_\1/' \ | 205 | --regex-c='/PCI_OP_WRITE\((\w*).*[1-4]\)/pci_bus_write_config_\1/' \ |
206 | --regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/' \ | 206 | --regex-c='/DEFINE_(MUTEX|SEMAPHORE|SPINLOCK)\((\w*)/\2/v/' \ |