This is an archive of the discontinued LLVM Phabricator instance.

Downgrade the error about nested name specifiers when building with Microsoft extensions
AbandonedPublic

Authored by ehsan on Jun 27 2014, 6:33 PM.

Details

Reviewers
rnk
Summary

Diff Detail

Event Timeline

ehsan updated this revision to Diff 10954.Jun 27 2014, 6:33 PM
ehsan retitled this revision from to Downgrade the error about nested name specifiers when building with Microsoft extensions.
ehsan updated this object.
ehsan edited the test plan for this revision. (Show Details)
ehsan added a reviewer: rnk.
ehsan added a subscriber: Unknown Object (MLST).
ehsan updated this revision to Diff 10964.Jun 28 2014, 9:06 AM

Renamed the variable to ext_...

Usually we only downgrade this kind of error if it was blocking a system header, code that was automatically generated by some sort of IDL, or if it is impractical to change the code in some other way. Is that the case here?

It's preferable, in my eyes, to keep it an error so that programmers make their code conforming instead of just ignoring another warning fly by on their terminal.

I don't think clang-cl should mirror every bug in cl, just the important ones.

rnk edited edge metadata.Jun 28 2014, 2:07 PM

I'd echo what David said, but otherwise, this seems fine.

lib/Sema/SemaDecl.cpp
3290

We use LangOpts.MSVCCompat to control these language bending extensions.

We hit this error in our code and I have since fixed the code on our side.
I'm not aware of any system headers or generate code that hits this.

Based on that, should we can this patch?

Ehsan
http://ehsanakhgari.org/

ehsan abandoned this revision.Jun 30 2014, 12:57 PM

We decided to can this.