forked from qt-creator/qt-creator
C++: highlighter clean-ups
- Moved TextEditor::SemanticHighlighter::Result to TextEditor::HighlightingResult - Moved SemanticInfo::UseKind to CppHighlightingSupport::Kind Change-Id: I14faab1891ca691a0691cfd9243edf19fcd3d3df Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -47,14 +47,26 @@ namespace CppTools {
|
||||
class CPPTOOLS_EXPORT CppHighlightingSupport
|
||||
{
|
||||
public:
|
||||
typedef TextEditor::SemanticHighlighter::Result Use;
|
||||
enum Kind {
|
||||
Unknown = 0,
|
||||
TypeUse,
|
||||
LocalUse,
|
||||
FieldUse,
|
||||
EnumerationUse,
|
||||
VirtualMethodUse,
|
||||
LabelUse,
|
||||
MacroUse,
|
||||
FunctionUse,
|
||||
PseudoKeywordUse
|
||||
};
|
||||
|
||||
public:
|
||||
CppHighlightingSupport(TextEditor::ITextEditor *editor);
|
||||
virtual ~CppHighlightingSupport() = 0;
|
||||
|
||||
virtual QFuture<Use> highlightingFuture(const CPlusPlus::Document::Ptr &doc,
|
||||
const CPlusPlus::Snapshot &snapshot) const = 0;
|
||||
virtual QFuture<TextEditor::HighlightingResult> highlightingFuture(
|
||||
const CPlusPlus::Document::Ptr &doc,
|
||||
const CPlusPlus::Snapshot &snapshot) const = 0;
|
||||
|
||||
protected:
|
||||
TextEditor::ITextEditor *editor() const
|
||||
|
||||
Reference in New Issue
Block a user