This documentation is archived and is not being maintained.

XDCMake Warning XDC0012

Creating new tag with same attributes but different content: text

This warning reports that comments for multiple <exception> tags for the same member (in source code) resulted in multiple <exception> tags in the .xml file. If <exception> tags have identical attributes and identical content, no warning is given and no duplicate tags are created.

For more information, see XDCMake.

The following sample generates XDC0012:

// xdc0012_a.xdc
<doc>
<members>
<member name="T:MyClass" decl="true" source="c:\test1.cpp" line="6">
   <exception cref="MyException">User-defined exception</exception>
</member>
</members>
</doc>

and then,

// xdc0012_b.xdc
// compile with: xdc0012_a.xdc xdc0012_b.xdc
// XDC0012 expected
<?xml version="1.0"?>
<doc>
<members>
<member name="T:MyClass" decl="false" source="c:\test2.cpp" line="6">
   <exception cref="MyException">Another exception</exception>
</member>
</members>
</doc>
Show: