ΒΆbool shouldImport(const clang::VarDecl* VD,
                  const clang::ASTContext& ACtx)

Description

Returns true if it makes sense to import a foreign variable definition. For instance, we don't want to import variables that have non-trivial types because the constructor might have side-effects.

Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:115

Parameters

const clang::VarDecl* VD
const clang::ASTContext& ACtx