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:
@@ -26,6 +26,8 @@
|
||||
#ifndef CLANGBACKENDIPC_GLOBAL_H
|
||||
#define CLANGBACKENDIPC_GLOBAL_H
|
||||
|
||||
#include <utils/sizedarray.h>
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(CLANGBACKENDIPC_BUILD_LIB)
|
||||
@@ -51,7 +53,7 @@ enum class DiagnosticSeverity // one to one mapping of the clang enum numbers
|
||||
Fatal = 4
|
||||
};
|
||||
|
||||
enum class HighlightingType
|
||||
enum class HighlightingType : quint8
|
||||
{
|
||||
Invalid,
|
||||
Keyword,
|
||||
@@ -70,7 +72,8 @@ enum class HighlightingType
|
||||
PreprocessorDefinition,
|
||||
PreprocessorExpansion,
|
||||
Label,
|
||||
OutputArgument
|
||||
OutputArgument,
|
||||
Declaration
|
||||
};
|
||||
|
||||
enum class CompletionCorrection
|
||||
@@ -123,5 +126,12 @@ struct MessageTrait<Message> \
|
||||
static const MessageType enumeration = MessageType::Message; \
|
||||
};
|
||||
|
||||
using MixinHighlightingTypes = Utils::SizedArray<HighlightingType, 6>;
|
||||
|
||||
struct HighlightingTypes {
|
||||
HighlightingType mainHighlightingType;
|
||||
MixinHighlightingTypes mixinHighlightingTypes;
|
||||
};
|
||||
|
||||
}
|
||||
#endif // CLANGBACKENDIPC_GLOBAL_H
|
||||
|
||||
Reference in New Issue
Block a user