summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/pp-engine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Removed module names from #include directives.Erik Verbruggen2012-02-151-1/+1
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* add always defined macro Q_CREATOR_RUN to cpp parserBenito van der Zander2011-09-081-1/+2
| | | | | | | | | | Merge-request: 336 Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com> Change-Id: Iefd0c60bb3e78047e28dcff33cc62c15ed11f711 Reviewed-on: http://codereview.qt-project.org/4292 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
* C++: More flexibility for string representation of macrosLeandro Melo2011-09-061-5/+28
| | | | | | | | | | | | | | | It's now possible to get the macro definition with the actual line breaks used on the code. This is particularly useful for tooltips in order for them to look nice. The preprocessor is changed so the macro also stores the breaks positions. This doesn't seem to have any impact on performance. In my machine, for example, the total time for parsing Creator's source code is approx. 18100ms with or without the patch. Change-Id: Ic7487236315c3567d26496315accdb2adfea894a Reviewed-on: http://codereview.qt.nokia.com/4253 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
* C++ preprocessor: Fix multiline tokens in ifdef'ed out blocks.Christian Kamm2011-08-311-12/+40
| | | | | | | Change-Id: If6f9819565f891e861f9e111423d99caa7c0f7aa Reviewed-on: http://codereview.qt.nokia.com/3884 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* C++: Don't strip comments from preprocessed source code.Christian Kamm2011-08-251-2/+19
| | | | | | Change-Id: I3a4817d36b9c724abca504c42914a73f97ab34c7 Reviewed-on: http://codereview.qt.nokia.com/3480 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Fix more krazy warnings.Friedemann Kleint2011-04-191-1/+1
|
* Update license.hjk2011-04-131-14/+13
|
* s:// end of namespace :// namespace :g for consistencyhjk2011-02-041-1/+1
| | | | We use the latter style everywhere else to signify the end of a namespace block.
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* C++: Add parsing of Q_PRIVATE_PROPERTY.Christian Kamm2011-01-041-0/+2
| | | | Reviewed-by: Roberto Raggi
* C++: Fix bind of Q_INVOKABLE functions.Christian Kamm2011-01-041-0/+2
| | | | Reviewed-by: Roberto Raggi
* License headers.con2010-12-171-7/+11
|
* Highlight user defined types.Roberto Raggi2010-05-251-6/+3
|
* Get rid of unsigned/long suffixes before evaluating numbers.Roberto Raggi2010-04-291-2/+12
| | | | Task-number: QTCREATORBUG-1292
* Handle unary ~ operator.Roberto Raggi2010-04-271-0/+4
|
* Added parser support for Q_INTERFACES.Erik Verbruggen2010-03-171-0/+2
|
* Take the branch when evaluating #ifndef QT_NO_XXX and QT_NO_XXX has been ↵Roberto Raggi2010-03-121-5/+22
| | | | defined in a pro file.
* Long live the king!hjk2010-03-051-1/+1
|
* Fixed: Wrong usage highlighting if function's argument list contains comment.Roberto Raggi2010-03-031-1/+16
| | | | Task-number: QTCREATORBUG-577
* Fixed pre-processor handling for Q_PROPERTY, Q_ENUMS and Q_FLAGS.Erik Verbruggen2010-02-221-22/+21
|
* Removed Q_DECLARE_FLAGS parsing, leaving it to the CPP to expand it.Erik Verbruggen2010-02-081-2/+4
|
* Reworked parts of the QtPropertyDeclaration parsing and handling.Erik Verbruggen2010-02-071-6/+5
|
* Removed methods which always returned a constant (false).Erik Verbruggen2010-01-281-5/+1
|
* Changed binary expression parsing to use precedence parsing.Erik Verbruggen2010-01-281-200/+99
|
* Merge ichecker branch changes into the mainline. New project can be found ↵Wolfgang Beck2010-01-191-15/+21
| | | | under src/tools/ICheck
* Small inclusion fixes.Tobias Hunger2010-01-081-1/+0
| | | | | | | * Remove duplicate headers. * Move own headers to the top. Reviewed-by: Roberto Raggi
* Enhance data stored for macros and macro uses.Christian Kamm2009-12-211-0/+2
| | | | | | | | | | | In preparation for finding macro uses. * Macro: add offset and length * MacroUse: add line * Document: add convenience functions for finding a macro definition, use or undefined use at a given location. Reviewed-by: Erik Verbruggen
* Fixed line/column position of the tokens after multiline string literals.Roberto Raggi2009-12-171-0/+14
|
* Save/Restore the if-level.Roberto Raggi2009-12-091-0/+4
|
* Merge commit 'origin/1.3'mae2009-12-031-1/+1
|\ | | | | | | | | Conflicts: src/plugins/cppeditor/cppeditor.cpp
| * Compile fix for 42f849c4da2ecb9c32efcc19cee1e8e94e86bc10.Christian Kamm2009-12-031-1/+1
| | | | | | | | Reviewed-by: Roberto Raggi
* | Merge remote branch 'origin/1.3'con2009-12-031-0/+3
|\ \ | |/
| * Fixed line/column position after macro expansion.Roberto Raggi2009-12-031-0/+3
| | | | | | | | Task-Number: QTCREATORBUG-409
* | Inital support for Q_D/Q_Q declarations.Roberto Raggi2009-11-301-0/+4
|/
* Initialize the pp's engine _dot member.Roberto Raggi2009-10-211-0/+1
|
* Renamed Preprocessor::_true_testRoberto Raggi2009-10-211-9/+9
|
* Use bit vectors to store the preprocessor's state.Roberto Raggi2009-10-211-0/+2
|
* Store in the document's macroUsages only the top-level macro expansions.Roberto Raggi2009-10-151-9/+0
|
* Track more macro uses.Christian Kamm2009-09-251-10/+23
| | | | | | | | | | | | In particular macros that are only checked for definition or are expanded during the evaluation of an #if or #elif directive are now also added to the list available through Document::macroUses(). The names of undefined macros that are interesting (because they're used in an #ifdef or a defined(...)) are now available through Document::undefinedMacroUses(). Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Don't include whitespaces and comments at the end of macro definitions.Roberto Raggi2009-08-241-1/+1
|
* long live the kinghjk2009-08-141-1/+1
|
* Compile the C++ parser library with Sun CC 5.9.Thiago Macieira2009-08-031-11/+11
| | | | | | | | | | | | Things you mustn't do: 1) end an enum with a comma 2) #include <cxxxx> and not use std:: 3) use anonymous structures All three things are invalid C++. Anonymous structures inside anonymous unions are allowed by GCC, but that doesn't mean it's valid.
* Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL.Roberto Raggi2009-07-101-1/+1
|
* Don't expand object-like macro when preprocessing in fast-mode.Roberto Raggi2009-07-091-0/+11
|
* Disable macro expansion when preprocessing in fast-mode.Roberto Raggi2009-07-061-2/+17
|
* Made foreach a keyword when parsing with qtMocRunRoberto Raggi2009-07-031-0/+2
|
* Introduced ForeachStatementAST and the bits to parse foreach statements when ↵Roberto Raggi2009-07-031-0/+2
| | | | qtMocRun is enabled.