fix:modify security method and fix file path parsing

Signed-off-by: yue <yueyan4@huawei.com>
This commit is contained in:
yue
2022-05-31 20:27:21 +08:00
parent a99d010c81
commit 3e90b3e1df
26 changed files with 81 additions and 120 deletions
@@ -15,7 +15,7 @@ namespace HDI {
bool CppInterfaceCodeEmitter::ResolveDirectory(const String &targetDirectory)
{
if (ast_->GetASTFileType() == ASTFileType::AST_IFACE || ast_->GetASTFileType() == ASTFileType::AST_ICALLBACK) {
directory_ = GetFilePath(targetDirectory);
directory_ = GetFileParentPath(targetDirectory);
} else {
return false;
}