C++: fixed completion in braceless statements following a control statement.
- Changed generator to generate: - Changed AST::lastToken to return 1 if there is none - Changed Bind.cpp to set the scope of the block following a control statement to extend upto (and not including) the first token after the block. So basically, including any whitespace after the control statement. Reviewed-by: Roberto Raggi
Showing
- src/libs/cplusplus/ASTPath.cpp 3 additions, 1 deletionsrc/libs/cplusplus/ASTPath.cpp
- src/plugins/cppeditor/cpprefactoringchanges.cpp 3 additions, 4 deletionssrc/plugins/cppeditor/cpprefactoringchanges.cpp
- src/shared/cplusplus/AST.cpp 153 additions, 153 deletionssrc/shared/cplusplus/AST.cpp
- src/shared/cplusplus/Bind.cpp 21 additions, 21 deletionssrc/shared/cplusplus/Bind.cpp
- src/tools/cplusplus/generate-ast.cpp 3 additions, 2 deletionssrc/tools/cplusplus/generate-ast.cpp
Loading
Please register or sign in to comment