Erik Verbruggen
1ec0c1108e
Removed unused member.
2010-06-04 11:15:39 +02:00
Erik Verbruggen
708720605d
Suppress false positives generated by some code-checking tools.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
ea2054a945
Fixed uninitialized members.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
66a3bbe3f9
Fixed possible null-pointer deref.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
0877e56d97
Fixed possible unsigned overflow.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
eed0241d97
Fixed a couple of null-checks/-returns.
2010-06-04 11:15:38 +02:00
Erik Verbruggen
10ed2c536e
Fixed hidden parameters.
2010-06-04 11:15:38 +02:00
Roberto Raggi
2ede9773bb
Introduced token-based operations for QML/JS quick-fixes.
2010-06-04 11:02:33 +02:00
Leandro Melo
31748e7377
Generic highlighter: New option to specify ignored file patterns so the highlight popup does not show up.
2010-06-04 10:14:49 +02:00
Erik Verbruggen
c2393df023
Introduced a token cache for the C++ editor.
...
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
2010-06-04 09:36:05 +02:00
Erik Verbruggen
414d9fe3e0
Fixed possible null-pointer crash.
2010-06-03 17:06:18 +02:00
Roberto Raggi
53e775cbde
Return valid tokens for the Objc nodes.
2010-06-03 16:38:59 +02:00
Roberto Raggi
21073563a4
Introduced quickfix support for QML/JS files.
2010-06-03 15:52:50 +02:00
Roberto Raggi
bcf50a0a49
Generalized the quickfix collector.
2010-06-03 15:15:11 +02:00
Roberto Raggi
3d81ae8574
Reduced the usage of CppQuickFixOperation.
2010-06-03 14:45:55 +02:00
Roberto Raggi
a40349c09b
Reimplemented the C++ quick fix operations using TextEditor::QuickFixOperation.
2010-06-03 14:24:12 +02:00
Roberto Raggi
2bb081c495
Generalized QuickFixOperation.
2010-06-03 14:16:52 +02:00
hjk
3bff717f37
fakevim: use basetext indentation access instead of the cppeditor based one
2010-06-03 13:29:17 +02:00
hjk
f759fd6b65
basetexteditor: make a few functions public for use in fakevim
2010-06-03 13:29:17 +02:00
Leandro Melo
36c79d44e3
Generic highlighter: Fix to correct storage of block states when leading context sequences are nested with persistent contexts.
...
This situation is represented by case 5 of testPersistentContexts from the highlighter engine unit tests.
2010-06-03 12:29:10 +02:00
Leandro Melo
b97bfaa7f7
Generic highlighter: New unit tests for the highlighter engine.
2010-06-03 12:29:09 +02:00
Leandro Melo
823064d90a
Generic highlighter: Changed interface of the definition and adaptated relevant code.
2010-06-03 12:29:09 +02:00
Lasse Holmstedt
7ba6ad38ad
Added more debugging info to rewriterview
...
Reviewed-by: erikv
2010-06-03 11:40:36 +02:00
Robert Loehning
c9062b5e9f
Updated German translation after string fix
2010-06-02 22:03:20 +02:00
Robert Loehning
356648b7f4
Compile fix.
...
Reviewed-by: Oswald Buddenhagen
2010-06-02 21:51:27 +02:00
Robert Loehning
1e06c8bdeb
String fix
2010-06-02 20:09:48 +02:00
Roberto Raggi
99b2020cb3
Check the type of the token that triggered the completion.
2010-06-02 15:22:42 +02:00
Roberto Raggi
ffa66f4fb5
Fixed the global completion to include the injected class name and user types.
2010-06-02 13:59:01 +02:00
hjk
f579e266e1
Merge remote branch 'origin/2.0'
2010-06-02 11:23:19 +02:00
hjk
b67369393e
fakevim: synchronize with master
...
In theory this should have been a backport of the search-related commits
7e8c345a and 46fa3aa7 , but they are buried in the middle of the Big
Commandline Reorganization. Just taking everything has lower risk and
is faster.
2010-06-02 11:09:39 +02:00
Oswald Buddenhagen
033a148b43
optimize assignments: record number of literals
...
that way the result vector can be pre-allocated - which gives zero
resizes if no expansions are in the expression.
for the joined argument lists of built-in functions, pre-allocate a
fixed 5 elements, which covers all cases and more.
the argument lists of user-defined functions are not pre-allocated
yet.
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
a1fa00d2e7
precompile expressions
...
this gives a rather significant boost, in particular for
expressions which are evaluated repeatedly (includes).
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
932d77b6dd
qmake compat: delete empty elements when assigning values
...
some replace functions can return empty elements which should be
zapped here (according to qmake, anyway).
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
c982d275ed
factor out evaluateBoolFunction()
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
a8d53e0ae3
serialize AST into a single string
...
this saves quite some mallocs in the parsing pass.
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
dad37b23d8
maintain m_lineNo better during evaluation
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
b97b53d9bf
generalize ALWAYS_INLINE somewhat
2010-06-02 11:05:27 +02:00
Oswald Buddenhagen
0b0bbff094
move and rename ProItemReturn to VisitReturn
...
it's private to ProFileEvaluator::Private since the getting rid of
the visitor pattern.
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
5db91cf5bc
add custom string type
...
ProString is almost a QStringRef, except that it keeps a copy of instead
of a pointer to the QString - to make it refcountable. additionally, it
holds a hash so it can be efficiently used for repetetive hash lookups.
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
2fd83af82f
optimize assembly of arguments for built-in functions
...
this function class just joins each string list argument into a
single string. so instead of first building a list and joining it
right afterwards, create a single string in the first place.
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
25e6890c93
an empty argument list is still a list with one empty argument
...
that's actually kinda braindead, but that's qmake as usual.
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
d47b00fca8
implement $$size()
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
a98ce55e7b
simplify $$quote() implementation
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
95d5ad4ab3
unify parsing of boolean arguments
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
33c5befc7f
use QList::contains() instead of iterating
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
8df0fe8632
remove unused setters
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
6941898e9d
remove double include
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
83d3d0f58d
de-virtualize contains()
...
no point in it being virtual ...
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
a0cc2aec74
complain about unclosed scopes
2010-06-02 11:05:26 +02:00
Oswald Buddenhagen
c63453d878
reorganize AST
...
turn else, for(), defineTest() and defineReplace() into own node
types instead of treating them as magic conditionals/functions.
on top of that, introduce a proper branching node type, so finding
the alternative code paths can be moved into the parser instead of
burdening the evaluator with it.
2010-06-02 11:05:26 +02:00