57 |
;; format above can be changed to include a function to be called when the |
;; format above can be changed to include a function to be called when the |
58 |
;; current file matches the regexp: |
;; current file matches the regexp: |
59 |
;; |
;; |
60 |
;; '(("\\.cc$" cc-function) |
;; '(("\\.cc$" cc--function) |
61 |
;; ("\\.hh$" hh-function)) |
;; ("\\.hh$" hh-function)) |
62 |
;; |
;; |
63 |
;; These functions must return a list consisting of the possible names of the |
;; These functions must return a list consisting of the possible names of the |
239 |
:group 'ff) |
:group 'ff) |
240 |
|
|
241 |
(defcustom cc-other-file-alist |
(defcustom cc-other-file-alist |
242 |
'( |
'(("\\.cc\\'" (".hh" ".h")) |
243 |
("\\.cc$" (".hh" ".h")) |
("\\.hh\\'" (".cc" ".C")) |
|
("\\.hh$" (".cc" ".C")) |
|
244 |
|
|
245 |
("\\.c$" (".h")) |
("\\.c\\'" (".h")) |
246 |
("\\.h$" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) |
("\\.h\\'" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) |
247 |
|
|
248 |
("\\.C$" (".H" ".hh" ".h")) |
("\\.C\\'" (".H" ".hh" ".h")) |
249 |
("\\.H$" (".C" ".CC")) |
("\\.H\\'" (".C" ".CC")) |
250 |
|
|
251 |
("\\.CC$" (".HH" ".H" ".hh" ".h")) |
("\\.CC\\'" (".HH" ".H" ".hh" ".h")) |
252 |
("\\.HH$" (".CC")) |
("\\.HH\\'" (".CC")) |
253 |
|
|
254 |
("\\.cxx$" (".hh" ".h")) |
("\\.c\\+\\+\\'" (".h++" ".hh" ".h")) |
255 |
("\\.cpp$" (".hh" ".h")) |
("\\.h\\+\\+\\'" (".c++")) |
256 |
) |
|
257 |
|
("\\.cpp\\'" (".hpp" ".hh" ".h")) |
258 |
|
("\\.hpp\\'" (".cpp")) |
259 |
|
|
260 |
|
("\\.cxx\\'" (".hxx" ".hh" ".h")) |
261 |
|
("\\.hxx\\'" (".cxx"))) |
262 |
"*Alist of extensions to find given the current file's extension. |
"*Alist of extensions to find given the current file's extension. |
263 |
|
|
264 |
This list should contain the most used extensions before the others, |
This list should contain the most used extensions before the others, |