Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
namespace Synopsis::Parser::C++::AST
class SourceFile
Files: Synopsis/Parser/C++/syn/ast.hh
SourceFile-inheritance Scopes/Synopsis/Parser/C++/FakeGC/cleanup.html

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:
 constructorSourceFile(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]
 boolis_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::stringm_filename
The filename [Source]
std::stringm_full_filename
The full filename [Source]
boolm_is_main
Whether this file is a main file [Source]
Declaration::vectorm_declarations
The vector of declarations [Source]
Include::vectorm_includes
The vector of includes [Source]

Public Data members Inherited from FakeGC::cleanup
cleanup_next