Fixed building main
This commit is contained in:
@@ -260,6 +260,7 @@ public:
|
||||
// const auto* tud = ast_context.getTranslationUnitDecl();
|
||||
//// tud->dump();
|
||||
visitor_.TraverseDecl(ast_context.getTranslationUnitDecl());
|
||||
visitor_.finalize();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -273,6 +274,7 @@ public:
|
||||
, config_{config}
|
||||
{
|
||||
}
|
||||
|
||||
virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
|
||||
clang::CompilerInstance &CI, clang::StringRef file)
|
||||
{
|
||||
|
||||
@@ -237,7 +237,8 @@ tvl::value_t subclass_filter::match(const diagram &d, const element &e) const
|
||||
// filter config
|
||||
for (const auto &root : roots_) {
|
||||
for (const auto &parent : parents) {
|
||||
if (root == parent.get().full_name(false))
|
||||
auto full_name = parent.get().full_name(false);
|
||||
if (root == full_name)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user