Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Umbrello
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SDK
Umbrello
Commits
3f2d6e6b
Commit
3f2d6e6b
authored
Mar 17, 2020
by
Ralf Habacker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test case for class comments with c++ style and doxygen comments
parent
1e3c428d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
140 additions
and
21 deletions
+140
-21
test/import/cxx/comments-class-members.h
test/import/cxx/comments-class-members.h
+29
-7
test/import/cxx/comments-class-methods.h
test/import/cxx/comments-class-methods.h
+29
-7
test/import/cxx/comments-class-operators.h
test/import/cxx/comments-class-operators.h
+37
-0
test/import/cxx/comments-class.h
test/import/cxx/comments-class.h
+44
-7
test/import/cxx/comments.h
test/import/cxx/comments.h
+1
-0
No files found.
test/import/cxx/comments-class-members.h
View file @
3f2d6e6b
...
...
@@ -2,15 +2,37 @@
// class comments_class_members_test
class
comments_class_members_test
{
public:
// member variable1 c++ style single line comment
int
variable1
;
/* member variable10 c-style single lime comment */
int
variable10
;
/** member variable11 c doxygen style single lime comment */
int
variable11
;
/*
* member variable2
* member variable2
0
* c-style multi line comment
*/
int
variable2
;
int
variable20
;
/**
* member variable21
* c doxygen style multi line comment
*/
int
variable21
;
// member variable30 c++ style single line comment
int
variable30
;
/// member variable31 c++ doxygen style single line comment
int
variable31
;
// member variable40 c++ style multi line comment 1 of 3 lines
// member variable40 c++ style multi line comment 2 of 3 lines
// member variable40 c++ style multi line comment 3 of 3 lines
int
variable40
;
/* member variable3 c-style single lime comment */
int
variable3
;
};
\ No newline at end of file
/// member variable41 c++ doxygen style multi line comment 1 of 3 lines
/// member variable41 c++ doxygen style multi line comment 2 of 3 lines
/// member variable41 c++ doxygen style multi line comment 3 of 3 lines
int
variable41
;
};
test/import/cxx/comments-class-methods.h
View file @
3f2d6e6b
...
...
@@ -2,15 +2,37 @@
// class comments_class_methods_test
class
comments_class_methods_test
{
public:
// method test0 c++ style single line comment
void
test0
();
/* method test00 c style single line comment */
void
test00
(
char
c
);
/** method test21 c doxygen style single line comment */
void
test01
(
char
c
);
/*
* method test10
* c-style multiline comment
*/
void
test10
(
char
*
);
/**
* method test1
* c-style multiline comment
*
doxygen
c-style multiline comment
*/
void
test1
(
char
*
);
void
test11
(
char
*
);
// method test00 c++ style single line comment
void
test20
();
/// method test01 c++ doxygen style single line comment
void
test21
();
// method test30 c++ style multi line comment 1 of 3 lines
// method test30 c++ style multi line comment 2 of 3 lines
// method test30 c++ style multi line comment 3 of 3 lines
void
test30
();
/* method test2 c-style single line comment */
void
test
(
char
c
);
};
\ No newline at end of file
/// method test30 c++ doxygen style multi line comment 1 of 3 lines
/// method test30 c++ doxygen style multi line comment 2 of 3 lines
/// method test30 c++ doxygen style multi line comment 3 of 3 lines
void
test31
();
};
test/import/cxx/comments-class-operators.h
0 → 100644
View file @
3f2d6e6b
// class comments_class_operators_test
class
comments_class_operators_test
{
public:
/* operator * c style single line comment */
int
operator
*
(
int
i
);
/** operator / c doxygen style single line comment */
int
operator
/
(
int
i
);
/*
* operator % comment
* c-style multiline comment
*/
int
operator
%
(
int
i
);
/**
* operator | comment
* c doxygen style multiline comment
*/
int
operator
|
(
int
i
);
// operator && description c++ style single line comment
int
operator
&&
(
int
i
);
/// operator || c++ doxygen style single line comment
int
operator
||
(
int
i
);
// operator + description line 1 out of 3 (c++ style)
// operator + description line 2 out of 3 (c++ style)
// operator + description line 3 out of 3 (c++ style)
int
operator
+
(
int
i
);
/// operator - description line 1 out of 2 (c++ doxygen style)
/// operator - description line 2 out of 2 (c++ doxygen style)
int
operator
-
(
int
i
);
};
test/import/cxx/comments-class.h
View file @
3f2d6e6b
// independent comment 1
// class comments_class_test1 c++ style single line comment
class
comments_class_test1
{};
// class comments_class_test1
a
c++ style single line comment
class
comments_class_test1
a
{};
/**
* class comments_class_test2
// independent comment 2
/// class comments_class_test1b doxygen c++ style single line comment
class
comments_class_test1b
{};
// independent comment 3
// class comments_class_test1c c++ style multi line comment 1 of 2 lines
// class comments_class_test1c c++ style multi line comment 2 of 2 lines
class
comments_class_test1c
{};
// independent comment 4
// class comments_class_test1d c++ style multi line comment 1 of 3 lines
// class comments_class_test1d c++ style multi line comment 2 of 3 lines
// class comments_class_test1d c++ style multi line comment 3 of 3 lines
class
comments_class_test1d
{};
// independent comment 5
/// class comments_class_test1e doxygen c++ style multi line comment 1 of 3 lines
/// class comments_class_test1e doxygen c++ style multi line comment 2 of 3 lines
/// class comments_class_test1e doxygen c++ style multi line comment 3 of 3 lines
class
comments_class_test1e
{};
// independent comment 6
/*
* class comments_class_test2a
* c-style multiline comment
*/
class
comments_class_test2
{};
class
comments_class_test2a
{};
// independent comment 7
/**
* class comments_class_test2b
* doxygen c-style multiline comment
*/
class
comments_class_test2b
{};
/* class comments_class_test2c c-style single line comment */
class
comments_class_test2c
{};
/* class comments_class_test3 c-style single line comment */
class
comments_class_test3
{};
test/import/cxx/comments.h
View file @
3f2d6e6b
#include "comments-class-methods.h"
#include "comments-class-members.h"
#include "comments-class-enums.h"
#include "comments-class-operators.h"
#include "comments-class-typedefs.h"
#include "comments-file-variant1.h"
#include "comments-file-variant2.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment