diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-12-04 02:45:28 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-12-04 02:45:28 +0000 |
commit | a4ca4ca29374008401106ee714c7a72bff67555a (patch) | |
tree | 1ef9004d746bad5ce1939c06429a3deb3ec16824 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallBuiltinFunction.py | |
parent | 55840d10f50836b74c9d3a88f671a838d2af74cf (diff) | |
download | bcm5719-llvm-a4ca4ca29374008401106ee714c7a72bff67555a.tar.gz bcm5719-llvm-a4ca4ca29374008401106ee714c7a72bff67555a.zip |
Fix -Wmismatched-tags to not warn on redeclarations of structs in system
headers.
Previously, we would only check whether the new declaration is in a
system header, but that requires the user to be able to correctly guess
whether a declaration in a system header is declared as a struct or a
class when specializing standard library traits templates.
We now entirely ignore declarations for which the warning was disabled
when determining whether to warn on a tag mismatch.
Also extend the diagnostic message to clarify that
a) code containing such a tag mismatch is in fact valid and correct,
and
b) the (non-coding-style) reason to emit such a warning is that the
Microsoft C++ ABI is broken and includes the tag kind in decorated
names,
as it seems a lot of users are confused by our diagnostic here (either
not understanding why we produce it, or believing that it represents an
actual language rule).
llvm-svn: 348233
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallBuiltinFunction.py')
0 files changed, 0 insertions, 0 deletions