Information about a source file used to generate the AST.
Generally an AST will include SourceFile objects for *all* files, including headers, that were used. The difference is that the main files (those named to the parser) are flagged as "main", and others will not have lists of declarations.
Public Typedefs Summary: | |
std::vector<SourceFile*> | vector A vector of SourceFiles [Source] |
Public Member functions Summary: | |
constructor | SourceFile(const std::string& filename, const std::string& full_filename, bool is_main) Constructor [Source] |
const std::string& | filename() Returns the filename of this SourceFile (may be stripped by a basename) [Source] |
const std::string& | full_filename() Returns the full filename of this SourceFile [Source] |
bool | is_main() Returns whether this is a main file (as opposed to extra included file just being stored for its list of includes) [Source] |
Declaration::vector& | declarations() Returns the vector of declarations in this file [Source] |
const Declaration::vector& | declarations() Returns a const vector of declarations in this file [Source] |
Include::vector& | includes() Returns a vector of includes in this file [Source] |
const Include::vector& | includes() Returns a const vector of includes in this file [Source] |
Private Data members Summary: | |
std::string | m_filename The filename [Source] |
std::string | m_full_filename The full filename [Source] |
bool | m_is_main Whether this file is a main file [Source] |
Declaration::vector | m_declarations The vector of declarations [Source] |
Include::vector | m_includes The vector of includes [Source] |
Public Data members Inherited from FakeGC::cleanup | |
cleanup_next |