mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, test role target checks and fix two cases
This commit is contained in:
170
tests/roots/test-domain-cpp/roles-targets-ok.rst
Normal file
170
tests/roots/test-domain-cpp/roles-targets-ok.rst
Normal file
@@ -0,0 +1,170 @@
|
||||
.. default-domain:: cpp
|
||||
|
||||
.. namespace:: RolesTargetsOk
|
||||
|
||||
.. class:: Class
|
||||
|
||||
:cpp:any:`Class`
|
||||
:class:`Class`
|
||||
:struct:`Class`
|
||||
union
|
||||
func
|
||||
member
|
||||
var
|
||||
:type:`Class`
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. union:: Union
|
||||
|
||||
:cpp:any:`Union`
|
||||
class
|
||||
struct
|
||||
:union:`Union`
|
||||
func
|
||||
member
|
||||
var
|
||||
:type:`Union`
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. function:: void Function()
|
||||
|
||||
:cpp:any:`Function`
|
||||
class
|
||||
struct
|
||||
union
|
||||
:func:`Function`
|
||||
member
|
||||
var
|
||||
:type:`Function`
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. var:: int Variable
|
||||
|
||||
:cpp:any:`Variable`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
:member:`Variable`
|
||||
:var:`Variables`
|
||||
type
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. type:: Type = void
|
||||
|
||||
:cpp:any:`Type`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
member
|
||||
var
|
||||
:type:`Type`
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. concept:: template<typename T> Concept
|
||||
|
||||
:cpp:any:`Concept`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
member
|
||||
var
|
||||
type
|
||||
:concept:`Concept`
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. enum-struct:: Enum
|
||||
|
||||
:cpp:any:`Enum`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
member
|
||||
var
|
||||
:type:`Enum`
|
||||
concept
|
||||
:enum:`Enum`
|
||||
enumerator
|
||||
|
||||
.. enumerator:: Enumerator
|
||||
|
||||
:cpp:any:`Enumerator`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
member
|
||||
var
|
||||
type
|
||||
concept
|
||||
enum
|
||||
:enumerator:`Enumerator`
|
||||
|
||||
.. class:: template<typename TParamType, \
|
||||
int TParamVar, \
|
||||
template<typename> typename TParamTemplate \
|
||||
> ClassTemplate
|
||||
|
||||
:cpp:any:`TParamType`
|
||||
:class:`TParamType`
|
||||
:struct:`TParamType`
|
||||
:union:`TParamType`
|
||||
:func:`TParamType`
|
||||
:member:`TParamType`
|
||||
:var:`TParamType`
|
||||
:type:`TParamType`
|
||||
:concept:`TParamType`
|
||||
:enum:`TParamType`
|
||||
:enumerator:`TParamType`
|
||||
|
||||
:cpp:any:`TParamVar`
|
||||
:class:`TParamVar`
|
||||
:struct:`TParamVar`
|
||||
:union:`TParamVar`
|
||||
:func:`TParamVar`
|
||||
:member:`TParamVar`
|
||||
:var:`TParamVar`
|
||||
:type:`TParamVar`
|
||||
:concept:`TParamVar`
|
||||
:enum:`TParamVar`
|
||||
:enumerator:`TParamVar`
|
||||
|
||||
:cpp:any:`TParamTemplate`
|
||||
:class:`TParamTemplate`
|
||||
:struct:`TParamTemplate`
|
||||
:union:`TParamTemplate`
|
||||
:func:`TParamTemplate`
|
||||
:member:`TParamTemplate`
|
||||
:var:`TParamTemplate`
|
||||
:type:`TParamTemplate`
|
||||
:concept:`TParamTemplate`
|
||||
:enum:`TParamTemplate`
|
||||
:enumerator:`TParamTemplate`
|
||||
|
||||
.. function:: void FunctionParams(int FunctionParam)
|
||||
|
||||
:cpp:any:`FunctionParam`
|
||||
class
|
||||
struct
|
||||
union
|
||||
function
|
||||
:member:`FunctionParam`
|
||||
:var:`FunctionParam`
|
||||
type
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
158
tests/roots/test-domain-cpp/roles-targets-warn.rst
Normal file
158
tests/roots/test-domain-cpp/roles-targets-warn.rst
Normal file
@@ -0,0 +1,158 @@
|
||||
.. default-domain:: cpp
|
||||
|
||||
.. namespace:: RolesTargetsWarn
|
||||
|
||||
.. class:: Class
|
||||
|
||||
class
|
||||
struct
|
||||
:union:`Class`
|
||||
:func:`Class`
|
||||
:member:`Class`
|
||||
:var:`Class`
|
||||
type
|
||||
:concept:`Class`
|
||||
:enum:`Class`
|
||||
:enumerator:`Class`
|
||||
|
||||
.. union:: Union
|
||||
|
||||
:class:`Union`
|
||||
:struct:`Union`
|
||||
union
|
||||
:func:`Union`
|
||||
:member:`Union`
|
||||
:var:`Union`
|
||||
type
|
||||
:concept:`Union`
|
||||
:enum:`Union`
|
||||
:enumerator:`Union`
|
||||
|
||||
.. function:: void Function()
|
||||
|
||||
:class:`Function`
|
||||
:struct:`Function`
|
||||
:union:`Function`
|
||||
func
|
||||
:member:`Function`
|
||||
:var:`Function`
|
||||
type
|
||||
:concept:`Function`
|
||||
:enum:`Function`
|
||||
:enumerator:`Function`
|
||||
|
||||
.. var:: int Variable
|
||||
|
||||
:class:`Variable`
|
||||
:struct:`Variable`
|
||||
:union:`Variable`
|
||||
:func:`Variable`
|
||||
member
|
||||
var
|
||||
:type:`Variable`
|
||||
:concept:`Variable`
|
||||
:enum:`Variable`
|
||||
:enumerator:`Variable`
|
||||
|
||||
.. type:: Type = void
|
||||
|
||||
:class:`Type`
|
||||
:struct:`Type`
|
||||
:union:`Type`
|
||||
:func:`Type`
|
||||
:member:`Type`
|
||||
:var:`Type`
|
||||
type
|
||||
:concept:`Type`
|
||||
:enum:`Type`
|
||||
:enumerator:`Type`
|
||||
|
||||
.. concept:: template<typename T> Concept
|
||||
|
||||
:class:`Concept`
|
||||
:struct:`Concept`
|
||||
:union:`Concept`
|
||||
:func:`Concept`
|
||||
:member:`Concept`
|
||||
:var:`Concept`
|
||||
:type:`Concept`
|
||||
concept
|
||||
:enum:`Concept`
|
||||
:enumerator:`Concept`
|
||||
|
||||
.. enum-struct:: Enum
|
||||
|
||||
:class:`Enum`
|
||||
:struct:`Enum`
|
||||
:union:`Enum`
|
||||
:func:`Enum`
|
||||
:member:`Enum`
|
||||
:var:`Enum`
|
||||
type
|
||||
:concept:`Enum`
|
||||
enum
|
||||
:enumerator:`Enum`
|
||||
|
||||
.. enumerator:: Enumerator
|
||||
|
||||
:class:`Enumerator`
|
||||
:struct:`Enumerator`
|
||||
:union:`Enumerator`
|
||||
:func:`Enumerator`
|
||||
:member:`Enumerator`
|
||||
:var:`Enumerator`
|
||||
:type:`Enumerator`
|
||||
:concept:`Enumerator`
|
||||
:enum:`Enumerator`
|
||||
enumerator
|
||||
|
||||
.. class:: template<typename TParamType, \
|
||||
int TParamVar, \
|
||||
template<typename> typename TParamTemplate \
|
||||
> ClassTemplate
|
||||
|
||||
class
|
||||
struct
|
||||
union
|
||||
func
|
||||
member
|
||||
var
|
||||
type
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
class
|
||||
struct
|
||||
union
|
||||
func
|
||||
member
|
||||
var
|
||||
type
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
class
|
||||
struct
|
||||
union
|
||||
func
|
||||
member
|
||||
var
|
||||
type
|
||||
concept
|
||||
enum
|
||||
enumerator
|
||||
|
||||
.. function:: void FunctionParams(int FunctionParam)
|
||||
|
||||
:class:`FunctionParam`
|
||||
:struct:`FunctionParam`
|
||||
:union:`FunctionParam`
|
||||
:func:`FunctionParam`
|
||||
member
|
||||
var
|
||||
:type:`FunctionParam`
|
||||
:concept:`FunctionParam`
|
||||
:enum:`FunctionParam`
|
||||
:enumerator:`FunctionParam`
|
||||
Reference in New Issue
Block a user