Fixed dependency generation for template specializations
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
#include "util.h"
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
namespace clanguml {
|
||||
namespace util {
|
||||
|
||||
@@ -85,5 +87,19 @@ std::string ns_relative(
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string unqualify(const std::string &s)
|
||||
{
|
||||
auto toks = clanguml::util::split(s, " ");
|
||||
const std::vector<std::string> qualifiers = {
|
||||
"static", "const", "volatile", "register", "mutable", "struct", "enum"};
|
||||
|
||||
toks.erase(toks.begin(),
|
||||
std::find_if(toks.begin(), toks.end(), [&qualifiers](const auto &t) {
|
||||
return std::count(qualifiers.begin(), qualifiers.end(), t) == 0;
|
||||
}));
|
||||
|
||||
return fmt::format("{}", fmt::join(toks, " "));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user