From 28f737a15d9ce5d9e8b06ab768ef858c07ae510e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Sep 2023 15:20:13 +0300 Subject: Make c++11 value default for xsd --std option Also add support for c++14, c++17, c++20, and c++23 values and drop passing --std option in tests and examples. --- xsd/doc/cxx/tree/guide/index.xhtml.in | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'xsd/doc/cxx/tree/guide/index.xhtml.in') diff --git a/xsd/doc/cxx/tree/guide/index.xhtml.in b/xsd/doc/cxx/tree/guide/index.xhtml.in index b704e50..2f7f1e2 100644 --- a/xsd/doc/cxx/tree/guide/index.xhtml.in +++ b/xsd/doc/cxx/tree/guide/index.xhtml.in @@ -536,7 +536,7 @@

-$ xsd cxx-tree --std c++11 hello.xsd
+$ xsd cxx-tree hello.xsd
   

The XSD compiler produces two C++ files: hello.hxx and @@ -633,7 +633,7 @@ hello (std::istream&); select C++98:

-$ xsd cxx-tree hello.xsd
+$ xsd cxx-tree --std c++98 hello.xsd
   

Then the parsing function signatures will become:

@@ -726,7 +726,7 @@ Hello, world! it with the --generate-serialization options:

-$ xsd cxx-tree --std c++11 --generate-serialization hello.xsd
+$ xsd cxx-tree --generate-serialization hello.xsd
   

If we now examine the generated hello.hxx file, @@ -911,7 +911,7 @@ main (int argc, char* argv[]) change the type naming scheme:

-$ xsd cxx-tree --std c++11 --type-naming ucc hello.xsd
+$ xsd cxx-tree --type-naming ucc hello.xsd
   

The ucc argument to the --type-naming @@ -978,8 +978,7 @@ hello (std::istream&); --type-regex option:

-$ xsd cxx-tree --std c++11 --type-naming ucc \
-      --type-regex '/ (.+)_t/\u$1/' hello.xsd
+$ xsd cxx-tree --type-naming ucc --type-regex '/ (.+)_t/\u$1/' hello.xsd
   

This results in the following changes to the generated code:

@@ -1114,8 +1113,7 @@ hello (std::istream&); our schema with the --generate-doxygen option:

-$ xsd cxx-tree --std c++11 --generate-serialization --generate-doxygen \
-      hello.xsd
+$ xsd cxx-tree --generate-serialization --generate-doxygen hello.xsd
   

Now the generated hello.hxx file contains comments -- cgit v1.1