Commit Graph

61 Commits

Author SHA1 Message Date
Thorbjørn Lindeijer
a7cda431f0 Fixed crash in lookup context due to null-name
Return early in this case.

Reviewed-by: Roberto Raggi
2009-02-11 10:41:07 +01:00
Roberto Raggi
9539bb2b28 Less annoying syntax checker. 2009-02-10 23:33:40 +01:00
Thorbjørn Lindeijer
a33ae02927 Revert now unnecessary checks for null-types
This reverts commits:

c721304a47
885d908ea3
a0909989f7
fb4ad59ddb
0a9a67cf54
0d1624d4d1
d018cfd5cb
0504fdd00b
a2fd10fe19

Conflicts:

	src/plugins/cpptools/cppcodecompletion.cpp

Reviewed-by: Roberto Raggi
2009-02-10 17:41:04 +01:00
Roberto Raggi
a54fa5a546 Fixes: Compile. 2009-02-10 11:21:42 +01:00
Roberto Raggi
9d52a72534 Made it possible to compile libCPlusPlus without `gui'. 2009-02-10 10:48:19 +01:00
Roberto Raggi
a2fd10fe19 Fixes: Possible crash in OverviewModel. 2009-02-09 17:55:40 +01:00
Roberto Raggi
d01795d933 Reimplemented Type::as*Type() using virtual methods. 2009-02-09 17:49:12 +01:00
con
1dcabe5a3a Merge branch '1.0.0'
Conflicts:
	tests/auto/cplusplus/shared/shared.pri
	tests/auto/cplusplus/shared/shared.pro
2009-02-09 10:54:36 +01:00
Roberto Raggi
1f9bcd86e0 Added a simple auto test for the name lookup. 2009-02-09 10:21:29 +01:00
Thorbjørn Lindeijer
932845fc36 Don't use the name twice, though
We shouldn't append the name in cases where the text was not empty but
_name was.

Reviewed-by: Roberto
2009-02-06 14:50:58 +01:00
Thorbjørn Lindeijer
233502a795 Fixed tooltips for enumerators
The helpId was working but the tooltip text was empty.

Reviewed-by: Roberto
2009-02-06 14:43:13 +01:00
Roberto Raggi
4ffed7a119 Fixes: Parsing of #import directives. 2009-02-05 14:30:25 +01:00
Roberto Raggi
56b48c2362 Fixes: Enable ObjC support. 2009-02-05 14:30:24 +01:00
hjk
fe0533de2a Fixes: move all files in shared/* to src/shared/* 2009-01-26 16:19:24 +01:00
Roberto Raggi
a90545126f Fixes: Lookup of qualified name ids. 2009-01-24 23:07:42 +01:00
Roberto Raggi
44ed62c181 Fixes: Expand the #elif's condition. 2009-01-20 11:29:54 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00
Roberto Raggi
6966d91c7a ResolveType for compound literals. 2009-01-13 16:04:34 +01:00
Thorbjørn Lindeijer
34cc807b36 Fixed crash in function argument widget
It didn't make sure its Function* stayed valid. Now it does, by keeping
a copy of the list of CppDocuments (the snapshot) around.
2009-01-13 13:18:26 +01:00
Roberto Raggi
9f1e7205e8 Ensure we had a valid class symbol. 2009-01-13 10:30:48 +01:00
Roberto Raggi
a2cd5db6ce Improved the lookup of qualified name ids. 2009-01-13 10:17:13 +01:00
Roberto Raggi
599cdcfa06 More ObjC++ 2009-01-09 16:55:51 +01:00
Roberto Raggi
b2ff63145b Added objcEnabled()/setObjcEnabled() to SimpleLexer. 2009-01-08 12:56:07 +01:00
Roberto Raggi
f0ac751f4a Completion for typedef of pointer to struct. 2008-12-31 10:57:27 +01:00
Roberto Raggi
c7b023c0e1 Renamed SymbolsForDotAccess to ResolveClass. 2008-12-30 12:03:49 +01:00
Roberto Raggi
7c3d1a0158 Improved typedef support. 2008-12-30 11:54:42 +01:00
Roberto Raggi
f02549dafe Save/restore the black list so we can re-use instances of SymbolsForDotAccess. 2008-12-29 12:26:02 +01:00
Roberto Raggi
a985b59d40 Initial support for typedefs. 2008-12-29 11:53:40 +01:00
Roberto Raggi
0185a49a78 Removed LookupUtils. 2008-12-23 15:27:55 +01:00
Roberto Raggi
0422bcbbd5 Some more clean up in the preprocessor. 2008-12-22 14:10:47 +01:00
Roberto Raggi
e325aa38d9 Nicer implementation of CPlusPlus::Macro. 2008-12-22 13:55:42 +01:00
Roberto Raggi
1e0f06e4e8 Introduced expandNamespace(), expandClass(), expandBlock(), and expandFunction().
This should simplify the merging of the improved lookup context.
2008-12-22 13:27:01 +01:00
Roberto Raggi
753ddb7ce0 Some cleanup in the C++ preprocessor.
Introduced pp-scanner.cpp, renamed `pp' to `Preprocessor' and removed useless #includes.
2008-12-22 11:40:53 +01:00
Roberto Raggi
678c09c813 Made line and column unsigned ints. 2008-12-18 10:53:56 +01:00
Roberto Raggi
22f223e732 Added TypeOfExpression::preprocess(expression, document).
The method `preprocess' returns the preprocessed text for the given expression.
2008-12-18 10:53:55 +01:00
hjk
da3cb14483 chancge Nokia GPL exception version from 1.2 to 1.3 2008-12-16 17:20:00 +01:00
hjk
bc4f14e88c do not reference removed empty file 2008-12-16 17:12:10 +01:00
hjk
77c8f0cc48 remove unneeded empty file 2008-12-16 17:09:36 +01:00
Roberto Raggi
bab60d14b3 Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's current state.
This change removes a number of wrong usages of the CppModelManager::documents()/document().
2008-12-12 10:07:58 +01:00
Roberto Raggi
f149c17d17 Fixed possible crash when merging the evironments. 2008-12-11 14:44:52 +01:00
Roberto Raggi
4679f38a87 Fixed code completion when using macros in the expression's code (e.g. in qApp->). 2008-12-11 11:28:29 +01:00
Roberto Raggi
d454607264 Implemented tooltip and lookat for #include directives. 2008-12-10 17:21:28 +01:00
Roberto Raggi
fdfae53abb Don't use QTC_ASSERT in the C++ front-end library. The engine does not
recover from invalid asserts, so it will crash anyway, but not in
a controlled environment.
2008-12-10 15:44:26 +01:00
Roberto Raggi
9c9308b91b QByteArray::toLong() does not auto-detect the base and also fixed a typo in
the evaluator of bit-or expressions.
2008-12-10 10:47:26 +01:00
Roberto Raggi
9653f4b7e9 Fixed macro locations. 2008-12-09 16:20:21 +01:00
Roberto Raggi
b3f0f33b39 oops! fixed a typo 2008-12-09 15:42:48 +01:00
Roberto Raggi
20e36cc364 tooltip for macro definitions. 2008-12-09 15:24:26 +01:00
hjk
4a552ead9f use QTC_ASSERT instead of Q_ASSERT 2008-12-09 15:25:01 +01:00
con
be9dfc8c91 Fixes: - Show <No Symbols> or <Select Symbol> in 'empty' method combo box
Task:     - 234321
RevBy:    - Bjoern
2008-12-08 17:50:46 +01:00
Thorbjørn Lindeijer
bf7486c011 Don't keep around references to old documents
The code completion was keeping around references to old documents after
the completion finished. This caused documents to stay in memory when
unloading projects, up until the next time you used the completion.
2008-12-08 13:05:44 +01:00