开发者

How can Doxygen exclude a C++ class?

开发者 https://www.devze.com 2022-12-09 14:57 出处:网络
I want to exclude a class from documentation in Doxygen. Usually these classes are in files named the same, but there are many times when they are included inside other class definitions. This is main

I want to exclude a class from documentation in Doxygen. Usually these classes are in files named the same, but there are many times when they are included inside other class definitions. This is mainly for classes starting with "_" or "Private".

How can I te开发者_开发知识库ll Doxygen to exclude a C++ class?

Thanks in advance.


You can use the \cond tag. Before the class definition, add:

\cond HIDDEN_SYMBOLS

and after the class definition add:

\endcond

Unless you define HIDDEN_SYMBOLS in your doxyfile, the contents between the \cond and \endcond tags will not be documented. You can replace HIDDEN_SYMBOLS with whatever you like.


EXCLUDE_SYMBOLS may be my answer.


Using Doxygen GUI you can find multiple exclude options under

"expert > input"

You may find specially useful:

  • Exclude symbols: Excludes everything containing a determined word regex like /word/
  • Exclude patterns: Excludes a determinated path regex like /folder/ or /some/file.cs/
0

精彩评论

暂无评论...
验证码 换一张
取 消