cemacscedet

Prevent CEDET semantic from parsing certain file types


I have to work with a C/C++ build environment that drops intermediate files all over the place:

CEDET (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.


Solution

  • 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))