mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 22:50:22 -05:00
C, C++, do not recurse in anon symbols on addition
This commit is contained in:
1 parent
6be31aa05c
commit
67e5edde6d
6 files changed
+29
-2
No files matched your search
@@ -913,6 +913,15 @@ def test_build_domain_cpp_backslash_ok(app, status, warning):
|
||||
assert "WARNING: Parsing of expression failed. Using fallback parser." in ws[0]
|
||||
|
||||
|
||||
@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True})
|
||||
def test_build_domain_cpp_anon_dup_decl(app, status, warning):
|
||||
app.builder.build_all()
|
||||
ws = filter_warnings(warning, "anon-dup-decl")
|
||||
assert len(ws) == 2
|
||||
assert "WARNING: cpp:identifier reference target not found: @a" in ws[0]
|
||||
assert "WARNING: cpp:identifier reference target not found: @b" in ws[1]
|
||||
|
||||
|
||||
@pytest.mark.sphinx(testroot='domain-cpp')
|
||||
def test_build_domain_cpp_misuse_of_roles(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
Reference in new issue
Block a user