forked from qt-creator/qt-creator
CMakePM: code completion changes for cmake_print_variables|properties
They are CMake module functions and need only certain parameters. Change-Id: I6e49359470cd228fec985fca2297a50d44c76ded Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -598,6 +598,12 @@ void CMakeTool::parseSyntaxHighlightingXml()
|
||||
m_introspection->m_functionArgs[pair.first] = m_introspection->m_functionArgs.value(
|
||||
pair.second);
|
||||
}
|
||||
|
||||
// Special case for cmake_print_variables, which will print the names and values for variables
|
||||
// and needs to be as a known function
|
||||
const QString cmakePrintVariables("cmake_print_variables");
|
||||
m_introspection->m_functionArgs[cmakePrintVariables] = {};
|
||||
m_introspection->m_functions.append(cmakePrintVariables);
|
||||
}
|
||||
|
||||
void CMakeTool::fetchFromCapabilities(bool ignoreCache) const
|
||||
|
||||
Reference in New Issue
Block a user