mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-25 02:20:04 +08:00
26 lines
411 B
C++
Vendored
26 lines
411 B
C++
Vendored
enum class Foo{
|
|
a,
|
|
// ^ @constant
|
|
aa,
|
|
// ^ @constant
|
|
C,
|
|
// ^ @constant
|
|
};
|
|
|
|
void foo(Foo f){
|
|
switch ( f ) {
|
|
case Foo::a:
|
|
// ^ @type
|
|
// ^ @namespace
|
|
// ^ @constant
|
|
break;
|
|
case Foo::aa:
|
|
// ^ @constant
|
|
break;
|
|
case Foo::C:
|
|
// ^ @constant
|
|
break;
|
|
default:
|
|
}
|
|
}
|