mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
CPP: Add a scoped enum example.
This commit is contained in:
@@ -2,11 +2,16 @@ import semmle.code.cpp.Type
|
||||
private import semmle.code.cpp.internal.ResolveClass
|
||||
|
||||
/**
|
||||
* A C/C++ enum [N4140 7.2]. For example, the type `MyEnum` in:
|
||||
* A C/C++ enum [N4140 7.2]. For example, the types `MyEnum` and
|
||||
* `MyScopedEnum` in:
|
||||
* ```
|
||||
* enum MyEnum {
|
||||
* MyEnumConstant
|
||||
* };
|
||||
*
|
||||
* enum class MyScopedEnum {
|
||||
* MyScopedEnumConstant
|
||||
* };
|
||||
* ```
|
||||
* This includes C++ scoped enums, see the `ScopedEnum` QL class.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user