logic: recording node type of a cxx namespace in a using directive
* also fixed tests to be executed in the same order on every platform
This commit is contained in:
+1
-1
@@ -588,7 +588,7 @@ if (WIN32)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TEST_PROJECT_NAME}
|
TARGET ${TEST_PROJECT_NAME}
|
||||||
PRE_BUILD
|
PRE_BUILD
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE} --runner=ParenPrinter -o ${TESTGEN_FILE} ${PROJECT_SOURCE_DIR}/src/test/*.h
|
COMMAND cd ${PROJECT_SOURCE_DIR} && ${PYTHON_EXECUTABLE} ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE} --runner=ParenPrinter -o ${TESTGEN_FILE} ${TEST_FILES}
|
||||||
COMMENT "Generating unittest code with cxxtestgen"
|
COMMENT "Generating unittest code with cxxtestgen"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -373,10 +373,14 @@ void CxxAstVisitorComponentIndexer::visitUsingDirectiveDecl(clang::UsingDirectiv
|
|||||||
{
|
{
|
||||||
if (shouldVisitDecl(d))
|
if (shouldVisitDecl(d))
|
||||||
{
|
{
|
||||||
|
const NameHierarchy nameHierarchy = getAstVisitor()->getDeclNameCache()->getValue(d->getNominatedNamespaceAsWritten());
|
||||||
|
|
||||||
|
m_client->recordSymbol(nameHierarchy, SYMBOL_NAMESPACE, ACCESS_NONE, DEFINITION_NONE);
|
||||||
|
|
||||||
ParseLocation loc = getParseLocation(d->getLocation());
|
ParseLocation loc = getParseLocation(d->getLocation());
|
||||||
m_client->recordReference(
|
m_client->recordReference(
|
||||||
REFERENCE_USAGE,
|
REFERENCE_USAGE,
|
||||||
getAstVisitor()->getDeclNameCache()->getValue(d->getNominatedNamespaceAsWritten()),
|
nameHierarchy,
|
||||||
getAstVisitor()->getComponent<CxxAstVisitorComponentContext>()->getContextName(NameHierarchy(loc.filePath.fileName())),
|
getAstVisitor()->getComponent<CxxAstVisitorComponentContext>()->getContextName(NameHierarchy(loc.filePath.fileName())),
|
||||||
loc
|
loc
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user