cppCommentBlock.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Filename: cppCommentBlock.h
  2. // Created by: drose (15Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #ifndef CPPCOMMENTBLOCK_H
  15. #define CPPCOMMENTBLOCK_H
  16. #include "dtoolbase.h"
  17. #include "cppFile.h"
  18. #include <list>
  19. ////////////////////////////////////////////////////////////////////
  20. // Class : CPPCommentBlock
  21. // Description : This represents a comment appearing in the source
  22. // code. The CPPPreprocessor collects these, and saves
  23. // the complete list of comments encountered; it also
  24. // stores a list of the comment blocks appearing before
  25. // each declaration.
  26. ////////////////////////////////////////////////////////////////////
  27. class CPPCommentBlock {
  28. public:
  29. CPPFile _file;
  30. int _line_number;
  31. int _col_number;
  32. int _last_line;
  33. bool _c_style;
  34. string _comment;
  35. };
  36. typedef list<CPPCommentBlock *> CPPComments;
  37. #endif