summaryrefslogtreecommitdiffstats
path: root/tools/linguist/lupdate/cpp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* don't break on unterminated C commentsOswald Buddenhagen2009-11-041-1/+1
|
* introduce delayed resolution of aliasesOswald Buddenhagen2009-11-041-16/+41
| | | | | | | | 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
* fix bogus "Class '<foo>' lacks Q_OBJECT macro"Oswald Buddenhagen2009-11-041-3/+3
| | | | | | 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.
* namespaces can have parents, tooOswald Buddenhagen2009-11-041-5/+10
|
* do not crashOswald Buddenhagen2009-10-291-5/+7
|
* make magic comment parsing stricterOswald Buddenhagen2009-10-281-9/+9
| | | | | | 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.
* fix solaris buildOswald Buddenhagen2009-09-291-1/+5
| | | | "A class with a reference member must have a user-defined constructor."
* detect and eliminate forwarding headersOswald Buddenhagen2009-09-231-7/+20
| | | | | this will save quite some hash lookups (even if in empty hashes) and make the VisitRecorder bitmap smaller.
* reduce peak memory consumptionOswald Buddenhagen2009-09-231-30/+70
| | | | | drop the parse results of files which are unlikely to be included (i.e., which are not headers).
* actually use the argument of Q_DECLARE_TR_FUNCTIONSOswald Buddenhagen2009-09-231-9/+59
| | | | | | which means that one can set an arbitrary context. as a side effect, this caches the stringified context of Q_OBJECT-derived classes.
* namespaces *can* have tr() functions, after allOswald Buddenhagen2009-09-231-11/+8
| | | | | | ... by virtue of the Q_DECLARE_TR_FUNCTIONS macro. so remove the artificial limitation to classes (which was mostly an optimization anyway).
* drastically improve lupdate's scalabilityOswald Buddenhagen2009-09-231-197/+280
| | | | | | | 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.
* optimize/clarify function context stringificationOswald Buddenhagen2009-09-231-5/+6
|
* do not record class forward declarationsOswald Buddenhagen2009-09-231-28/+27
| | | | | they don't create useful namespaces and don't hold flags, so it is pointless to clutter the namespace maps with them.
* remove more dead codeOswald Buddenhagen2009-09-231-2/+1
| | | | no need for parameter "unresolved"
* remove dead codeOswald Buddenhagen2009-09-231-13/+2
| | | | needsTrFunctions was never set any more
* move static objects out of function scopeOswald Buddenhagen2009-09-231-6/+6
| | | | | cuts away a few thousand instructions. need to revisit this in case of making the parser a dynamic library.
* use a source char pointer instead of a string + indexOswald Buddenhagen2009-09-231-13/+18
|
* take advantage of knowing that qstrings are zero-terminated internallyOswald Buddenhagen2009-09-231-6/+5
|
* no need to actually compute number values. only 0 is specialOswald Buddenhagen2009-09-231-37/+18
|
* when matching strings, skip also leading commentsOswald Buddenhagen2009-09-231-6/+8
|
* avoid isalpha() & isalnum()Oswald Buddenhagen2009-09-231-2/+3
| | | | they are surprisingly expensive
* cut down use of qstring::simplified()Oswald Buddenhagen2009-09-231-6/+10
|
* simplifyOswald Buddenhagen2009-09-231-4/+1
|
* missing & in foreachOswald Buddenhagen2009-09-231-1/+1
|
* Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | Reviewed-by: Trust Me
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13
| | | | Reviewed-by: Trust Me
* optimize getToken(), part 2: avoid QString::append()Oswald Buddenhagen2009-08-171-24/+66
|
* consolidate some variablesOswald Buddenhagen2009-08-171-70/+66
| | | | | only one of yyIdent, yyComment and yyString is used at a time, so use a common yyWord instead
* optimize getToken(), part 1Oswald Buddenhagen2009-08-171-29/+47
| | | | | compare with pre-initialized qstrings instead of qlatin1strings. that way the length is known in advance.
* optimize getChar()Oswald Buddenhagen2009-08-171-7/+9
| | | | work more with raw data instead of qstring functions
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* fix infinite loop when meeting improper trId()Oswald Buddenhagen2009-07-301-1/+3
|
* support for id-based translationsOswald Buddenhagen2009-07-061-1/+69
| | | | | | | | | | | unlike in an earlier attempt, ids are textual this time. the developer is able to provide a template for the string. when lupdate and lrelease are integrated into the build process, this makes it possible to avoid a round-trip to a dedicated string designer during the early development stage. Requirement-id: QT-435
* remove arbitrary string length limitsOswald Buddenhagen2009-07-061-11/+2
|
* add support for attaching meta data to translatable messagesOswald Buddenhagen2009-07-021-5/+30
| | | | Requirement: QT-457
* const ref for foreach()Oswald Buddenhagen2009-06-301-1/+1
|
* Update license headers in files that are new in 4.6.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* don't let comments weaved into strings confuse usOswald Buddenhagen2009-06-151-1/+3
| | | | | | | Task-number: 254260 cherry-picked 941a03814a5f8f7be93425f71ee65a4222d16899 after botched merge from 4.5
* Merge commit 'origin/4.5'Oswald Buddenhagen2009-06-081-5/+20
| | | | | | | | Conflicts: src/3rdparty/phonon/qt7/mediaobject.mm src/3rdparty/phonon/qt7/quicktimevideoplayer.mm src/gui/text/qfontengine_win.cpp tools/linguist/shared/cpp.cpp
* Fixed build issue with Sun CC 5.5.jasplin2009-06-051-1/+1
| | | | Reviewed-by: TrustMe
* don't lose codecForTr in c++ parserOswald Buddenhagen2009-04-021-1/+3
|
* Long live Qt!Lars Knoll2009-03-231-0/+1816