[PATCH] D41102: Setup clang-doc frontend framework

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 19 23:47:50 PST 2018


lebedev.ri added inline comments.


================
Comment at: clang-doc/ClangDocBinary.cpp:72
+  assert(Abbrevs.find(recordID) == Abbrevs.end() &&
+         "Abbreviation already set.");
+  Abbrevs[recordID] = abbrevID;
----------------
juliehockett wrote:
> lebedev.ri wrote:
> > lebedev.ri wrote:
> > > So it does not *set* the abbreviation, since it is not supposed to be called if the abbreviation is already set, but it *adds* a unique abbreviation.
> > > I think it should be called `void AbbreviationMap::add(unsigned recordID, unsigned abbrevID)` then
> > This is marked as done, but the name is still the same, and no counter-comment was added, as far as i can see
> It was changed to AbbreviationMap::add from AbbreviationMap::set, as you suggested -- unless I missed something in your comment?
Oh right, sorry, i was thinking about some other code it seems.


https://reviews.llvm.org/D41102





More information about the cfe-commits mailing list