mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
CPP domain: fix whitespace.
This commit is contained in:
parent
007a15454f
commit
e895676d82
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
:copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
|
:copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
|
||||||
:license: BSD, see LICENSE for details.
|
:license: BSD, see LICENSE for details.
|
||||||
|
|
||||||
See http://www.nongnu.org/hcb/ for the grammar.
|
See http://www.nongnu.org/hcb/ for the grammar.
|
||||||
See http://mentorembedded.github.io/cxx-abi/abi.html#mangling for the
|
See http://mentorembedded.github.io/cxx-abi/abi.html#mangling for the
|
||||||
inspiration for the id generation.
|
inspiration for the id generation.
|
||||||
|
|
||||||
common grammar things:
|
common grammar things:
|
||||||
simple-declaration
|
simple-declaration
|
||||||
-> attribute-specifier-seq[opt] decl-specifier-seq[opt]
|
-> attribute-specifier-seq[opt] decl-specifier-seq[opt]
|
||||||
@ -20,7 +20,7 @@
|
|||||||
# Use at most 1 init-declerator.
|
# Use at most 1 init-declerator.
|
||||||
-> decl-specifier-seq init-declerator
|
-> decl-specifier-seq init-declerator
|
||||||
-> decl-specifier-seq declerator initializer
|
-> decl-specifier-seq declerator initializer
|
||||||
|
|
||||||
decl-specifier ->
|
decl-specifier ->
|
||||||
storage-class-specifier -> "static" (only for member_object and
|
storage-class-specifier -> "static" (only for member_object and
|
||||||
function_object)
|
function_object)
|
||||||
@ -76,8 +76,8 @@
|
|||||||
constant-expression
|
constant-expression
|
||||||
| type-specifier-seq abstract-declerator
|
| type-specifier-seq abstract-declerator
|
||||||
| id-expression
|
| id-expression
|
||||||
|
|
||||||
|
|
||||||
declerator ->
|
declerator ->
|
||||||
ptr-declerator
|
ptr-declerator
|
||||||
| noptr-declarator parameters-and-qualifiers trailing-return-type
|
| noptr-declarator parameters-and-qualifiers trailing-return-type
|
||||||
@ -108,11 +108,11 @@
|
|||||||
memberFunctionInit -> "=" "0"
|
memberFunctionInit -> "=" "0"
|
||||||
# (note: only "0" is allowed as the value, according to the standard,
|
# (note: only "0" is allowed as the value, according to the standard,
|
||||||
# right?)
|
# right?)
|
||||||
|
|
||||||
|
|
||||||
We additionally add the possibility for specifying the visibility as the
|
We additionally add the possibility for specifying the visibility as the
|
||||||
first thing.
|
first thing.
|
||||||
|
|
||||||
type_object:
|
type_object:
|
||||||
goal:
|
goal:
|
||||||
either a single type (e.g., "MyClass:Something_T" or a typedef-like
|
either a single type (e.g., "MyClass:Something_T" or a typedef-like
|
||||||
@ -126,14 +126,14 @@
|
|||||||
-> decl-specifier-seq abstract-declarator[opt]
|
-> decl-specifier-seq abstract-declarator[opt]
|
||||||
grammar, typedef-like: no initilizer
|
grammar, typedef-like: no initilizer
|
||||||
decl-specifier-seq declerator
|
decl-specifier-seq declerator
|
||||||
|
|
||||||
|
|
||||||
member_object:
|
member_object:
|
||||||
goal: as a type_object which must have a declerator, and optionally
|
goal: as a type_object which must have a declerator, and optionally
|
||||||
with a initializer
|
with a initializer
|
||||||
grammar:
|
grammar:
|
||||||
decl-specifier-seq declerator initializer
|
decl-specifier-seq declerator initializer
|
||||||
|
|
||||||
function_object:
|
function_object:
|
||||||
goal: a function declaration, TODO: what about templates? for now: skip
|
goal: a function declaration, TODO: what about templates? for now: skip
|
||||||
grammar: no initializer
|
grammar: no initializer
|
||||||
@ -1875,4 +1875,4 @@ class CPPDomain(Domain):
|
|||||||
|
|
||||||
def get_objects(self):
|
def get_objects(self):
|
||||||
for refname, (docname, type, theid) in iteritems(self.data['objects']):
|
for refname, (docname, type, theid) in iteritems(self.data['objects']):
|
||||||
yield (refname, refname, type, docname, refname, 1)
|
yield (refname, refname, type, docname, refname, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user