Feel free to comment - in the comment emails, make sure you select everything you want included in the context. Try selecting "old" and "new" code
Diff Detail
Event Timeline
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
600–602 | Let's see whether you like that better... |
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
131–134 | Me too. |
Lets see what a preface comment looks like in conjunction with an inline comment.
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
744–756 | And if I select all of the deleted, I should get the added too? Even on the old side? |
Suggested ASCII art form:
Lets see what a preface comment looks like in conjunction with an inline
comment.
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:744-756
@@ -743,15 +761,6 @@
BindableMatcher<T> makeDynCastAllOfComposite(
ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
- if (InnerMatchers.empty()) {
- Matcher<InnerT> InnerMatcher = makeMatcher(new TrueMatcher<InnerT>);
- return BindableMatcher<T>(new DynCastMatcher<T, InnerT>(InnerMatcher));
- }
- Matcher<InnerT> InnerMatcher = *InnerMatchers.back();
- for (int i = InnerMatchers.size() - 2; i >= 0; --i) {
- InnerMatcher = makeMatcher(
- new AllOfMatcher<InnerT, Matcher<InnerT>, Matcher<InnerT> >(
- *InnerMatchers[i], InnerMatcher));
- }
- return BindableMatcher<T>(new DynCastMatcher<T, InnerT>(InnerMatcher));
+ return BindableMatcher<T>(new DynCastMatcher<T, InnerT>(
+ makeAllOfComposite(InnerMatchers)));
}
What does it look like when replying inline?
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:600-602
@@ -599,5 +599,5 @@
class BindableMatcher : public Matcher<T> {
public:
- BindableMatcher(MatcherInterface<T> *Implementation)
+ explicit BindableMatcher(MatcherInterface<T> *Implementation)
: Matcher<T>(Implementation) {}
--------------------------------------------------------------------------
Replies are interesting!
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
744–752 | Better? |
include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
607 | Testing email stuff. |
More added, but commented on old...