diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2018-12-11 12:49:16 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-12-12 14:58:28 +0300 |
commit | c8d89fb3c9997537ac6b89e878787c7052d8dc2c (patch) | |
tree | d158ff1258de24dfd8c2178b9f2ade04f065b7d0 /indexer | |
parent | ca77773e9303ef848be757a1c806ded75f2ab377 (diff) |
[generator] Fixed description section builder tests
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/ftypes_matcher.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 9774074d0f..a2209ed3ee 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -170,6 +170,17 @@ public: static std::set<std::pair<std::string, std::string>> const kTypesForWiki; DECLARE_CHECKER_INSTANCE(WikiChecker); + + template <typename Ft> + bool NeedFeature(Ft & feature) const + { + bool need = true; + feature.ForEachType([&](uint32_t type) { + if (need && !IsMatched(type)) + need = false; + }); + return need; + } }; class IsPlaceChecker : public BaseChecker |