[PATCH] D48395: Added PublicOnly flag

2018-07-20 Thread Julie Hockett via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE337602: [clang-doc] Adding PublicOnly flag (authored by juliehockett, committed by ). Herald added a subscriber: arphaman. Changed prior to commit: https://reviews.llvm.org/D48395?vs=154470&id=156562#

[PATCH] D48395: Added PublicOnly flag

2018-07-16 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added inline comments. Comment at: clang-tools-extra/test/clang-doc/yaml-module.cpp:14 +// CHECK-A: --- +// CHECK-A-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9

[PATCH] D48395: Added PublicOnly flag

2018-07-16 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D48395#1158869, @juliehockett wrote: > Remember to mark comments as done when they are. Otherwise, LGTM unless > @ioeric has any concerns. No concern if this looks good to Julie. Comment at: clang-tools-extra/test/clang-do

[PATCH] D48395: Added PublicOnly flag

2018-07-11 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett accepted this revision. juliehockett added a comment. This revision is now accepted and ready to land. Remember to mark comments as done when they are. Otherwise, LGTM unless @ioeric has any concerns. https://reviews.llvm.org/D48395 __

[PATCH] D48395: Added PublicOnly flag

2018-07-06 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 154470. anniecherk added a comment. Updated according to Julie's suggestions, mostly adjusted formatting. https://reviews.llvm.org/D48395 Files: clang-tools-extra/clang-doc/ClangDoc.cpp clang-tools-extra/clang-doc/ClangDoc.h clang-tools-extra/clang

[PATCH] D48395: Added PublicOnly flag

2018-07-03 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added inline comments. Comment at: clang-tools-extra/clang-doc/Serialize.cpp:322-324 + if(PublicOnly && ! isPublic(D->getAccess(), D->getLinkageInternal())){ +return ""; + } anniecherk wrote: > juliehockett wrote: > > Since this is the same for

[PATCH] D48395: Added PublicOnly flag

2018-07-03 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk marked 11 inline comments as done. anniecherk added inline comments. Comment at: clang-tools-extra/clang-doc/Serialize.cpp:322-324 + if(PublicOnly && ! isPublic(D->getAccess(), D->getLinkageInternal())){ +return ""; + } juliehockett wrote: > Sinc

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. Please run clang-format and clang-tidy on the patch. Comment at: clang-tools-extra/clang-doc/ClangDoc.cpp:25 #include "clang/Frontend/FrontendActions.h" +#include "Representation.h" Sort includes (this should be at the top) ==

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 153825. anniecherk marked 4 inline comments as done. anniecherk added a comment. Addressed Julie's comments https://reviews.llvm.org/D48395 Files: clang-tools-extra/clang-doc/ClangDoc.cpp clang-tools-extra/clang-doc/ClangDoc.h clang-tools-extra/cla

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a reviewer: ioeric. juliehockett added inline comments. Comment at: clang-tools-extra/clang-doc/ClangDoc.h:27 +struct ClangDocContext { +tooling::ExecutionContext *ECtx; Can we put this in `Representation.h`? Here, you have a potential ci

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 153790. anniecherk added a comment. Updated the tests to more accurately check that the files that we expect to not be generated by clang-doc with the public flag are in fact not being created. The tests now run clang-doc over the test files with and with

[PATCH] D48395: Added PublicOnly flag

2018-06-29 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 153597. anniecherk added a comment. Herald added a subscriber: eraman. - addressed Julie's comments - updated logic to consider both access specifier & linkage - added tests for each type of linkage https://reviews.llvm.org/D48395 Files: clang-tools-ex

[PATCH] D48395: Added PublicOnly flag

2018-06-21 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. So on seeing this, all of the plumbing needed to get that particular value where you need it is a bit ugly. I'm inclined to suggest wrapping it in a `ClangDocContext`, containing it and the `ExecutionContext` in the `ClangDoc.h` file: struct ClangDocContext {

[PATCH] D48395: Added PublicOnly flag

2018-06-20 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. Can you re-upload the patch with context? (i.e. use -U99 or similar) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[PATCH] D48395: Added PublicOnly flag

2018-06-20 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk created this revision. anniecherk added reviewers: juliehockett, jakehehrlich, mcgrathr, phosek. Herald added a subscriber: cfe-commits. Added a flag which, when enabled, documents only those methods and fields which have a Public attribute. Repository: rCTE Clang Tools Extra http