forked from qt-creator/qt-creator
C++ Detach the CppEditor from code-model internals.
- Moved document update handling into CppTools. - Moved semantic info calculation into CppTools. - Moved semantic highlighting into CppTools. Change-Id: I253861bf074a64b1f657f7a4a8e6583871b5285f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
e8d59fb76f
commit
0c27b27658
@@ -42,6 +42,33 @@ namespace CppTools {
|
||||
|
||||
class CPPTOOLS_EXPORT SemanticInfo
|
||||
{
|
||||
public:
|
||||
struct Source
|
||||
{
|
||||
const CPlusPlus::Snapshot snapshot;
|
||||
const QString fileName;
|
||||
const QString code;
|
||||
const int line;
|
||||
const int column;
|
||||
const unsigned revision;
|
||||
const bool force;
|
||||
|
||||
Source()
|
||||
: line(0), column(0), revision(0), force(false)
|
||||
{ }
|
||||
|
||||
Source(const CPlusPlus::Snapshot &snapshot,
|
||||
const QString &fileName,
|
||||
const QString &code,
|
||||
int line, int column,
|
||||
unsigned revision,
|
||||
bool force)
|
||||
: snapshot(snapshot), fileName(fileName),
|
||||
code(code), line(line), column(column),
|
||||
revision(revision), force(force)
|
||||
{ }
|
||||
};
|
||||
|
||||
public:
|
||||
typedef TextEditor::HighlightingResult Use;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user