Click to see the query in the CodeQL repository
This rule finds switch statements that switch on values of an enumeration type but do not provide cases for all the enumeration constants or a default case. This is an indication that there may be cases unhandled by the switch statement.
Provide a case for every enumeration constant, or introduce a default case if several constants should be treated the same way.
Tutorialspoint - The C++ Programming Language: C++ switch statement
MSDN Library: switch statement (C++)
M. Henricson and E. Nyquist, Industrial Strength C++, Chapter 4: Control Flow, Rec 4.5. Prentice Hall PTR, 1997 (available online).
Common Weakness Enumeration: CWE-478.