-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable autobrief in doxygen #2359
Conversation
+@jwnimmer-tri platform.
|
|
+@liangfok feature. Sorry I did not see this PR being assigned to me until now. Still review it shortly.
|
Quick question in case someone knows and can respond before I actually test this on my local machine: What happens if the first sentence of a comment block spans multiple lines? Will
|
@liangfok: AUTOBRIEF doesn't pay attention to line breaks, it just looks for a period. So multiline briefs work fine, but multi-sentence ones (or sentences with abbreviations like
|
@sherm1: Thanks! I actually just verified your statement on my local machine. Thus, this PR .
|
Merging although build hasn't completed yet since this doesn't affect the build. |
Per discussion in issue #2051, this PR enables
JAVADOC_AUTOBRIEF
in the Drake Doxyfiles for C++ and Matlab.What this means is that the first sentence of every doxygen comment will automatically be used as though it were preceded by
@brief
and followed by a blank line. This provides a one-line brief for every class and method that has even a short doxygen comment.Doxygen considers a sentence to end at the first period -- use
\.
if you want a period included in the brief or want to have a multi-sentence brief. An explicit@brief
will be harmlessly ignored, but those can be removed as code is updated.Possible source of trouble: explicit
@brief
s that were previously multi-sentence will be reduced to just their first sentence if no\.
is used, although the rest of the brief will still appear in theMore...
section.Reviews, please:
Feature: @liangfok
Platform: @jwnimmer-tri
This change is Multiple assignees: jwnimmer-tri, liangfok