diff --git a/cpp/ql/src/semmle/code/cpp/Function.qll b/cpp/ql/src/semmle/code/cpp/Function.qll index b4bc36ab8a3..09d0f6be254 100644 --- a/cpp/ql/src/semmle/code/cpp/Function.qll +++ b/cpp/ql/src/semmle/code/cpp/Function.qll @@ -892,7 +892,8 @@ class PureVirtualFunction extends VirtualFunction { * { * ... * - * int day() const { + * int day() const + * { * return d; * } * @@ -1292,7 +1293,8 @@ class MoveAssignmentOperator extends Operator { * the function `myTemplateFunction` in the following code: * ``` * template - * void myTemplateFunction(T t) { + * void myTemplateFunction(T t) + * { * ... * } * ``` @@ -1337,11 +1339,13 @@ class TemplateFunction extends Function { * the instantiation `myTemplateFunction` in the following code: * ``` * template - * void myTemplateFunction(T t) { + * void myTemplateFunction(T t) + * { * ... * } * - * void caller(int i) { + * void caller(int i) + * { * myTemplateFunction(i); * } * ``` @@ -1370,7 +1374,8 @@ class FunctionTemplateInstantiation extends Function { * function `myTemplateFunction` in the following code: * ``` * template - * void myTemplateFunction(T t) { + * void myTemplateFunction(T t) + * { * ... * } *