forked from qt-creator/qt-creator
C++: Pass on the byte offsets of macro arguments
...to the Document/Block. Change-Id: I1a96dc70ac93254e6030326b36a5df9a2cdc2bd8 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Christian Stenger
parent
25a8ee7344
commit
c2e5f1c819
@@ -46,14 +46,26 @@ class Macro;
|
||||
|
||||
class CPLUSPLUS_EXPORT MacroArgumentReference
|
||||
{
|
||||
unsigned _bytesOffset;
|
||||
unsigned _bytesLength;
|
||||
unsigned _utf16charsOffset;
|
||||
unsigned _utf16charsLength;
|
||||
|
||||
public:
|
||||
explicit MacroArgumentReference(unsigned utf16charsOffset = 0, unsigned utf16charsLength = 0)
|
||||
: _utf16charsOffset(utf16charsOffset), _utf16charsLength(utf16charsLength)
|
||||
explicit MacroArgumentReference(unsigned bytesOffset = 0, unsigned bytesLength = 0,
|
||||
unsigned utf16charsOffset = 0, unsigned utf16charsLength = 0)
|
||||
: _bytesOffset(bytesOffset)
|
||||
, _bytesLength(bytesLength)
|
||||
, _utf16charsOffset(utf16charsOffset)
|
||||
, _utf16charsLength(utf16charsLength)
|
||||
{ }
|
||||
|
||||
unsigned bytesOffset() const
|
||||
{ return _bytesOffset; }
|
||||
|
||||
unsigned bytesLength() const
|
||||
{ return _bytesLength; }
|
||||
|
||||
unsigned utf16charsOffset() const
|
||||
{ return _utf16charsOffset; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user