Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with a few comments.
clang/include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
727 | Would it be a bit cleaner to make this a private function that's a friend of ASTChildrenNotSpelledInSourceScope to discourage users from thinking they should set this manually themselves? (The query side of things seems reasonable as a public interface though.) As a drive-by comment: we introduced some naming inconsistencies with capitalization and this continues the inconsistency. We should probably go back through and change the IsMatching* to be isMatching* to fit the usual naming conventions. |
clang/include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
727 | The query method is also just an implementation detail, so I made that private too. |
Would it be a bit cleaner to make this a private function that's a friend of ASTChildrenNotSpelledInSourceScope to discourage users from thinking they should set this manually themselves? (The query side of things seems reasonable as a public interface though.)
As a drive-by comment: we introduced some naming inconsistencies with capitalization and this continues the inconsistency. We should probably go back through and change the IsMatching* to be isMatching* to fit the usual naming conventions.