mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
CPP: Brace placement.
This commit is contained in:
@@ -109,7 +109,8 @@ class NestedEnum extends Enum {
|
|||||||
* A C++ scoped enum, that is, an enum whose constants must be qualified with
|
* A C++ scoped enum, that is, an enum whose constants must be qualified with
|
||||||
* the name of the enum. For example, the type `Color` in:
|
* the name of the enum. For example, the type `Color` in:
|
||||||
* ```
|
* ```
|
||||||
* enum class Color {
|
* enum class Color
|
||||||
|
* {
|
||||||
* red,
|
* red,
|
||||||
* blue
|
* blue
|
||||||
* }
|
* }
|
||||||
@@ -128,7 +129,8 @@ class ScopedEnum extends Enum {
|
|||||||
*
|
*
|
||||||
* For example the enumeration constant `green` in:
|
* For example the enumeration constant `green` in:
|
||||||
* ```
|
* ```
|
||||||
* enum {
|
* enum
|
||||||
|
* {
|
||||||
* red,
|
* red,
|
||||||
* green,
|
* green,
|
||||||
* blue
|
* blue
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ from Element e
|
|||||||
where not e instanceof BuiltInType
|
where not e instanceof BuiltInType
|
||||||
and not e instanceof Specifier
|
and not e instanceof Specifier
|
||||||
and not e instanceof Folder
|
and not e instanceof Folder
|
||||||
select e
|
select e, concat(e.getAQlClass(), ", ")
|
||||||
|
|||||||
Reference in New Issue
Block a user