forked from qt-creator/qt-creator
Get rid of CheckUndefinedSymbol::Use.
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
#ifndef CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
|
#ifndef CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
|
||||||
#define CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
|
#define CPLUSPLUS_CHECKUNDEFINEDSYMBOLS_H
|
||||||
|
|
||||||
|
#include "cppsemanticinfo.h"
|
||||||
|
|
||||||
#include <cplusplus/CppDocument.h>
|
#include <cplusplus/CppDocument.h>
|
||||||
#include <cplusplus/LookupContext.h>
|
#include <cplusplus/LookupContext.h>
|
||||||
#include <ASTVisitor.h>
|
#include <ASTVisitor.h>
|
||||||
@@ -45,14 +47,7 @@ public:
|
|||||||
|
|
||||||
QList<Document::DiagnosticMessage> operator()(AST *ast);
|
QList<Document::DiagnosticMessage> operator()(AST *ast);
|
||||||
|
|
||||||
struct Use { // ### remove me
|
typedef CppEditor::Internal::SemanticInfo::Use Use;
|
||||||
unsigned line;
|
|
||||||
unsigned column;
|
|
||||||
unsigned length;
|
|
||||||
|
|
||||||
Use(unsigned line = 0, unsigned column = 0, unsigned length = 0)
|
|
||||||
: line(line), column(column), length(length) {}
|
|
||||||
};
|
|
||||||
|
|
||||||
QList<Use> typeUsages() const;
|
QList<Use> typeUsages() const;
|
||||||
|
|
||||||
|
|||||||
@@ -2062,11 +2062,9 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
|
|||||||
if (TranslationUnit *unit = doc->translationUnit()) {
|
if (TranslationUnit *unit = doc->translationUnit()) {
|
||||||
CheckUndefinedSymbols checkUndefinedSymbols(unit, context);
|
CheckUndefinedSymbols checkUndefinedSymbols(unit, context);
|
||||||
diagnosticMessages = checkUndefinedSymbols(unit->ast());
|
diagnosticMessages = checkUndefinedSymbols(unit->ast());
|
||||||
typeUsages.clear();
|
typeUsages = checkUndefinedSymbols.typeUsages();
|
||||||
foreach (const CheckUndefinedSymbols::Use &use, checkUndefinedSymbols.typeUsages()) // ### remove me
|
|
||||||
typeUsages.append(SemanticInfo::Use(use.line, use.column, use.length));
|
|
||||||
|
|
||||||
FindObjCKeywords findObjCKeywords(unit);
|
FindObjCKeywords findObjCKeywords(unit); // ### remove me
|
||||||
objcKeywords = findObjCKeywords();
|
objcKeywords = findObjCKeywords();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user