summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/cxx11-lambdas.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Index] Index paremeters in lambda expressions.Haojian Wu2018-12-191-0/+3
| | | | | | | | | | | | Summary: This fixes clangd couldn't find references for lambda parameters. Reviewers: ilya-biryukov Subscribers: ioeric, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D55437 llvm-svn: 349626
* [AST] Unify the code paths of traversing lambda expressions.Haojian Wu2018-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | Summary: This supposes to be a non-functional change. We have two code paths when traversing lambda expressions: 1) traverse the function proto typeloc when parameters and return type are explicit; 2) otherwise fallback to traverse parameter decls and return type loc individually; This patch unifies the code path to always traverse parameters and return type, rather than relying on traversing the full type-loc. Reviewers: ilya-biryukov Subscribers: arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D55820 llvm-svn: 349494
* [libclang] Use same USR encoding for 'class' as 'struct'.Argyrios Kyrtzidis2014-12-081-1/+1
| | | | | | | | 'class' and 'struct' can be used interchangebly for forward references. Use the same encoding otherwise we may get into a weird situation where the USR for the same declaration is different based on whether the definition of the tag reference is visible or not. llvm-svn: 223632
* [Index] Make the USRs more stable.Argyrios Kyrtzidis2014-02-231-2/+2
| | | | | | | | | - Only include offsets with local (in function scope) symbols, where we don't encode scoping - Only include the filename with non-system symbols. Presumably the system headers will not provide conflicting definitions. rdar://15976823 llvm-svn: 201990
* Implement indexing support for lambdas in libclang (both kinds), asDouglas Gregor2012-02-151-0/+33
well as improving the RecursiveASTVisitor's walk of lambda expressions. llvm-svn: 150549
OpenPOWER on IntegriCloud