Print all comments under condition block prior to "if", "while", "for"

This commit is contained in:
caheckman 2021-01-21 17:41:45 -05:00
parent 8a07e62879
commit 798157b50b
5 changed files with 60 additions and 19 deletions

View file

@ -37,10 +37,11 @@ class Funcdata;
class Comment {
friend class CommentDatabaseInternal;
uint4 type; ///< The properties associated with the comment
int4 uniq; ///< Sub-identifier for uniqueness
Address funcaddr; ///< Address of the function containing the comment
Address addr; ///< Address associated with the comment
int4 uniq; ///< Sub-identifier for uniqueness
string text; ///< The body of the comment
mutable bool emitted; ///< \b true if this comment has already been emitted
public:
/// \brief Possible properties associated with a comment
enum comment_type {
@ -51,9 +52,10 @@ public:
warning = 16, ///< The comment is auto-generated to alert the user
warningheader = 32 ///< The comment is auto-generated and should be in the header
};
Comment(uint4 tp,const Address &fad,
const Address &ad,int4 uq,const string &txt); ///< Constructor
Comment(uint4 tp,const Address &fad,const Address &ad,int4 uq,const string &txt); ///< Constructor
Comment(void) {} ///< Constructor for use with restoreXml
void setEmitted(bool val) const { emitted = val; }
bool isEmitted(void) const { return emitted; }
uint4 getType(void) const { return type; } ///< Get the properties associated with the comment
const Address &getFuncAddr(void) const { return funcaddr; } ///< Get the address of the function containing the comment
const Address &getAddr(void) const { return addr; } ///< Get the address to which the instruction is attached