[cfe-dev] find out which C++ standard version was selected on the command line
David Blaikie via cfe-dev
cfe-dev at lists.llvm.org
Fri Jan 24 19:49:47 PST 2020
The __cplusplus preprocessor macro can be used to detect which C++ standard
is in use ( see: https://en.cppreference.com/w/cpp/preprocessor/replace and
https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/preprocessor/macros/predefined/__cplusplus
)
On Fri, Jan 24, 2020 at 5:38 PM Jerry Scharf via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> We want to make some code that can look at which c++ standard was
> specified on the command line. Our looking didn't seem to show a
> predefined value for this. Where is this defined?
>
> tia,
>
> jerry
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200124/ee5013e7/attachment.html>
More information about the cfe-dev
mailing list