From 23776c529002d3ae6b78332e115a242c24ea3dff Mon Sep 17 00:00:00 2001 From: zlaski Date: Tue, 13 Aug 2019 17:18:10 -0700 Subject: [PATCH] [CPP-386] Minor tweaks. --- .../learn-ql/cpp/introduce-libraries-cpp.rst | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/ql-documentation/learn-ql/cpp/introduce-libraries-cpp.rst b/docs/ql-documentation/learn-ql/cpp/introduce-libraries-cpp.rst index 4faa61e291d..fe7d3a2db15 100644 --- a/docs/ql-documentation/learn-ql/cpp/introduce-libraries-cpp.rst +++ b/docs/ql-documentation/learn-ql/cpp/introduce-libraries-cpp.rst @@ -165,11 +165,11 @@ This table lists subclasses of `Stmt `__ ``;`` | `GotoStmt `__ | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``someLabel`` **:** | `LabelStmt `__ | | +| **someLabel** **:** | `LabelStmt `__ | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **__try** ``{`` ... ``}`` **__except** ``(`` `Expr `__ ``)`` ``{`` ... ``}`` | `MicrosoftTryExceptStmt `__ | Structured exception handling (SEH) under Windows | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| **__try**` ``{`` ... ``}`` **__finally** ``{`` ... ``}`` | `MicrosoftTryFinallyStmt `__ | Structured exception handling (SEH) under Windows | +| **__try** ``{`` ... ``}`` **__finally** ``{`` ... ``}`` | `MicrosoftTryFinallyStmt `__ | Structured exception handling (SEH) under Windows | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **return** `Expr `__ ``;`` | `ReturnStmt `__ | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -177,7 +177,7 @@ This table lists subclasses of `Stmt `__... ``}`` `CatchBlock `__ ... `CatchAnyBlock `__ | `TryStmt `__ | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``void ``foo`` ()`` **try** ``{`` `Stmt `__ ... ``}`` `CatchBlock `__ ... `CatchAnyBlock `__ | `FunctionTryStmt `__ | | +| ``void`` **function** ``()`` **try** ``{`` `Stmt `__ ... ``}`` `CatchBlock `__ ... `CatchAnyBlock `__ | `FunctionTryStmt `__ | | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``float a`` **[** `Expr `__ **]** **[** `Expr `__ **]** ``;`` | `VlaDeclStmt `__ | C99 variable-length array | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -207,7 +207,7 @@ This table lists subclasses of `Expr `__ ... ``);`` | `VariableCall `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| **func** ``(`` `Expr `__ ... ``);`` ... *class_instance* ``->`` *member_func* ``(`` `Expr `__ ... ``);`` | `FunctionCall `__ | | +| **func** ``(`` `Expr `__ ... ``);`` ... **class_instance** **->** **member_func** ``(`` `Expr `__ ... ``);`` | `FunctionCall `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | `Expr `__ **,** `Expr `__ | `CommaExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -229,7 +229,7 @@ This table lists subclasses of `Expr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``template`` ``<`` ``typename`` ``...`` *Foo* ``>`` ``auto sum( Foo`` ``...`` ``foo)`` ``{`` ``return`` ``(`` **foo** **+** **...** **+** **0** ``)`` ``}`` | `FoldExpr `__ | | +| ``template`` ``<`` **typename** **...** ``Foo`` ``>`` ``auto sum(`` **Foo** **...** ``foo)`` ``{`` ``return`` ``(`` **foo** **+** **...** **+** **0** ``)`` ``}`` | `FoldExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``printf`` ``(`` **format** ``,`` ``...`` ``);`` | `FormattingFunctionCall `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -285,19 +285,19 @@ This table lists subclasses of `Expr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| *float* ``complex`` ``a`` ``;`` *float* ``imaginary`` ``b``; ... *float* ``complex`` ``c`` ``=`` ``a`` ``/`` ``b`` ``;`` | `ImaginaryDivExpr `__ | C99 | +| ``float`` **complex** ``a`` ``;`` ``float`` **imaginary** ``b``; ... ``float`` **complex** ``c`` ``=`` ``a`` **/** ``b`` ``;`` | `ImaginaryDivExpr `__ | C99 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| *float* ``complex`` ``a`` ``;`` *float* ``imaginary`` ``b``; ... *float* ``complex`` ``c`` ``=`` ``a`` ``*`` ``b`` ``;`` | `ImaginaryMulExpr `__ | C99 | +| ``float`` **complex** ``a`` ``;`` ``float`` **imaginary** ``b``; ... ``float`` **complex** ``c`` ``=`` ``a`` ***** ``b`` ``;`` | `ImaginaryMulExpr `__ | C99 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| *float* ``imaginary`` ``a`` ``;`` *float b* ``;`` ... *float c* ``=`` ``a`` ``+`` ``b`` ``;`` | `ImaginaryRealAddExpr `__ | C99 | +| ``float`` **imaginary** ``a`` ``;`` ``float b`` ``;`` ... ``float c`` ``=`` ``a`` **+** ``b`` ``;`` | `ImaginaryRealAddExpr `__ | C99 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| *float* ``imaginary`` ``a`` ``;`` *float b* ``;`` ... *float c* ``=`` ``a`` ``-`` ``b`` ``;`` | `ImaginaryRealSubExpr `__ | C99 | +| ``float`` **imaginary** ``a`` ``;`` ``float b`` ``;`` ... ``float c`` ``=`` ``a`` **-** ``b`` ``;`` | `ImaginaryRealSubExpr `__ | C99 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``c`` ``=`` ``max`` (`` ``a`` ``,`` ``b`` ``)`` ``;`` | `MaxExpr `__ | | +| ``c`` ``=`` **max** ``(`` ``a`` ``,`` ``b`` ``)`` ``;`` | `MaxExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``c`` ``=`` ``min`` (`` ``a`` ``,`` ``b`` ``)`` ``;`` | `MinExpr `__ | | +| ``c`` ``=`` **min** ``(`` ``a`` ``,`` ``b`` ``)`` ``;`` | `MinExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``c`` ``=`` ``a`` ``*`` ``b`` ``;`` | `MulExpr `__ | | +| ``c`` ``=`` ``a`` ***** ``b`` ``;`` | `MulExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | `Type `__ ``*`` ``ptr`` ``=`` ``oldptr`` **+** `Expr `__ ``;`` | `PointerAddExpr `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -387,7 +387,7 @@ This table lists subclasses of `Expr `__ ``)`` *or* **typeid** ``(`` `Type `__ ``)`` | `TypeidOperator `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| ``__uuidof`` ``(`` `Expr `__ ``)`` | `UuidofOperator `__ | Microsoft extension | +| **__uuidof** ``(`` `Expr `__ ``)`` | `UuidofOperator `__ | Microsoft extension | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ @@ -405,7 +405,7 @@ This table lists subclasses of `Type `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| **_Bool** or **bool** | `BoolType `__ | | +| **_Bool** *or* **bool** | `BoolType `__ | | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **char16_t** | `Char16Type `__ | GNU extension | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+