| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reviewed-by: Trust Me
|
|
|
|
|
| |
Reviewed-by: Trust Me
(cherry picked from commit ac5c099cc3c5b8c7eec7a49fdeb8a21037230350)
|
|
|
|
|
|
| |
this makes no real difference, as at this point the token is known to be
an opening brace which will be handled without side effects in the next
iteration, but this is a tad more efficient and simply cleaner.
|
|
|
|
|
|
|
|
| |
otherwise, if the next token to be fetched is a non-empty #define, it
would save the context before entering the namespace, and thus the
post-define context restore would just discard the namespace entry.
Task-number: QTBUG-12683
|
|
|
|
| |
Task-number: QTBUG-11426
|
|
|
|
|
| |
Merge-request: 2456
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
|
|
|
|
|
|
|
|
| |
otherwise, tr() calls without absolute qualification will not be
properly qualified inside the first function if it has no qualification,
either.
Task-number: QTBUG-11742 (not really)
|
| |
|
|
|
|
|
| |
Reviewed-by: Kent Hansen
Task-number: QTBUG-11818
|
| |
|
|
|
|
| |
Task-number: QTBUG-8044
|
|
|
|
|
| |
there is really no point in marking them "unfinished". later file
rewrites would reset the state anyway.
|
|
|
|
|
|
|
|
|
| |
do that by ignoring all equal signs and everything between and
including brackets. this makes static initializers look
effectively like function definitions, thus creating proper
context.
Task-number: QTBUG-9276
|
|
|
|
|
|
|
|
|
|
| |
qHash(QString) has only 28 bits, so we can use the upper bits
for flagging whether the hash is valid.
size effect:
LP32: align(4, 4 + 4 + 1) = 12 vs. align(4, 4 + 4) = 8
LP64: align(8, 8 + 8 + 1) = 24 vs. align(8, 8 + 8) = 16
P64: align(8, 8 + 4 + 1) = 16 vs. align(8, 8 + 4) = 16
|
|
|
|
|
| |
making the range discontiguous just makes the switch()
jump table bigger or not applicable at all.
|
|
|
|
| |
Task-number: QTBUG-8360
|
|\
| |
| |
| |
| | |
Conflicts:
tests/auto/linguist/lupdate/testlupdate.cpp
|
| |
| |
| |
| | |
Reviewed-by: Trust Me
|
|/
|
|
| |
Task-number: QTBUG-6072
|
|
|
|
|
| |
Task-number: QTBUG-4499
Task-number: QTBUG-5276
|
| |
|
|
|
|
| |
querying the actual codec before the file has been read is pointless
|
|
|
|
|
|
| |
this makes sense if one uses lupdate only for validation purposes, i.e.
to find out if the code uses only ids which are defined in some external
specification.
|
| |
|
|
|
|
|
|
|
|
| |
this has two effects:
- using-declarations which use forward-declared classes work without
collecting the forward declarations, as the resolution happens at a
place where the class definition must have been encountered already
- it should be a bit faster
|
|
|
|
|
|
| |
the optimization not to look for parent definitions if we already knew
that there would be none did not consider that we only know that the
leaf node is missing, not any intermediate nodes.
|
| |
|
| |
|
|
|
|
|
|
| |
there must be a space after the //: and similar comments, otherwise
harmless comments of the sort of //====== foo here ===== will be parsed
as message ids, etc.
|
|
|
|
| |
"A class with a reference member must have a user-defined constructor."
|
|
|
|
|
| |
this will save quite some hash lookups (even if in empty hashes)
and make the VisitRecorder bitmap smaller.
|
|
|
|
|
| |
drop the parse results of files which are unlikely to be included (i.e.,
which are not headers).
|
|
|
|
|
|
| |
which means that one can set an arbitrary context.
as a side effect, this caches the stringified context of
Q_OBJECT-derived classes.
|
|
|
|
|
|
| |
... by virtue of the Q_DECLARE_TR_FUNCTIONS macro.
so remove the artificial limitation to classes (which was mostly an
optimization anyway).
|
|
|
|
|
|
|
| |
do not import all data from included files into the current file (which
turned out to be extremely expensive for 3rdparty/webkit), but do
hierarchical lookups on demand. this makes the lookups as such much
slower, of course, but it still pays off.
|
| |
|
|
|
|
|
| |
they don't create useful namespaces and don't hold flags, so it is
pointless to clutter the namespace maps with them.
|
|
|
|
| |
no need for parameter "unresolved"
|
|
|
|
| |
needsTrFunctions was never set any more
|
|
|
|
|
| |
cuts away a few thousand instructions.
need to revisit this in case of making the parser a dynamic library.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
they are surprisingly expensive
|
| |
|
| |
|
| |
|
|
|
|
| |
Reviewed-by: Trust Me
|
|
|
|
| |
Reviewed-by: Trust Me
|