Revision 764380

Go back to digest for 27th January 2008

Features in Development Tools

David Nolden committed changes in /trunk/KDE/kdevelop/languages/cpp:

Add support for building uses within parameters for function-like macros, suppurting any kind of recursion. Declaration-names are also mapped through macros now.

The only important thing is that the text actually expands to a use/declaration/....

This needed some modifications of the preprocessor translation-table stuff, I hope I didn't break anything.

Example:
DECLARE_FACTOR_BLA(FactoryName)

When this expands to a class-declaration, FactoryName will be highlighted as declaration, use-highlighting will work, and it will be possible to rename the class using refactoring some day.

Other examples are assertions etc., and even qt's foreach(...) thing should work in future without special tweaking(not tested yet).

File Changes

Modified 10 files
  • /trunk/KDE/kdevelop/languages/cpp
  •   /cppduchain/cppeditorintegrator.cpp
  •   /cppduchain/usebuilder.cpp
  •   /tests/test_cppcodecompletion.cpp
  •   /tests/test_cppcodecompletion.h
  •   /parser/rpp/pp-location.cpp
  •   /parser/rpp/pp-location.h
  •   /parser/rpp/pp-macro-expander.cpp
  •   /parser/rpp/pp-macro-expander.h
  •   /parser/rpp/pp-stream.cpp
  •   /parser/rpp/pp-stream.h
10 files changed in total