X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=b99d2bfa2f181611717bbfe7afd84a967e07b7e7;hp=3332231e4dbbd013d1c13c92686c54058028d0cb;hb=a68f0fcb355db42acabe72da5939fbd1b04f6016;hpb=ded1ab3da117ac7170c1e57b1baebcfb3e0ef904 diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 3332231..b99d2bf 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -1,5 +1,5 @@ # This is an example INI file that can be used to set compiler options -# without the rquirement for supplying them as arguments on the command +# without the requirement for supplying them as arguments on the command # line, this can be coupled with progs.src. To utilize this file there # are two options availble, if it's named "gmqcc.ini" or "gmqcc.cfg" and # the file exists in the directory that GMQCC is invoked from, the compiler @@ -11,7 +11,7 @@ # These are common compiler flags usually represented via the -f prefix # from the command line. [flags] - # Enabling this can potentially reduces code size by overlapping + # Enabling this can potentially reduce code size by overlapping # locals where possible. OVERLAP_LOCALS = false @@ -99,6 +99,19 @@ # variables with the name 'nil' to be declared. PREMISSIVE = false + # Allow vararg access from within QC of the form: ...(argnumber, type) + VARIADIC_ARGS = true + + # Most Quake VMs, including the one from FTEQW or up till recently + # Darkplaces, do not cope well with vector instructions with overlapping + # input and output. This option will avoid producing such code. + LEGACY_VECTOR_MATHS = true + + # Builtin-numbers are usually just immediate constants. + # The following allows whole expressions to be used, as long as they + # are compile-time constant. + EXPRESSIONS_FOR_BUILTINS = false + # These are all the warnings, usually present via the -W prefix from # the command line. [warnings] @@ -125,7 +138,7 @@ MISSING_RETURN_VALUES = true # Enables warnings about missing parameters for function calls. - TOO_FEW_PARAMETERS = true + INVALID_PARAMETER_COUNT = true # Enables warnings about locals shadowing parameters or other locals. LOCAL_SHADOWS = true @@ -198,6 +211,22 @@ # Warn about non-constant global variables with no initializing value. UNINITIALIZED_GLOBAL = true + # Redeclaring a 'const' as 'var' or the other way round. + DIFFERENT_QUALIFIERS = true + + # Redeclaring a function with different attributes such as + # [[noreturn]] + DIFFERENT_ATTRIBUTES = true + + # Warn when a function is marked with the attribute + # "[[deprecated]]". This flag enables a warning on calls to functions + # marked as such. + DEPRECATED = true + + # Warn about possible problems from missing parenthesis, like an + # assignment used as truth value without additional parens around. + PARENTHESIS = true + # Finally these are all the optimizations, usually present via the -O # prefix from the command line. [optimizations] @@ -232,3 +261,7 @@ # Do not create a RETURN instruction at the end functions of return-type void. VOID_RETURN = true + + # Turn extraction-multiplications such as (a_vector * '0 1 0') + # into direct component accesses + VECTOR_COMPONENTS = true