CPP: Add a scoped enum example.

This commit is contained in:
Geoffrey White
2019-08-29 15:38:17 +01:00
parent abd4d39710
commit a84f19238b

View File

@@ -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.
*/