cppCommentBlock.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Filename: cppCommentBlock.h
  2. // Created by: drose (15Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef CPPCOMMENTBLOCK_H
  19. #define CPPCOMMENTBLOCK_H
  20. #include <dtoolbase.h>
  21. #include "cppFile.h"
  22. #include <list>
  23. ///////////////////////////////////////////////////////////////////
  24. // Class : CPPCommentBlock
  25. // Description : This represents a comment appearing in the source
  26. // code. The CPPPreprocessor collects these, and saves
  27. // the complete list of comments encountered; it also
  28. // stores a list of the comment blocks appearing before
  29. // each declaration.
  30. ////////////////////////////////////////////////////////////////////
  31. class CPPCommentBlock {
  32. public:
  33. CPPFile _file;
  34. int _line_number;
  35. int _col_number;
  36. int _last_line;
  37. bool _c_style;
  38. string _comment;
  39. };
  40. typedef list<CPPCommentBlock *> CPPComments;
  41. #endif