From 9bf40e4a91f6a792c3279d9184b67451cf58bf49 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Dec 2015 18:02:40 +0200 Subject: Add --std option with c++{98,11,14} values; use function-static in C++11 This way we can use option descriptions during static initialization (e.g., of an Apache module). --- cli/options.cli | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cli/options.cli') diff --git a/cli/options.cli b/cli/options.cli index 9554d10..0f0d1a9 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -12,6 +12,8 @@ include ; include ; include ; +include "option-types.hxx"; + class options { bool --help {"Print usage information and exit."}; @@ -29,6 +31,13 @@ class options "Write the generated files to instead of the current directory." }; + cxx_version --std = cxx_version::cxx98 + { + "", + "Specify the C++ standard that should be used during compilation. + Valid values are \cb{c++98} (default), \cb{c++11}, and \cb{c++14}." + }; + bool --generate-modifier { "Generate option value modifiers in addition to accessors." -- cgit v1.1