33
* Representation of a C/C++ source file.
34
* \see Puma::CFileInfo */
36
/** \class CFileInfo CFileInfo.h Puma/infos/CFileInfo.h
37
* A CFileInfo object represents a C/C++ source file. A source
38
* file also is a scope, i.e. the file scope. */
32
/** \class CFileInfo CFileInfo.h Puma/CFileInfo.h
33
* Semantic information about a source file (translation unit).
34
* A source file has its own scope, the so-called file scope. */
39
35
class CFileInfo : public CNamespaceInfo {
41
37
bool _haveCBuiltins;
42
38
bool _haveCCBuiltins;
45
/** Constructs a new file info. */
47
/** Destructs the file info. If the object id is
48
* \c FILE_INFO, Puma::CObjectInfo::CleanUp() is called. */
43
/** Destructor. If the object type is CObjectInfo::FILE_INFO,
44
* then CObjectInfo::CleanUp() is called. */
51
/** Get the token unit of the source file. */
47
/** Get the token chain of the source file. */
52
48
Unit *Primary () const;
53
/** Set the token unit of the source file.
54
* \param unit The token unit. */
49
/** Set the token chain of the source file.
50
* \param unit The token chain. */
55
51
void Primary (Unit *unit);
57
/** Return \e true if C compiler build-in functions are defined
53
/** Check if C compiler build-in functions are defined
58
54
* for the source file. */
59
55
bool haveCBuiltins () const;
60
/** Return \e true if C++ compiler build-in functions are defined
56
/** Check if C++ compiler build-in functions are defined
61
57
* for the source file. */
62
58
bool haveCCBuiltins () const;