Each time you exit Emacs, any data cached by SemanticDB is saved in the directory .emacs.d/semanticdb/, located in your home directory. Within this directory, the cache data is written into a set of files according to a SemanticDB-specific filename convention. If the SemanticDB directory does not exist, Emacs first asks if you want to create it.
You can change the name of the SemanticDB directory by customizing the
The name of the directory where SemanticDB cache files are saved. If the value is
nil, SemanticDB saves its data into a single file, in the current directory, whose filename is given by
The name of a cache file in which to save SemanticDB, when
You can force SemanticDB to save the data from only certain files, or
suppress saving altogether, by customizing
List of valid paths for SemanticDB to cache. Each element should be a directory name (a string); then the parse data from any file in that directory is saved.
As a special exception, the value of this variable can be a list containing a single symbol:
project. The symbol
neverdisables saving anywhere;
alwaysenables saving everywhere; and
projectenables saving directory based on the variable
The default value is
The value of this variable is a list of predicates for indicating that a directory belongs to a project. This list is used when the value of
(project). If the list is empty, all paths are considered valid.
Project management packages, such as EDE (see Top), may add their own predicates with add-hook to this variable. This allows SemanticDB to save tag caches in directories controlled by them.