7 Commits

Author SHA1 Message Date
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Nyall Dawson
b5480633e4 Standardise names for static variables
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Nyall Dawson
54d093ed48 Function argument name should not be translatable 2016-04-04 13:59:22 +10:00
Nyall Dawson
ae00eb965c [FEATURE] Allow expression functions to use named parameters
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:

clamp(1,2,3)

you can use:

clamp( min:=1, value:=2, max:=3)

This also allows arguments to be switched, eg:

clamp( value:=2, max:=3, min:=1)

Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.

I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.

Sponsored by North Road
2016-04-04 13:59:13 +10:00
Nyall Dawson
2eb95f081f Fix more warnings when building under clang with -wEverything 2016-01-02 11:08:03 +11:00
Matthias Kuhn
dea8c9f6e8 [py3] Compat update process_function_template.py 2015-11-16 07:42:48 +01:00
Juergen E. Fischer
83fd65ab61 only update qgsexpression_texts.cpp if there are actual changes 2015-09-30 18:17:51 +02:00