This is an archive of the discontinued LLVM Phabricator instance.

[c++2a] Add option -std=c++2a to enable support for potential/transitional C++2a features
ClosedPublic

Authored by faisalv on Jul 15 2017, 10:06 AM.

Details

Summary

At the optimistic least, I'm hoping to get around to adding support for familiar template syntax to lambdas and vaopt to the preprocessor, under it.

Diff Detail

Event Timeline

faisalv created this revision.Jul 15 2017, 10:06 AM
faisalv updated this revision to Diff 106777.Jul 15 2017, 10:10 AM

Remove some erroneously included fragments (patches to Sema) of a future potential patch.

Has GCC picked the same name for their language standard? I want to make sure we're consistent there (and think this is the correct name).

Hmm - good point - not sure about the best way to confirm that...

I'm fairly sure Jason said something during a discussion with me (about the additional template syntax to lambdas) in which he referred to gcc as already having a "C++2a feature" - and so i just inferred that that's what they were calling it ...

aaron.ballman accepted this revision.Jul 15 2017, 2:22 PM

LGTM with a small commenting nit.

lib/Frontend/InitPreprocessor.cpp
377

Missing full stop at the end of the comment.

This revision is now accepted and ready to land.Jul 15 2017, 2:22 PM
faisalv closed this revision.Jul 15 2017, 5:24 PM
faisalv marked an inline comment as done.

Committed here https://reviews.llvm.org/rL308118

Thanks!