Added option to include if and loop condition text in the diagram (fixes #162)
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user