summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorDavid L. Jones <dlj@google.com>2018-03-02 00:07:45 +0000
committerDavid L. Jones <dlj@google.com>2018-03-02 00:07:45 +0000
commit13d5a876585d96b3df3dda9c10a3417cc2b88cd7 (patch)
tree6ff9069b1c731125a0278bd0b3fa59bc5a717798 /lldb/packages/Python/lldbsuite
parentf2664d0663a9c7225058eb7ac3e9838d6b5775f8 (diff)
downloadbcm5719-llvm-13d5a876585d96b3df3dda9c10a3417cc2b88cd7.tar.gz
bcm5719-llvm-13d5a876585d96b3df3dda9c10a3417cc2b88cd7.zip
[NFC] Move CommentOpts checks to the call sites that depend on it. (Re-applying r326501.)
When parsing comments, for example, for -Wdocumentation, slightly different behaviour occurs when -fparse-all-comments is specified. However, these differences are subtle: 1. All comments are saved during parsing, regardless of whether they are doc comments or not. 2. "Maybe-doc" comments, like <, !, etc, are saved as such, instead of marking them as ordinary comments. The maybe-doc type of comment is never saved otherwise. (Warning on these is the impetus of -Wdocumentation.) 3. All comments are treated as doc comments in ASTContext, even if they are ordinary. This change moves the logic for checking CommentOptions.ParseAllComments closer to where it has an effect. The overall logic is unchanged, but checks of the ParseAllComments flag are now done where the effect will be clearer. Subscribers: cfe-commits llvm-svn: 326512
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud