correctly set location for cpp domain log

"Duplicate declarion" warning, name variant is missing the location=
specifier causing string formatting to fail

closes #4962
This commit is contained in:
Melvin Vermeeren 2018-05-12 22:39:49 +02:00
parent 1e631b3fa4
commit 071db1ecbc
No known key found for this signature in database
GPG Key ID: 462C109D3AC7B859

View File

@ -6055,7 +6055,7 @@ class CPPDomain(Domain):
msg = "Duplicate declaration, also defined in '%s'.\n"
msg += "Name of declaration is '%s'."
msg = msg % (ourNames[name], name)
logger.warning(msg, docname)
logger.warning(msg, location=docname)
else:
ourNames[name] = docname