cppCommentBlock.h 917 B

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