2 # Copyright (C) 2006 Libresoft
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Library General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 # Authors : Gregorio Robles <grex@gsyc.escet.urjc.es>
19 # Authors : Germán Póo-Caamaño <gpoo@gnome.org>
21 # This QEMU version is a cut-down version of what originally shipped
22 # in the gitdm sample-config directory.
24 # This file contains associations parameters regarding filetypes
25 # (documentation, development, multimedia, images...)
28 # filetype <type> <regex> [<comment>]
31 # The list should keep an order, so filetypes can be counted properly.
32 # ie. we want ltmain.sh -> 'build' instead of 'code'.
34 # If there is an filetype which is not in order but has values, it will
35 # be added at the end.
37 order build,interface,tests,code,documentation,devel-doc,blobs
41 # Code files (headers and the like included
42 # (most common languages first
44 filetype code \.c$ # C
45 filetype code \.c.inc$ # C
46 filetype code \.C$ # C++
47 filetype code \.cpp$ # C++
48 filetype code \.c\+\+$ # C++
49 filetype code \.cxx$ # C++
50 filetype code \.cc$ # C++
51 filetype code \.h$ # C or C++ header
52 filetype code \.hh$ # C++ header
53 filetype code \.hpp$ # C++ header
54 filetype code \.hxx$ # C++ header
55 filetype code \.sh$ # Shell
56 filetype code \.pl$ # Perl
57 filetype code \.py$ # Python
58 filetype code \.s$ # Assembly
59 filetype code \.S$ # Assembly
60 filetype code \.asm$ # Assembly
61 filetype code \.awk$ # awk
62 filetype code ^common$ # script fragments
63 filetype code ^common.*$ # script fragments
64 filetype code (qom|qmp)-\w+$ # python script fragments
69 filetype interface \.json$ # json
70 filetype interface \.hx$ # documented options
73 # Test related blobs (unfortunately we can't filter out test code)
76 filetype tests \d{2,3}$ # test data 00-999
77 filetype tests ^[A-Z]{4}$ # ACPI test data
78 filetype tests ^[A-Z]{4}\.*$ # ACPI test data
80 filetype tests \.out\.nocache$
82 filetype tests \.exit$ # bad-if-FOO.exit etc
83 filetype tests \.decode$
84 filetype tests \.yml$ # travis/shippable config
87 # Development documentation files (for hacking generally)
89 filetype devel-doc ^readme.*$
90 filetype devel-doc ^changelog.*
91 filetype devel-doc ^hacking.*$
92 filetype devel-doc ^licen(s|c)e.*$
93 filetype devel-doc ^copying.*$
94 filetype devel-doc ^MAINTAINERS$
95 filetype devel-doc ^BSD-2-Clause$
96 filetype devel-doc ^BSD-3-Clause$
97 filetype devel-doc ^GPL-2.0$
98 filetype devel-doc \.txt$
99 filetype devel-doc \.rst$
100 filetype devel-doc \.texi$
101 filetype devel-doc \.pod$
104 # Building, compiling, and configuration admin files
106 filetype build configure.*$
107 filetype build Makefile$
108 filetype build Makefile\.*$
109 filetype build config$
111 filetype build \.cfg$
113 filetype build \.mak$
114 filetype build \.docker$
115 filetype build \.pre$
116 filetype build ^.gitignore$
117 filetype build ^.gitmodules$
118 filetype build ^.gitpublish$
119 filetype build ^.mailmap$
120 filetype build ^.dir-locals.el$
121 filetype build ^.editorconfig$
122 filetype build ^.exrc$
123 filetype build ^.gdbinit$
124 filetype build \.cocci$ # Coccinelle semantic patches
129 filetype blobs \.bin$
130 filetype blobs \.dtb$
131 filetype blobs \.dts$
132 filetype blobs \.rom$
133 filetype blobs \.img$
134 filetype blobs \.ndrv$
135 filetype blobs \.bmp$
136 filetype blobs \.svg$
137 filetype blobs ^pi_10.com$
141 # Documentation files
143 filetype documentation \.html$
144 filetype documentation \.txt$
145 filetype documentation \.texi$
146 filetype documentation \.po$ # translation files