forked from qt-creator/qt-creator
Split CppCodeCompletion::startCompletion().
This commit is contained in:
@@ -47,6 +47,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace TextEditor {
|
||||
class ITextEditor;
|
||||
class BaseTextEditor;
|
||||
}
|
||||
|
||||
namespace CppTools {
|
||||
@@ -93,8 +94,8 @@ public:
|
||||
|
||||
private:
|
||||
void addKeywords();
|
||||
void addMacros(const CPlusPlus::LookupContext &context);
|
||||
void addMacros_helper(const CPlusPlus::LookupContext &context,
|
||||
void addMacros(const QString &fileName, const CPlusPlus::Snapshot &snapshot);
|
||||
void addMacros_helper(const CPlusPlus::Snapshot &snapshot,
|
||||
const QString &fileName,
|
||||
QSet<QString> *processed,
|
||||
QSet<QString> *definedMacros);
|
||||
@@ -102,6 +103,10 @@ private:
|
||||
|
||||
bool completeInclude(const QTextCursor &cursor);
|
||||
|
||||
int globalCompletion(CPlusPlus::Symbol *lastVisibleSymbol,
|
||||
CPlusPlus::Document::Ptr thisDocument,
|
||||
const CPlusPlus::Snapshot &snapshot);
|
||||
|
||||
bool completeConstructorOrFunction(const QList<CPlusPlus::LookupItem> &,
|
||||
const CPlusPlus::LookupContext &,
|
||||
int endOfExpression, bool toolTipOnly);
|
||||
@@ -135,6 +140,12 @@ private:
|
||||
|
||||
int findStartOfName(int pos = -1) const;
|
||||
|
||||
int startCompletionInternal(TextEditor::BaseTextEditor *edit,
|
||||
const QString fileName,
|
||||
unsigned line, unsigned column,
|
||||
const QString &expression,
|
||||
int endOfExpression);
|
||||
|
||||
private:
|
||||
bool objcKeywordsWanted() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user