summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Deprecate unused Exception attributesJon Dufresne2018-12-181-23/+28
|/ / | | | | | | | | | | | | | | | | | | The attributes were used only for the string representation, but that is also the default behavior of the Exception class. Observe: >>> str(Exception('foo')) 'foo' >>> print(Exception('foo')) foo
* | Merge branch '1.8'jfbu2018-12-171-13/+31
|\ \ | |/ | | | | | | (Resolved) Conflicts: sphinx/domains/cpp.py
| * C++, fix assertion in partial builds with duplicatesJakob Lykke Andersen2018-12-161-13/+31
| | | | | | | | Fixes sphinx-doc/sphinx#5496
* | Merge pull request #5819 from jdufresne/coding-commentTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove unnecessary encoding cookie from Python source files
| * | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | | Merge pull request #5813 from jdufresne/reporter-excTakeshi KOMIYA2018-12-171-7/+7
|\ \ \ | | | | | | | | Pass exceptions directly to docutils reporter
| * | | Pass exceptions directly to docutils reporterJon Dufresne2018-12-161-7/+7
| | | | | | | | | | | | | | | | | | | | The docutils reporter supports an exception as an argument. It is converted to a string internally.
* | | | Merge pull request #5814 from jdufresne/str-format-coerceTakeshi KOMIYA2018-12-171-4/+3
|\ \ \ \ | |_|/ / |/| | | Remove redundant coerce to str in string formatting
| * | | Remove redundant coerce to str in string formattingJon Dufresne2018-12-161-4/+3
| |/ / | | | | | | | | | | | | | | | When an object is passed to a string format placeholder '%s', Python will implicitly call str() on the object. This applies to print() and logging as well.
* | | Merge branch '1.8'jfbu2018-12-161-1/+12
|\ \ \ | |/ / |/| / | |/
| * C++, fix parsing of floating point literalsJakob Lykke Andersen2018-12-161-1/+12
| | | | | | | | Fixes sphinx-doc/sphinx#5636
| * Fix flake8 violationTakeshi KOMIYA2018-10-261-1/+1
| |
* | Deprecate UnicodeMixinTakeshi KOMIYA2018-12-161-12/+11
| |
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-107/+108
| |
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-2/+2
| | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-337/+336
| |
* | Replace for-yield-loop by "yield from"Takeshi KOMIYA2018-12-151-3/+2
| |
* | Add 'type: ignore' to avoid type errorsTakeshi KOMIYA2018-12-151-2/+2
| |
* | Add super method; CPPObject.get_index_text()Takeshi KOMIYA2018-12-131-0/+4
| |
* | Fix annotations for cpp domainTakeshi KOMIYA2018-12-041-15/+12
| |
* | Add annotations to cpp domainTakeshi KOMIYA2018-12-041-4/+122
| |
* | Fix annotations of process_link()Takeshi KOMIYA2018-12-031-1/+1
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+1
| |
* | Fix annotations for Directives (Replace N_co with nodes.Node)Takeshi KOMIYA2018-12-011-4/+4
| |
* | Fix annotations for domainsTakeshi KOMIYA2018-11-301-5/+5
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-281-2/+2
| |
* | Merge pull request #5665 from tk0miya/fix_typehintsTakeshi KOMIYA2018-11-261-0/+1
|\ \ | | | | | | Add sphinx.util.typing:unicode to help mypy-3 migration
| * | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| | |
* | | Fix annotations for Domain.resolve_xref()Takeshi KOMIYA2018-11-241-3/+3
| | |
* | | Fix annotations for Domain.process_doc()Takeshi KOMIYA2018-11-241-1/+1
|/ /
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-0/+6
|\ \ | |/
| * C++, fix assertion on multiple duplicate symbolsJakob Lykke Andersen2018-10-111-0/+6
| | | | | | | | | | | | If a symbol was declared more than 2 times, it would crash. Fixes sphinx-doc/sphinx#5496.
* | Remove unnecessary __ne__ definitionsJon Dufresne2018-09-231-4/+0
| | | | | | | | | | | | | | | | | | In Python 3, __ne__ defaults to the inverse of __eq__. From https://docs.python.org/3/reference/datamodel.html#object.__ne__ > By default, __ne__() delegates to __eq__() and inverts the result > unless it is NotImplemented.
* | Prefer https:// links where availableJon Dufresne2018-09-231-3/+3
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-2/+2
|\ \
| * | Remove use of six.iteritems()Jon Dufresne2018-09-111-2/+2
| | | | | | | | | | | | In Python 3, dict.items() is always an iterator.
* | | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-6/+6
|/ / | | | | | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* | Drop APIs deprecated in 2.0Takeshi KOMIYA2018-09-031-1/+1
|/
* C++, properly add (overloaded) symbols and paramsJakob Lykke Andersen2018-08-261-63/+154
| | | | | | | | | - Consider all matching symbols when adding symbols. - Only create a new symbol if no empty symbol is present. - When filling empty symbols, also add template and function parameters. Fixes sphinx-doc/sphinx#5337
* C++, fix UnboundLocalError for overload refs not being found.Jakob Lykke Andersen2018-08-251-0/+1
|
* C++, add support for overload-specific references.Jakob Lykke Andersen2018-08-181-120/+237
| | | | | | The "any" and "func" roles now accepts full function declarations. Fixes #1552
* C++, unify symbol lookup algorithmsJakob Lykke Andersen2018-08-181-112/+136
|
* C++, improve type infoJakob Lykke Andersen2018-08-181-87/+83
|
* C++, add parsing of basic new expressions.Jakob Lykke Andersen2018-08-171-21/+132
|
* C++, add parsing of delete expressions.Jakob Lykke Andersen2018-08-151-3/+54
|
* Fix type check errorJakob Lykke Andersen2018-08-111-1/+1
|
* C++, parse attributes on declerators as well.Jakob Lykke Andersen2018-08-111-8/+39
| | | | Fixes sphinx-doc/sphinx#5187
* C++, fix direct lookup problemJakob Lykke Andersen2018-08-111-16/+29
| | | | | | Also clarify documentation regarding cross-references involving templates. See also sphinx-doc/sphinx#2057
* C++, add missing isPack for some template paramsJakob Lykke Andersen2018-08-111-0/+28
| | | | Fixes sphinx-doc/sphinx#5126
* C++, add support for (most) character literals.Jakob Lykke Andersen2018-08-101-2/+63
| | | | Fixes sphinx-doc/sphinx#5147