- 17 May, 2013 2 commits
-
-
Oswald Buddenhagen authored
When writing a file with write_file() we have to inform the pro file parser cache to discard the file if it's existent in the cache, to ensure that calling include() after write_file() always works. Change-Id: I7d09269a57de55ca30b0e11dd40770de9f919f64 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from qtbase/f45d6414ad6ef1d75f049a61411cd954bcae29c3) Reviewed-by:
Daniel Teske <daniel.teske@digia.com>
-
Oswald Buddenhagen authored
this allows skipping an entire feature file if a condition is not fulfilled, without putting the whole body inside a conditional. Change-Id: I84fe9c94dda58c794fb52c3f163b40563b0db30a Reviewed-by:
Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from qtbase/525eb337670f61078383c20ad9be274dcf2d0928)
-
- 29 Jan, 2013 1 commit
-
-
Robert Loehning authored
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- 24 Jan, 2013 1 commit
-
-
hjk authored
Change-Id: I2845fdefb8b32de227f08017e0e3ad98923d1c87 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 08 Jan, 2013 1 commit
-
-
Orgad Shaneh authored
#!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by:
hjk <qthjk@ovi.com>
-
- 05 Oct, 2012 1 commit
-
-
hjk authored
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 12 Sep, 2012 2 commits
-
-
Oswald Buddenhagen authored
it's a pretty braindead thing to implement control flow statements as (built-in) functions. as a "side effect", this fixes return() value handling for lists. Change-Id: I59c8efa0e4d65329327115f7f8ed20719e7f7546 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
to reduce collateral damage from parse errors. Change-Id: Ic59700d657069d3b15372509b4bff966057d27a9 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 07 Sep, 2012 1 commit
-
-
Oswald Buddenhagen authored
this was forgotten when the value lists were extended by a size hint. Change-Id: I6f9b55ed671224a9b8735c8d937f94aac4a73a42 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 04 Sep, 2012 1 commit
-
-
Oswald Buddenhagen authored
Change-Id: I0ffa76e802c0cc00d1866e7fe09ae54a6f535a6f Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 03 Sep, 2012 5 commits
-
-
Oswald Buddenhagen authored
this is a reduced RHS grammar to be used with expandVariablesReferences() to implement the expansions in QMAKE_SUBSTITUTES. using the parser+evaluator for that is consistently up to 25% slower than a purely interpreted approach - except for plain strings (with some quoting), which happens to be exactly what is found in the template files to substitute. Change-Id: I219266460b970c6ddcb43cf85a914fbde6540271 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
for faster bootstrapping of qmake Change-Id: I602a023f4acbac276219bfc125863749ad96f754 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
Oswald Buddenhagen authored
Change-Id: Ic571837c56c725e332bf504c4b2dd2dde2ac32e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
"(eval)" does not exactly help to find the error source. Change-Id: Iecd03e6a4909ca6d7eab846844ca4415ebfa3429 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
Oswald Buddenhagen authored
... like qmake does Change-Id: I0724d1981278d0e7c4d7b4d4cfa435adaf3622ee Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 01 Aug, 2012 6 commits
-
-
Oswald Buddenhagen authored
we don't really use the current character at this point, so don't fake it and use the cur pointer as a flag. Change-Id: I0dd31ff07fafe0748b88b3a573d25b689f0c3748 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
the performance is about the same (depending on the expression type it's better or worse), but a lot of code just disappears. Change-Id: I60eb9b87f23cc811d3f9577841c38966ecfd8e43 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
everything which is not stored in the parser cache is assumed to be disposed of rather soon anyway. this increases peak memory usage per evaluator by a few kilobytes (something in the order of five times the file size). as only manual spec parsing and eval() statemenents in projects use non-cached parsers, the impact is pretty much insignificant. Change-Id: I326f312f4dd98b30b692d219de7ae092b6ad3584 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
Change-Id: I7b16d13b0f94d0a2e4b4743a40dad9bd8b8b9698 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
Change-Id: Ia5dd0c408ace4e779da898ffb60e9ca12a383225 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
instead of having a bazillion different callbacks, have only one with a type parameter. the drain typically multiplexes all into one stream anyway. Change-Id: I963daefc5a266c91334a4cc599570ed26b603d5d Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 19 Jul, 2012 1 commit
-
-
Eike Ziller authored
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 13 Jul, 2012 1 commit
-
-
Oswald Buddenhagen authored
Change-Id: If6be3a280e0509541df0354f41a3ed1dad100239 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 09 Jul, 2012 2 commits
-
-
Oswald Buddenhagen authored
this is clearer and not necessarily more code. Change-Id: Ic698a8076658ae986d0dbdeebb1f4760dd806e35 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
Change-Id: I3c25642b885171a47e8fd27e39e5d470d9f24db3 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 04 Jul, 2012 4 commits
-
-
Oswald Buddenhagen authored
with the removal of the skip jump label some time ago, this condition became insatisfiable. Change-Id: I4fc52ca8a38e048fd37c2ae6bfaae69acf09ada0 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
in the context of possibly using the same parse result for multiple build configurations, resolving env variables already during parsing would be just wrong. Change-Id: I49367b5eff5868a38c026b8bd74148e0b359fffb Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
Oswald Buddenhagen authored
they are "compiler defines", with no dependency on the evaluation context. Change-Id: I25bf006347ecd2edb501a344820e2ac11ff389e9 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
Oswald Buddenhagen authored
more natural name Change-Id: I38d2a2fc785686aa5777afe41452b53f2c24adf8 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 12 Apr, 2012 1 commit
-
-
Oswald Buddenhagen authored
this permits referencing qt 5 FOO/raw properties Change-Id: Ib6c65b9975eb74466dbf38d0b932caac9b392b7a Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@nokia.com>
-
- 15 Feb, 2012 1 commit
-
-
Erik Verbruggen authored
Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- 26 Jan, 2012 1 commit
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 03 Nov, 2011 1 commit
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- 21 Oct, 2011 1 commit
-
-
Robert Loehning authored
Change-Id: I1368cb534284016479211160cd8bf3cbc2f738e4 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 30 May, 2011 1 commit
-
-
Oswald Buddenhagen authored
now we uniformly increment the read pointer only if we encountered a terminator (which also implies that we were not at non-eol yet). Task-number: QTCREATORBUG-5022 Change-Id: If4a4e7aec7423684297393fa10e50a69773b2048 Reviewed-on: http://codereview.qt.nokia.com/222 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 06 May, 2011 1 commit
-
-
Tobias Hunger authored
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
-
- 13 Apr, 2011 1 commit
-
-
hjk authored
-
- 06 Apr, 2011 3 commits
-
-
Oswald Buddenhagen authored
as far as possible, anyway. and suppress messages after the first one. this avoids that scope nesting gets thrown off and thus spurious followup-errors crop up. as a "side effect", this fixes a crash resulting from us rewinding the token stream but ignoring the block stack on the way. Task-number: QTCREATORBUG-4368
-
Oswald Buddenhagen authored
this makes the value list sizehints more correct: instead of the number of literals and expansions, it's now the number of actual words, and that only if the expression starts with a literal (otherwise the pre-allocation is discarded anyway). the performance impact seems negligible, with qt being a tad slower and creator a tad faster. as a side effect, complaining about excess words in a test expression does not immediately terminate the current line's parsing.
-
Oswald Buddenhagen authored
reverts 6f5bf29e. coverity sucks, thankyouverymuch.
-