This is an archive of the discontinued LLVM Phabricator instance.

Don't suppress warning about dllimport on non-functions and variables
ClosedPublic

Authored by hans on May 19 2014, 4:58 PM.

Details

Summary

This warning suppression in MS extensions mode was added by Ted in r96722.

It's true that MSVC doesn't warn about dllimport when applied to e.g. a typedef, but that applies to dllexport too. I would like us to be consistent between the two attributes, and I think the right thing to do is to warn. Ted: is there still a need to suppress this warning? (If yes, I'd like to make it consistent and suppress the warning for dllexport too).

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 9592.May 19 2014, 4:58 PM
hans retitled this revision from to Don't suppress warning about dllimport on non-functions and variables.
hans updated this object.
hans edited the test plan for this revision. (Show Details)
hans added reviewers: krememek, rnk.
hans added subscribers: Unknown Object (MLST), hansw.
hans closed this revision.May 23 2014, 1:24 PM
hans updated this revision to Diff 9773.

Closed by commit rL209546 (authored by @hans).

cfe/trunk/lib/Sema/SemaDeclAttr.cpp