Introduced a backwards scanner for finding expression under cursor
The backwards scanner lazily tokenizes strings. This optimizes the common case where scanning one or two lines is enough while at the same time we extended the limit from 5 to 10 lines. Reviewed-by: Roberto Raggi
Showing
- src/libs/cplusplus/ExpressionUnderCursor.cpp 102 additions, 73 deletionssrc/libs/cplusplus/ExpressionUnderCursor.cpp
- src/libs/cplusplus/ExpressionUnderCursor.h 3 additions, 7 deletionssrc/libs/cplusplus/ExpressionUnderCursor.h
- src/libs/cplusplus/SimpleLexer.h 7 additions, 0 deletionssrc/libs/cplusplus/SimpleLexer.h
Loading
Please register or sign in to comment