File tree Expand file tree Collapse file tree
Units/parser-cxx.r/scope-of-using-in-lambda-in-enum.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ --sort=no
2+ --extras=+q
Original file line number Diff line number Diff line change 1+ e input.cpp /^enum e {$/;" g file:
2+ __anon92a0b9a90102 input.cpp /^ x = [] {$/;" f enum:e file:
3+ T3 input.cpp /^ using T3 = int;$/;" t function:e::__anon92a0b9a90102 typeref:typename:int file:
4+ x input.cpp /^ x = [] {$/;" e enum:e file:
5+ main input.cpp /^int main(void)$/;" f typeref:typename:int
Original file line number Diff line number Diff line change 1+ enum e {
2+ x = [] {
3+ using T3 = int ;
4+ return 1 ;
5+ }()
6+ };
7+
8+
9+ int main (void )
10+ {
11+ return e::x;
12+ }
Original file line number Diff line number Diff line change 1+ cxx20+module
Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ int cxxTagCommit(int *piCorkQueueIndexFQ)
803803 // If the scope kind is enumeration then we need to remove the
804804 // last scope part. This is what old ctags did.
805805 if (cxxScopeGetSize () < 2 )
806- return -1 ; // toplevel enum
806+ return CORK_NIL ; // toplevel enum
807807
808808 x = cxxScopeGetFullNameExceptLastComponentAsString ();
809809 CXX_DEBUG_ASSERT (x ,"Scope with size >= 2 should have returned a value here" );
You can’t perform that action at this time.
0 commit comments