File: test_comments.hpp

package info (click to toggle)
pygccxml 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (40 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2014-2017 Insight Software Consortium.
// Copyright 2004-2009 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt

//! Namespace Comment
//! Across multiple lines
namespace comment {

    /** class comment */
    class test
    {
    public:
      // Non-doc comment before.
      /** doc comment */
      // Non-doc comment after.
      test();

      /// cxx comment
      /// with multiple lines
      int hello();

      //! mutable field comment
      int val1 = 0;
      /// bit field comment
      double val2=2;

      /// inside class enum comment
      enum test_enum {
        One = 1,
        Two = 2
      };
    };

    /// Outside Class enum comment
    enum com_enum {
      One = 1,
      Two = 2
    };
}