Added option to include if and loop condition text in the diagram (fixes #162)

This commit is contained in:
Bartek Kryza
2023-07-04 23:58:42 +02:00
parent a514532e51
commit 3bd8f7f7a8
20 changed files with 365 additions and 13 deletions

View File

@@ -23,6 +23,7 @@
#include "types.h"
#include "util/util.h"
#include <clang/AST/Expr.h>
#include <clang/AST/RecursiveASTVisitor.h>
#include <deque>
@@ -248,6 +249,23 @@ bool is_qualified_identifier(const std::string &t);
bool is_type_token(const std::string &t);
std::string format_condition_text(const std::string &condition_text);
std::string get_condition_text(clang::SourceManager &sm, clang::IfStmt *stmt);
std::string get_condition_text(
clang::SourceManager &sm, clang::WhileStmt *stmt);
std::string get_condition_text(
clang::SourceManager &sm, clang::CXXForRangeStmt *stmt);
std::string get_condition_text(clang::SourceManager &sm, clang::ForStmt *stmt);
std::string get_condition_text(clang::SourceManager &sm, clang::DoStmt *stmt);
std::string get_condition_text(
clang::SourceManager &sm, clang::ConditionalOperator *stmt);
clang::QualType dereference(clang::QualType type);
/**