enum: Clarify behavior for omitted values after range
[ctf.git] / common-trace-format-specification.txt
index 27da4c42d4b6b9ec492c94d03ad03ff6f05f109d..e0944b5d84b6491e33c6e9c0b6b889b0751b845b 100644 (file)
@@ -358,7 +358,8 @@ enum name : integer_type {
 };
 
 If the values are omitted, the enumeration starts at 0 and increment of 1 for
-each entry:
+each entry. An entry with omitted value that follows a range entry takes
+as value the end_value of the previous range + 1:
 
 enum name : unsigned int {
   ZERO,
This page took 0.022173 seconds and 4 git commands to generate.