This is an archive of the discontinued LLVM Phabricator instance.

MS local statics mangling: don't count enum scopes
ClosedPublic

Authored by hans on Jun 16 2014, 2:24 PM.

Details

Summary

We may not have the mangling for static locals vs. enums completely figured out, but at least for my simple test cases, enums should not increment the mangling number.

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 10458.Jun 16 2014, 2:24 PM
hans retitled this revision from to MS local statics mangling: don't count enum scopes.
hans updated this object.
hans edited the test plan for this revision. (Show Details)
hans added a reviewer: majnemer.
hans added subscribers: Unknown Object (MLST), hansw.
majnemer accepted this revision.Jun 16 2014, 3:33 PM
majnemer edited edge metadata.

LGTM

include/clang/Sema/Scope.h
116 ↗(On Diff #10458)

Please make this enumerator end with a comma, it will make the history nicer in the future when somebody else needs to add something here.

This revision is now accepted and ready to land.Jun 16 2014, 3:33 PM
hans added inline comments.Jun 16 2014, 3:38 PM
include/clang/Sema/Scope.h
116 ↗(On Diff #10458)

I guess this is legal now that we're using C++11, and I see the motivation, but do we generally do this in Clang or LLVM? I feel like I've seen other enumerations ending with a comma.

hans added inline comments.Jun 16 2014, 5:02 PM
include/clang/Sema/Scope.h
116 ↗(On Diff #10458)

Some people expressed that they like having the comma there, so I'll add it.

hans closed this revision.Jun 16 2014, 5:08 PM
hans updated this revision to Diff 10470.

Closed by commit rL211078 (authored by @hans).