See the added test for some new cases.
This change also removes special code completion calls inside the
ParseExpressionList function now that we properly propagate expected
type to the function responsible for parsing elements of the expression list
(ParseAssignmentExpression).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 28506 Build 28505: arc lint + arc unit
Event Timeline
clang/include/clang/Sema/Sema.h | ||
---|---|---|
294 | Is it only to avoid copy costs? | |
clang/lib/Parse/ParseDeclCXX.cpp | ||
3490 | IIUC, deleting this call is safe, since it is going to be called in ParseAssignmentExpression. Could you add a comment stating that?(same for other deleted call sites of this function.) | |
clang/unittests/Sema/CodeCompleteTest.cpp | ||
457 | Can you also try in the middle of an identifier, like vec^tor() | |
458 | maybe add a test for second parameter as well? |
clang/lib/Sema/SemaCodeComplete.cpp | ||
---|---|---|
494 | Typo? |
- Check in the middle and at the end of identifiers.
- Add a test for the second parameter and a class member function
clang/include/clang/Sema/Sema.h | ||
---|---|---|
294 | Using std::function won't help much, all functions we pass here actually capture local variables by reference. | |
clang/lib/Parse/ParseDeclCXX.cpp | ||
3490 | Exactly! I changed the description of the change instead of adding a comment. |
Is it only to avoid copy costs?