Skip to content

Commit 950bc6e

Browse files
committed
CPP: Brace placement.
1 parent 2466299 commit 950bc6e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cpp/ql/src/semmle/code/cpp/Enum.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ class NestedEnum extends Enum {
109109
* A C++ scoped enum, that is, an enum whose constants must be qualified with
110110
* the name of the enum. For example, the type `Color` in:
111111
* ```
112-
* enum class Color {
112+
* enum class Color
113+
* {
113114
* red,
114115
* blue
115116
* }
@@ -128,7 +129,8 @@ class ScopedEnum extends Enum {
128129
*
129130
* For example the enumeration constant `green` in:
130131
* ```
131-
* enum {
132+
* enum
133+
* {
132134
* red,
133135
* green,
134136
* blue

cpp/ql/test/library-tests/lambdas/captures/elements.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ from Element e
44
where not e instanceof BuiltInType
55
and not e instanceof Specifier
66
and not e instanceof Folder
7-
select e
7+
select e, concat(e.getAQlClass(), ", ")

0 commit comments

Comments
 (0)