qt5base-lts/util
Thiago Macieira 2fe90a61bd Mark all QChar static functions as [[gnu::const]]
The GCC documentation says that a const function is not allowed to read
global memory. This needs to be clarified: it's not allowed to read RW
global memory. It's fine to read read-only memory, as that is equivalent
to just pure code.

The QChar static out-of-line functions only lookup a property of the
given Unicode character and always return the same value.

The only exception is the decomposition() function, which returns a
QString and is therefore not allowed to be marked const.

Change-Id: Id36b2f84a1b8ff9db5acf1d4e59e8b3811068cff
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2014-07-07 03:51:43 +02:00
..
accessibilityinspector Remove empty QAccessible2 header 2013-11-20 15:11:24 +01:00
aglfn Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
corelib/qurl-generateTLDs QUrl effective TLDs: update table and split into chunks of 64K 2013-02-09 10:12:44 +01:00
glgen Doc: Link to external docs in QOpenGLFunctions_* classes 2013-09-09 10:40:37 +02:00
harfbuzz Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
integrity Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
lexgen Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
local_database Update the time zones database from CLDR v.24 2014-01-13 19:02:10 +01:00
plugintest Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
unicode Mark all QChar static functions as [[gnu::const]] 2014-07-07 03:51:43 +02:00
xkbdatagen Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00