forked from qt-creator/qt-creator
CppEditor: Switch off "remove using namespace" quickfix with clangd
There is an equivalent tweak in clangd. Change-Id: I895750f1e942f82da94f441b56b8a7d660ba7086 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -8171,6 +8171,9 @@ private:
|
|||||||
|
|
||||||
void RemoveUsingNamespace::match(const CppQuickFixInterface &interface, QuickFixOperations &result)
|
void RemoveUsingNamespace::match(const CppQuickFixInterface &interface, QuickFixOperations &result)
|
||||||
{
|
{
|
||||||
|
if (CppModelManager::usesClangd(interface.currentFile()->editor()->textDocument()))
|
||||||
|
return;
|
||||||
|
|
||||||
const QList<AST *> &path = interface.path();
|
const QList<AST *> &path = interface.path();
|
||||||
// We expect something like
|
// We expect something like
|
||||||
// [0] TranslationUnitAST
|
// [0] TranslationUnitAST
|
||||||
|
Reference in New Issue
Block a user