First passing test cases using libtooling visitor
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
|
||||
#include "catch.h"
|
||||
|
||||
#include <clang/Tooling/Tooling.h>
|
||||
#include <clang/Tooling/CompilationDatabase.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <complex>
|
||||
#include <filesystem>
|
||||
@@ -49,7 +52,7 @@ using Catch::Matchers::StartsWith;
|
||||
using Catch::Matchers::VectorContains;
|
||||
using namespace clanguml::util;
|
||||
|
||||
std::pair<clanguml::config::config, cppast::libclang_compilation_database>
|
||||
std::pair<clanguml::config::config, std::unique_ptr<clang::tooling::CompilationDatabase>>
|
||||
load_config(const std::string &test_name);
|
||||
|
||||
std::string generate_sequence_puml(
|
||||
@@ -399,6 +402,9 @@ ContainsMatcher IsMethod(std::string const &name,
|
||||
if constexpr (has_type<Abstract, Ts...>())
|
||||
pattern += " = 0";
|
||||
|
||||
if constexpr (has_type<Default, Ts...>())
|
||||
pattern += " = default";
|
||||
|
||||
pattern += " : " + type;
|
||||
|
||||
return ContainsMatcher(CasedString(pattern, caseSensitivity));
|
||||
|
||||
Reference in New Issue
Block a user