forked from qt-creator/qt-creator
Clang: Add Declaration highlighting
We are adding declaration detection for function to the highligher on user request. Other declaration will follow in separate patches. Task-number: QTCREATORBUG-15564 Change-Id: I54e97c26425f8d6e9854547d50a9ac8fa076b4e8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -36,29 +36,29 @@ class CMBIPC_EXPORT HighlightingMarkContainer
|
||||
friend CMBIPC_EXPORT bool operator==(const HighlightingMarkContainer &first, const HighlightingMarkContainer &second);
|
||||
public:
|
||||
HighlightingMarkContainer() = default;
|
||||
HighlightingMarkContainer(uint line, uint column, uint length, HighlightingTypes types);
|
||||
HighlightingMarkContainer(uint line, uint column, uint length, HighlightingType type);
|
||||
|
||||
uint line() const;
|
||||
uint column() const;
|
||||
uint length() const;
|
||||
HighlightingType type() const;
|
||||
|
||||
private:
|
||||
quint32 &typeAsInt();
|
||||
HighlightingTypes types() const;
|
||||
|
||||
private:
|
||||
uint line_;
|
||||
uint column_;
|
||||
uint length_;
|
||||
HighlightingType type_;
|
||||
HighlightingTypes types_;
|
||||
};
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const HighlightingMarkContainer &container);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, HighlightingMarkContainer &container);
|
||||
CMBIPC_EXPORT bool operator==(const HighlightingTypes &first, const HighlightingTypes &second);
|
||||
CMBIPC_EXPORT bool operator==(const HighlightingMarkContainer &first, const HighlightingMarkContainer &second);
|
||||
|
||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const HighlightingMarkContainer &container);
|
||||
CMBIPC_EXPORT void PrintTo(HighlightingType highlightingType, ::std::ostream *os);
|
||||
CMBIPC_EXPORT void PrintTo(const HighlightingTypes &types, ::std::ostream *os);
|
||||
void PrintTo(const HighlightingMarkContainer &container, ::std::ostream *os);
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user