Commit Graph

18 Commits

Author SHA1 Message Date
hjk
8397663964 Update license. 2011-04-13 11:49:28 +02:00
Oswald Buddenhagen
17740d2ec3 continue parsing line despite errors
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
2011-04-06 21:36:04 +02:00
Oswald Buddenhagen
d9e5f676ef reshuffle word counting in expressions
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.
2011-04-06 21:36:03 +02:00
Oswald Buddenhagen
c87eda573c remove useless initializations
reverts 6f5bf29e. coverity sucks, thankyouverymuch.
2011-04-06 21:36:03 +02:00
Oswald Buddenhagen
5433b43efd const-correctness 2011-04-06 21:36:03 +02:00
Oswald Buddenhagen
a3e578f318 add some comments 2011-03-16 12:24:37 +01:00
Oswald Buddenhagen
c0719b1ad6 remove obsolete comment 2011-03-16 12:24:37 +01:00
Oswald Buddenhagen
2d8967d039 fix line number after leading comment-only lines 2011-03-07 22:11:26 +01:00
Oswald Buddenhagen
e77c2f5a8b don't give up on parsing errors
instead of erroring out the parse, only error out the evaluation in
exact mode. that way we can do cumulative evaluation even on broken
files.

Task-number: QTCREATORBUG-3093
2011-02-10 14:56:15 +01:00
Oswald Buddenhagen
cef5754641 fix read beyond end of input line
a line ending in two backslashes would produce a literal backslash and
run off the end.

Task-number: QTCREATORBUG-3360
2011-01-18 15:12:18 +01:00
con
54f4fba003 It's 2011 now. 2011-01-12 15:34:06 +01:00
con
04e32b0049 License headers. 2010-12-17 16:03:42 +01:00
Oswald Buddenhagen
5f5d6c200d reinitialize block stack for new files
this has only an effect if parsing the previous file failed in a place
with a non-empty stack.
2010-09-16 13:42:05 +02:00
Oswald Buddenhagen
7322900692 make ProFileParser API less bug-prone
QString::isNull() vs. isEmpty() discrimination is a time bomb ...
2010-09-02 18:08:22 +02:00
Oswald Buddenhagen
f5e44fb7b6 parse braces on the RHS of assignments
this is less insane than (and thus incompatible to) qmake, but i
postulate that nobody will complain. :)
2010-06-24 19:19:21 +02:00
Oswald Buddenhagen
ec249304e6 work around msvc2010's apparent lack of appreciation for the meaning of "static" 2010-06-21 16:05:09 +02:00
Bill King
6f5bf29e71 Coverity: Fixes minor uninitialised constructor values issue. 2010-06-21 15:02:01 +10:00
Oswald Buddenhagen
058354ceab refactor ProFileEvaluator, part 2: split off ProFileParser 2010-06-18 21:21:36 +02:00