Details
- Reviewers
alexfh aaron.ballman NoQ dcoughlin - Commits
- rG88a16a07909b: [ASTMatchers] Introduce a matcher for matching any given Objective-C selector
rC328747: [ASTMatchers] Introduce a matcher for matching any given Objective-C selector
rL328747: [ASTMatchers] Introduce a matcher for matching any given Objective-C selector
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
2737 ↗ | (On Diff #139688) | I'd suggest to do the same as with hasAnyName: leave just the std::vector<llvm::StringRef> overload. WDYT? |
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
2737 ↗ | (On Diff #139688) | OK. |
Not yet. A few more comments.
lib/ASTMatchers/ASTMatchersInternal.cpp | ||
---|---|---|
327 ↗ | (On Diff #139856) | What's the point of this variable? Maybe just use its initializer directly? |
334 ↗ | (On Diff #139856) | const std::string & / const auto & ? |
335 ↗ | (On Diff #139856) | S == SelString? |
342 ↗ | (On Diff #139856) | What's the point of this variable? Maybe just use its initializer directly? |
416 ↗ | (On Diff #139856) | What was wrong with the partially qualified name here? |
lib/ASTMatchers/ASTMatchersInternal.cpp | ||
---|---|---|
327 ↗ | (On Diff #139856) | The principle of not having too many things magically happening in one line would be IMO violated if we write internal::Matcher<NamedDecl>(new internal::HasNameMatcher(vectorFromRefs(NameRefs))) |
416 ↗ | (On Diff #139856) | It does not work. |
LG
lib/ASTMatchers/ASTMatchersInternal.cpp | ||
---|---|---|
327 ↗ | (On Diff #139856) | I wouldn't consider any of this stuff magical, but I also won't object to retaining this variable. |