Encapsulation of one Comment, which may span multiple lines. Each comment encapsulates one block or a block of // comments on adjacent lines. If extract_tails is set, then comments will be added even when they are not adjacent to a declaration - these comments will be marked as "suspect". Most of these will be discarded by the Linker, unless they have appropriate markings such as "//.< comment for previous decl"
Public Typedefs Summary: | |
std::vector<Comment*> | vector A vector of Comments [Source] |
Public Member functions Summary: | |
constructor | Comment(SourceFile* file, int line, const std::string& text, bool suspect = false) Constructor [Source] |
SourceFile* | file() Returns the filename of this comment [Source] |
int | line() Returns the line number of the start of this comment [Source] |
const std::string& | text() Returns the text of this comment [Source] |
void | set_suspect(bool suspect) Sets whether this comment is suspicious [Source] |
bool | is_suspect() Returns whether this comment is suspicious [Source] |
Private Data members Summary: | |
SourceFile* | m_file The file [Source] |
int | m_line The first line number [Source] |
std::string | m_text The text [Source] |
bool | m_suspect True if this comment is probably not needed. [Source] |
Public Data members Inherited from FakeGC::cleanup | |
cleanup_next |
Private Data member Details: |
True if this comment is probably not needed. The exception is comments which will be used as "tails", eg: //.< comment for previous decl