Support code-completion for C++ inline methods and ObjC buffering methods.
Previously we would cut off the source file buffer at the code-completion point; this impeded code-completion inside C++ inline methods and, recently, with buffering ObjC methods. Have the code-completion inserted into the source buffer so that it can be buffered along with a method body. When we actually hit the code-completion point the cut-off lexing or parsing. Fixes rdar://10056932&8319466 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139086 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Lex/Lexer.h 3 additions, 0 deletionsinclude/clang/Lex/Lexer.h
- include/clang/Lex/Preprocessor.h 39 additions, 4 deletionsinclude/clang/Lex/Preprocessor.h
- include/clang/Parse/Parser.h 16 additions, 7 deletionsinclude/clang/Parse/Parser.h
- lib/Lex/Lexer.cpp 62 additions, 36 deletionslib/Lex/Lexer.cpp
- lib/Lex/PPDirectives.cpp 5 additions, 2 deletionslib/Lex/PPDirectives.cpp
- lib/Lex/PPExpressions.cpp 2 additions, 0 deletionslib/Lex/PPExpressions.cpp
- lib/Lex/PPLexerChange.cpp 27 additions, 1 deletionlib/Lex/PPLexerChange.cpp
- lib/Lex/PPMacroExpansion.cpp 8 additions, 23 deletionslib/Lex/PPMacroExpansion.cpp
- lib/Lex/PTHLexer.cpp 1 addition, 1 deletionlib/Lex/PTHLexer.cpp
- lib/Lex/Preprocessor.cpp 25 additions, 26 deletionslib/Lex/Preprocessor.cpp
- lib/Parse/ParseCXXInlineMethods.cpp 5 additions, 0 deletionslib/Parse/ParseCXXInlineMethods.cpp
- lib/Parse/ParseDecl.cpp 6 additions, 10 deletionslib/Parse/ParseDecl.cpp
- lib/Parse/ParseDeclCXX.cpp 10 additions, 6 deletionslib/Parse/ParseDeclCXX.cpp
- lib/Parse/ParseExpr.cpp 15 additions, 13 deletionslib/Parse/ParseExpr.cpp
- lib/Parse/ParseExprCXX.cpp 6 additions, 7 deletionslib/Parse/ParseExprCXX.cpp
- lib/Parse/ParseObjc.cpp 47 additions, 39 deletionslib/Parse/ParseObjc.cpp
- lib/Parse/ParseStmt.cpp 13 additions, 9 deletionslib/Parse/ParseStmt.cpp
- lib/Parse/Parser.cpp 18 additions, 6 deletionslib/Parse/Parser.cpp
- test/CodeCompletion/truncation.c 4 additions, 7 deletionstest/CodeCompletion/truncation.c
- test/Index/complete-at-exprstmt.m 0 additions, 1 deletiontest/Index/complete-at-exprstmt.m
Loading
Please register or sign in to comment