This is an archive of the discontinued LLVM Phabricator instance.

Fix false positive with warning -Wnon-c-typedef-for-linkage
ClosedPublic

Authored by rtrieu on May 6 2020, 9:40 PM.

Details

Summary

Fix false positives for -Wnon-c-typedef-for-linkage

Implicit methods for structs can confuse the warning, so exclude checking the Decl's that are implicit. Implicit Decl's for lambdas still need to be checked, so skipping all implicit Decl's won't work.

Diff Detail

Event Timeline

rtrieu created this revision.May 6 2020, 9:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2020, 9:40 PM
rsmith accepted this revision.May 6 2020, 10:19 PM

Looks good, thanks!

This revision is now accepted and ready to land.May 6 2020, 10:19 PM
This revision was automatically updated to reflect the committed changes.