How to exclude files and directories in Doxygen

Doxygen provides two configuration options to exclude certain files and directories from being indexed: EXCLUDE and EXCLUDE_PATTERNS. Note that these need to be specified in a format that is counter-intuitive to what is common among software tools.

  • EXCLUDE is used to specify files that need to be excluded. Both absolute and relative paths of files can be specified. Note that specifying directories or a file pattern to match multiple files will not work.
EXCLUDE = src/axle.cpp
  • EXCLUDE_PATTERNS can be used to exclude files that match file patterns that you provide. Note that providing absolute or relative directories does not work! For example, to exclude everything in src directory, I cannot specify src or src/*. Instead, I need to specify this:
  • For both these options, multiple inputs can be specified using two styles:
EXCLUDE_PATTERNS += */include/*

Tried with: Doxygen 1.8.6 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s