forked from qt-creator/qt-creator
Store the actual arguments of the macro expansions.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#define CPLUSPLUS_PP_CLIENT_H
|
||||
|
||||
#include <CPlusPlusForwardDeclarations.h>
|
||||
#include <QtGlobal>
|
||||
#include <QVector>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QByteArray;
|
||||
@@ -42,6 +42,23 @@ namespace CPlusPlus {
|
||||
|
||||
class Macro;
|
||||
|
||||
class CPLUSPLUS_EXPORT MacroArgumentReference
|
||||
{
|
||||
unsigned _position;
|
||||
unsigned _length;
|
||||
|
||||
public:
|
||||
MacroArgumentReference(unsigned position = 0, unsigned length = 0)
|
||||
: _position(position), _length(length)
|
||||
{ }
|
||||
|
||||
unsigned position() const
|
||||
{ return _position; }
|
||||
|
||||
unsigned length() const
|
||||
{ return _length; }
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT Client
|
||||
{
|
||||
Client(const Client &other);
|
||||
@@ -63,7 +80,9 @@ public:
|
||||
|
||||
virtual void startExpandingMacro(unsigned offset,
|
||||
const Macro ¯o,
|
||||
const QByteArray &originalTextt) = 0;
|
||||
const QByteArray &originalText,
|
||||
const QVector<MacroArgumentReference> &actuals
|
||||
= QVector<MacroArgumentReference>()) = 0;
|
||||
|
||||
virtual void stopExpandingMacro(unsigned offset,
|
||||
const Macro ¯o) = 0;
|
||||
|
||||
Reference in New Issue
Block a user