I have to work with a C/C++ build environment that drops intermediate files all over the place:
.i
files containing the output of the C-preprocessor (roughly raw C).s
files containing the input of the C-assemblerCEDET (I assume the semantic analyzer) eventually finds these files and attempts to index them. This results in jumping to .i
files containing raw C for definitions and generally slowing down parsing and loading of the .semanticdb.
I never open these files in emacs, so they must be being loaded by the background analyser.
Is it possible to prevent the analyser from loading these files? I can't find any configuration options that define the file-types that are parsed by the background analyser.
If you never need C mode for these files, here's a quick fix:
(add-to-list 'auto-mode-alist '("\\.i\\'" . fundamental-mode))
(add-to-list 'auto-mode-alist '("\\.s\\'" . fundamental-mode))