summaryrefslogtreecommitdiff
path: root/test/style/filter.test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Check type of a convertible value when constructing legacy filterupstream/node-releaseAlexander Shalamov2019-08-161-0/+7
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-4/+4
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-3/+3
|
* [core] add test for comparing filter name to idKonstantin Käfer2018-08-141-0/+4
|
* Keep original input for filters using legacy syntax.Asheem Mamoowala2018-07-231-0/+55
|
* [core] fix crash when trying to parse legacy filtersKonstantin Käfer2018-06-291-0/+4
| | | | Legacy filters aren't part of the style specification, but you can generate them by parsing a legacy filter in a stylesheet, and obtaining the parsed Filter and serializing it.
* [core] Fix crash due to mixing legacy filters and expressions (#12065)Anand Thakker2018-06-061-0/+12
| | | | | | | | | | | | | | | | | | | * Fix crash due to mixing legacy filters and expressions In some cases, (invalid) nested filters that used a mix of legacy filter syntax and expression syntax caused a crash due to a failure to propagate parsing errors from deeper within the filter expression. These errors went undetected in part because these conversion functions returned unique_ptr<Expression> values (or vectors thereof), using {nullptr} to represent a parsing error, but the core expression classes expect unique_ptr<Expression> that are never null. This changes over to using expression::ParseResult (aka optional<unique_ptr<Expression>>), to represent conversion failure the same way we do in the rest of the expression system. * Fix clang 3.8 / gcc 4.9 issue
* [core] Convert "legacy" filters directly into expressions (#11610)Lucas Wojciechowski2018-05-101-2/+63
| | | Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
* Don't enforce ["zoom"] constraints for filters (#11672)Anand Thakker2018-04-121-2/+12
| | | | | | | | | | | | * Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
* [core] Add expression filter support (#11251)Lucas Wojciechowski2018-03-091-76/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * WIP * WIP * Remove Filter::operator()(const Feature&) * WIP * WIP * WIP * WIP * Hook up expression filter evaluator * Replace `shared_ptr` with &reference * Fill in implementation of `void operator()(const ExpressionFilter&)` * Fix failing tests * Switch back to a shared_ptr per chat with @anandthakker * Fix benchmark compilation * Shot in the dark to fix CI * Shot in the dark to fix CI (part 2) * Shot in the dark to fix CI (part 3) * In src/mbgl/style/conversion/filter.cpp, add a port of isExpressionFilter and use it to decide in Converter<Filter>::operator() whether to parse the incoming JSON as an ExpressionFilter or one of the legacy filter types * Remove bool Filter::operator()(const GeometryTileFeature&) const * Ensure the map zoom is passed into filtering operations wherever applicable * Add expression filter tests * Addressed PR feedback * Implement `NSPredicate *operator()(mbgl::style::ExpressionFilter filter)` * Fix formatting& nit
* [core] Use convertJSON instead of RapidJSON directlyJohn Firebaugh2017-10-161-7/+2
|
* [tidy] modernize-raw-string-literalBruno de Oliveira Abinader2017-05-121-4/+4
|
* [all] Replace Result<T> with optional<T> plus out Error parameterJohn Firebaugh2017-03-231-1/+4
|
* [core] Avoid unnecessary convert template instantiationsJohn Firebaugh2017-03-091-1/+1
|
* [build] upgrade to variant 1.1.4 and dependenciesKonstantin Käfer2016-11-281-3/+3
|
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-281-0/+125