2015-07-06 12:05:02 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2015-07-06 12:05:02 +02:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2015-07-06 12:05:02 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2015-07-06 12:05:02 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "clangassistproposalitem.h"
|
|
|
|
|
|
2015-11-30 09:43:50 +01:00
|
|
|
#include "clangcompletionchunkstotextconverter.h"
|
2015-07-14 16:08:14 +02:00
|
|
|
|
2016-01-28 15:35:18 +01:00
|
|
|
#include <cplusplus/Icons.h>
|
2015-07-06 12:05:02 +02:00
|
|
|
#include <cplusplus/MatchingText.h>
|
|
|
|
|
#include <cplusplus/Token.h>
|
|
|
|
|
|
|
|
|
|
#include <texteditor/completionsettings.h>
|
2015-07-14 16:08:14 +02:00
|
|
|
#include <texteditor/textdocument.h>
|
2015-07-06 12:05:02 +02:00
|
|
|
#include <texteditor/texteditor.h>
|
|
|
|
|
#include <texteditor/texteditorsettings.h>
|
|
|
|
|
|
|
|
|
|
using namespace CPlusPlus;
|
|
|
|
|
using namespace ClangBackEnd;
|
|
|
|
|
|
|
|
|
|
namespace ClangCodeModel {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2016-01-28 16:39:05 +01:00
|
|
|
bool ClangAssistProposalItem::prematurelyApplies(const QChar &typedCharacter) const
|
2015-07-06 12:05:02 +02:00
|
|
|
{
|
2015-07-06 15:01:46 +02:00
|
|
|
bool applies = false;
|
2015-07-06 12:05:02 +02:00
|
|
|
|
|
|
|
|
if (m_completionOperator == T_SIGNAL || m_completionOperator == T_SLOT)
|
2016-01-28 16:39:05 +01:00
|
|
|
applies = QString::fromLatin1("(,").contains(typedCharacter);
|
2015-07-06 12:05:02 +02:00
|
|
|
else if (m_completionOperator == T_STRING_LITERAL || m_completionOperator == T_ANGLE_STRING_LITERAL)
|
2016-01-28 16:39:05 +01:00
|
|
|
applies = (typedCharacter == QLatin1Char('/')) && text().endsWith(QLatin1Char('/'));
|
2015-07-06 14:44:25 +02:00
|
|
|
else if (codeCompletion().completionKind() == CodeCompletion::ObjCMessageCompletionKind)
|
2016-01-28 16:39:05 +01:00
|
|
|
applies = QString::fromLatin1(";.,").contains(typedCharacter);
|
2015-07-06 12:05:02 +02:00
|
|
|
else
|
2016-01-28 16:39:05 +01:00
|
|
|
applies = QString::fromLatin1(";.,:(").contains(typedCharacter);
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2015-07-06 15:01:46 +02:00
|
|
|
if (applies)
|
2016-01-28 16:39:05 +01:00
|
|
|
m_typedCharacter = typedCharacter;
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2015-07-06 15:01:46 +02:00
|
|
|
return applies;
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
|
2016-01-28 15:35:18 +01:00
|
|
|
bool ClangAssistProposalItem::implicitlyApplies() const
|
|
|
|
|
{
|
2017-05-17 15:53:47 +02:00
|
|
|
return true;
|
2016-01-28 15:35:18 +01:00
|
|
|
}
|
|
|
|
|
|
2016-01-19 14:54:59 +01:00
|
|
|
void ClangAssistProposalItem::apply(TextEditor::TextDocumentManipulatorInterface &manipulator,
|
2016-01-28 15:35:18 +01:00
|
|
|
int basePosition) const
|
2015-07-06 12:05:02 +02:00
|
|
|
{
|
2015-07-06 14:44:25 +02:00
|
|
|
const CodeCompletion ccr = codeCompletion();
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2015-08-27 17:12:30 +02:00
|
|
|
QString textToBeInserted = text();
|
2016-01-28 16:39:05 +01:00
|
|
|
QString extraCharacters;
|
2015-07-06 12:05:02 +02:00
|
|
|
int extraLength = 0;
|
|
|
|
|
int cursorOffset = 0;
|
2016-06-10 15:13:38 +02:00
|
|
|
bool setAutoCompleteSkipPos = false;
|
2015-07-06 12:05:02 +02:00
|
|
|
|
|
|
|
|
bool autoParenthesesEnabled = true;
|
|
|
|
|
if (m_completionOperator == T_SIGNAL || m_completionOperator == T_SLOT) {
|
2016-01-28 16:39:05 +01:00
|
|
|
extraCharacters += QLatin1Char(')');
|
|
|
|
|
if (m_typedCharacter == QLatin1Char('(')) // Eat the opening parenthesis
|
|
|
|
|
m_typedCharacter = QChar();
|
|
|
|
|
} else if (ccr.completionKind() == CodeCompletion::KeywordCompletionKind) {
|
2015-07-14 16:08:14 +02:00
|
|
|
CompletionChunksToTextConverter converter;
|
2016-01-18 09:51:00 +01:00
|
|
|
converter.setupForKeywords();
|
2015-07-14 16:08:14 +02:00
|
|
|
|
|
|
|
|
converter.parseChunks(ccr.chunks());
|
|
|
|
|
|
2015-08-27 17:12:30 +02:00
|
|
|
textToBeInserted = converter.text();
|
2015-07-14 16:08:14 +02:00
|
|
|
if (converter.hasPlaceholderPositions())
|
|
|
|
|
cursorOffset = converter.placeholderPositions().at(0) - converter.text().size();
|
2016-01-18 12:14:10 +01:00
|
|
|
} else if (ccr.completionKind() == CodeCompletion::NamespaceCompletionKind) {
|
|
|
|
|
CompletionChunksToTextConverter converter;
|
|
|
|
|
|
|
|
|
|
converter.parseChunks(ccr.chunks()); // Appends "::" after name space name
|
|
|
|
|
|
|
|
|
|
textToBeInserted = converter.text();
|
2015-07-06 12:05:02 +02:00
|
|
|
} else if (!ccr.text().isEmpty()) {
|
|
|
|
|
const TextEditor::CompletionSettings &completionSettings =
|
|
|
|
|
TextEditor::TextEditorSettings::instance()->completionSettings();
|
|
|
|
|
const bool autoInsertBrackets = completionSettings.m_autoInsertBrackets;
|
|
|
|
|
|
|
|
|
|
if (autoInsertBrackets &&
|
|
|
|
|
(ccr.completionKind() == CodeCompletion::FunctionCompletionKind
|
|
|
|
|
|| ccr.completionKind() == CodeCompletion::DestructorCompletionKind
|
|
|
|
|
|| ccr.completionKind() == CodeCompletion::SignalCompletionKind
|
|
|
|
|
|| ccr.completionKind() == CodeCompletion::SlotCompletionKind)) {
|
|
|
|
|
// When the user typed the opening parenthesis, he'll likely also type the closing one,
|
|
|
|
|
// in which case it would be annoying if we put the cursor after the already automatically
|
|
|
|
|
// inserted closing parenthesis.
|
2016-01-28 16:39:05 +01:00
|
|
|
const bool skipClosingParenthesis = m_typedCharacter != QLatin1Char('(');
|
2017-06-01 16:36:56 +02:00
|
|
|
QTextCursor cursor = manipulator.textCursorAt(basePosition);
|
|
|
|
|
cursor.movePosition(QTextCursor::PreviousWord);
|
|
|
|
|
while (manipulator.characterAt(cursor.position()) == ':')
|
|
|
|
|
cursor.movePosition(QTextCursor::PreviousWord, QTextCursor::MoveAnchor, 2);
|
|
|
|
|
if (manipulator.characterAt(cursor.position()) != '&') {
|
|
|
|
|
if (completionSettings.m_spaceAfterFunctionName)
|
|
|
|
|
extraCharacters += QLatin1Char(' ');
|
|
|
|
|
extraCharacters += QLatin1Char('(');
|
|
|
|
|
if (m_typedCharacter == QLatin1Char('('))
|
|
|
|
|
m_typedCharacter = QChar();
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2017-06-01 16:36:56 +02:00
|
|
|
// If the function doesn't return anything, automatically place the semicolon,
|
|
|
|
|
// unless we're doing a scope completion (then it might be function definition).
|
|
|
|
|
const QChar characterAtCursor = manipulator.characterAt(manipulator.currentPosition());
|
|
|
|
|
bool endWithSemicolon = m_typedCharacter == QLatin1Char(';')/*
|
|
|
|
|
|| (function->returnType()->isVoidType() && m_completionOperator != T_COLON_COLON)*/; //###
|
|
|
|
|
const QChar semicolon = m_typedCharacter.isNull() ? QLatin1Char(';') : m_typedCharacter;
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2017-06-01 16:36:56 +02:00
|
|
|
if (endWithSemicolon && characterAtCursor == semicolon) {
|
|
|
|
|
endWithSemicolon = false;
|
2016-01-28 16:39:05 +01:00
|
|
|
m_typedCharacter = QChar();
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
2017-06-01 16:36:56 +02:00
|
|
|
|
|
|
|
|
// If the function takes no arguments, automatically place the closing parenthesis
|
|
|
|
|
if (!isOverloaded() && !ccr.hasParameters() && skipClosingParenthesis) {
|
2016-01-28 16:39:05 +01:00
|
|
|
extraCharacters += QLatin1Char(')');
|
2015-07-06 12:05:02 +02:00
|
|
|
if (endWithSemicolon) {
|
2016-01-28 16:39:05 +01:00
|
|
|
extraCharacters += semicolon;
|
|
|
|
|
m_typedCharacter = QChar();
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
2017-06-01 16:36:56 +02:00
|
|
|
} else if (autoParenthesesEnabled) {
|
|
|
|
|
const QChar lookAhead = manipulator.characterAt(manipulator.currentPosition() + 1);
|
|
|
|
|
if (MatchingText::shouldInsertMatchingText(lookAhead)) {
|
|
|
|
|
extraCharacters += QLatin1Char(')');
|
|
|
|
|
--cursorOffset;
|
|
|
|
|
setAutoCompleteSkipPos = true;
|
|
|
|
|
if (endWithSemicolon) {
|
|
|
|
|
extraCharacters += semicolon;
|
|
|
|
|
--cursorOffset;
|
|
|
|
|
m_typedCharacter = QChar();
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
if (autoInsertBrackets && data().canConvert<CompleteFunctionDeclaration>()) {
|
|
|
|
|
if (m_typedChar == QLatin1Char('('))
|
|
|
|
|
m_typedChar = QChar();
|
|
|
|
|
|
|
|
|
|
// everything from the closing parenthesis on are extra chars, to
|
|
|
|
|
// make sure an auto-inserted ")" gets replaced by ") const" if necessary
|
|
|
|
|
int closingParen = toInsert.lastIndexOf(QLatin1Char(')'));
|
|
|
|
|
extraChars = toInsert.mid(closingParen);
|
|
|
|
|
toInsert.truncate(closingParen);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Append an unhandled typed character, adjusting cursor offset when it had been adjusted before
|
2016-01-28 16:39:05 +01:00
|
|
|
if (!m_typedCharacter.isNull()) {
|
|
|
|
|
extraCharacters += m_typedCharacter;
|
2015-07-06 12:05:02 +02:00
|
|
|
if (cursorOffset != 0)
|
|
|
|
|
--cursorOffset;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Avoid inserting characters that are already there
|
2017-05-17 15:53:47 +02:00
|
|
|
QTextCursor cursor = manipulator.textCursorAt(basePosition);
|
|
|
|
|
cursor.movePosition(QTextCursor::EndOfWord);
|
|
|
|
|
const int currentPosition = cursor.position();
|
|
|
|
|
|
2016-01-28 16:39:05 +01:00
|
|
|
for (int i = 0; i < extraCharacters.length(); ++i) {
|
|
|
|
|
const QChar a = extraCharacters.at(i);
|
2017-05-17 15:53:47 +02:00
|
|
|
const QChar b = manipulator.characterAt(currentPosition + i);
|
2015-07-06 12:05:02 +02:00
|
|
|
if (a == b)
|
|
|
|
|
++extraLength;
|
|
|
|
|
else
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-08-27 17:12:30 +02:00
|
|
|
|
2016-01-28 16:39:05 +01:00
|
|
|
textToBeInserted += extraCharacters;
|
2015-07-06 12:05:02 +02:00
|
|
|
|
2017-05-17 15:53:47 +02:00
|
|
|
const int length = currentPosition - basePosition + extraLength;
|
2015-08-27 17:12:30 +02:00
|
|
|
|
2016-01-19 14:54:59 +01:00
|
|
|
const bool isReplaced = manipulator.replace(basePosition, length, textToBeInserted);
|
2017-05-17 15:53:47 +02:00
|
|
|
manipulator.setCursorPosition(basePosition + textToBeInserted.length());
|
2016-01-19 14:54:59 +01:00
|
|
|
if (isReplaced) {
|
2015-08-27 17:12:30 +02:00
|
|
|
if (cursorOffset)
|
2016-01-19 14:54:59 +01:00
|
|
|
manipulator.setCursorPosition(manipulator.currentPosition() + cursorOffset);
|
2016-06-10 15:13:38 +02:00
|
|
|
if (setAutoCompleteSkipPos)
|
|
|
|
|
manipulator.setAutoCompleteSkipPosition(manipulator.currentPosition());
|
2016-01-19 14:54:59 +01:00
|
|
|
|
|
|
|
|
if (ccr.completionKind() == CodeCompletion::KeywordCompletionKind)
|
|
|
|
|
manipulator.autoIndent(basePosition, textToBeInserted.size());
|
2015-07-14 16:08:14 +02:00
|
|
|
}
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
|
2016-01-28 15:35:18 +01:00
|
|
|
void ClangAssistProposalItem::setText(const QString &text)
|
|
|
|
|
{
|
|
|
|
|
m_text = text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString ClangAssistProposalItem::text() const
|
|
|
|
|
{
|
|
|
|
|
return m_text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QIcon ClangAssistProposalItem::icon() const
|
|
|
|
|
{
|
|
|
|
|
using CPlusPlus::Icons;
|
|
|
|
|
static const char SNIPPET_ICON_PATH[] = ":/texteditor/images/snippet.png";
|
|
|
|
|
static const QIcon snippetIcon = QIcon(QLatin1String(SNIPPET_ICON_PATH));
|
|
|
|
|
|
|
|
|
|
switch (m_codeCompletion.completionKind()) {
|
|
|
|
|
case CodeCompletion::ClassCompletionKind:
|
|
|
|
|
case CodeCompletion::TemplateClassCompletionKind:
|
|
|
|
|
case CodeCompletion::TypeAliasCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::ClassIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::EnumerationCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::EnumIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::EnumeratorCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::EnumeratorIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::ConstructorCompletionKind:
|
|
|
|
|
case CodeCompletion::DestructorCompletionKind:
|
|
|
|
|
case CodeCompletion::FunctionCompletionKind:
|
|
|
|
|
case CodeCompletion::TemplateFunctionCompletionKind:
|
|
|
|
|
case CodeCompletion::ObjCMessageCompletionKind:
|
|
|
|
|
switch (m_codeCompletion.availability()) {
|
|
|
|
|
case CodeCompletion::Available:
|
|
|
|
|
case CodeCompletion::Deprecated:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::FuncPublicIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
default:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::FuncPrivateIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
}
|
|
|
|
|
case CodeCompletion::SignalCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::SignalIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::SlotCompletionKind:
|
|
|
|
|
switch (m_codeCompletion.availability()) {
|
|
|
|
|
case CodeCompletion::Available:
|
|
|
|
|
case CodeCompletion::Deprecated:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::SlotPublicIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::NotAccessible:
|
|
|
|
|
case CodeCompletion::NotAvailable:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::SlotPrivateIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
}
|
|
|
|
|
case CodeCompletion::NamespaceCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::NamespaceIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::PreProcessorCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::MacroIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::VariableCompletionKind:
|
|
|
|
|
switch (m_codeCompletion.availability()) {
|
|
|
|
|
case CodeCompletion::Available:
|
|
|
|
|
case CodeCompletion::Deprecated:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::VarPublicIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
default:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::VarPrivateIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
}
|
|
|
|
|
case CodeCompletion::KeywordCompletionKind:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::KeywordIconType);
|
2016-01-28 15:35:18 +01:00
|
|
|
case CodeCompletion::ClangSnippetKind:
|
|
|
|
|
return snippetIcon;
|
|
|
|
|
case CodeCompletion::Other:
|
2016-04-06 10:08:01 +02:00
|
|
|
return Icons::iconForType(Icons::UnknownIconType);
|
2017-04-28 17:46:40 +02:00
|
|
|
default:
|
|
|
|
|
break;
|
2016-01-28 15:35:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return QIcon();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString ClangAssistProposalItem::detail() const
|
|
|
|
|
{
|
2017-06-12 11:32:16 +02:00
|
|
|
QString detail = CompletionChunksToTextConverter::convertToToolTipWithHtml(
|
|
|
|
|
m_codeCompletion.chunks(), m_codeCompletion.completionKind());
|
2016-01-28 15:35:18 +01:00
|
|
|
|
|
|
|
|
if (!m_codeCompletion.briefComment().isEmpty())
|
|
|
|
|
detail += QStringLiteral("\n\n") + m_codeCompletion.briefComment().toString();
|
|
|
|
|
|
|
|
|
|
return detail;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool ClangAssistProposalItem::isSnippet() const
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool ClangAssistProposalItem::isValid() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quint64 ClangAssistProposalItem::hash() const
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-06 12:05:02 +02:00
|
|
|
void ClangAssistProposalItem::keepCompletionOperator(unsigned compOp)
|
|
|
|
|
{
|
|
|
|
|
m_completionOperator = compOp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool ClangAssistProposalItem::isOverloaded() const
|
|
|
|
|
{
|
|
|
|
|
return !m_overloads.isEmpty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ClangAssistProposalItem::addOverload(const CodeCompletion &ccr)
|
|
|
|
|
{
|
|
|
|
|
m_overloads.append(ccr);
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-15 17:01:50 +02:00
|
|
|
void ClangAssistProposalItem::setCodeCompletion(const CodeCompletion &codeCompletion)
|
2015-07-06 12:05:02 +02:00
|
|
|
{
|
2015-07-15 17:01:50 +02:00
|
|
|
m_codeCompletion = codeCompletion;
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
|
2015-07-15 17:01:50 +02:00
|
|
|
const ClangBackEnd::CodeCompletion &ClangAssistProposalItem::codeCompletion() const
|
2015-07-06 12:05:02 +02:00
|
|
|
{
|
2015-07-15 17:01:50 +02:00
|
|
|
return m_codeCompletion;
|
2015-07-06 12:05:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace ClangCodeModel
|
|
|
|
|
|