llvm-project/clang/lib/Index
Martin Bohme d5f94a6a59 Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture().
Summary:
rL277342 made RecursiveASTVisitor visit lambda capture initialization
expressions (these are the Exprs in LambdaExpr::capture_inits()).

jdennett identified two issues with rL277342 (see comments there for details):

- It visits initialization expressions for implicit lambda captures, even if
  shouldVisitImplicitCode() returns false.

- It visits initialization expressions for init captures twice (because these
  were already traveresed in TraverseLambdaCapture() before rL277342)

This patch fixes these issues and moves the code for traversing initialization
expressions into TraverseLambdaCapture().

This patch also makes two changes required for the tests:

- It adds Lang_CXX14 to the Language enum in TestVisitor.

- It adds a parameter to ExpectedLocationVisitor::ExpectMatch() that specifies
  the number of times a match is expected to be seen.

Reviewers: klimek, jdennett, alexfh

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D23204

llvm-svn: 278933
2016-08-17 14:59:53 +00:00
..
CMakeLists.txt clangIndex requires LLVMIR as Core, since r260858 uses llvm/IR. 2016-02-15 04:29:36 +00:00
CodegenNameGenerator.cpp Make TargetInfo store an actual DataLayout instead of a string. 2016-03-04 19:00:41 +00:00
CommentToXML.cpp Reduce the number of implicit StringRef->std::string conversions by threading StringRef through more APIs. 2016-02-13 13:42:54 +00:00
IndexBody.cpp Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture(). 2016-08-17 14:59:53 +00:00
IndexDecl.cpp Use more ArrayRefs 2016-06-24 04:05:48 +00:00
IndexSymbol.cpp [index] Add SymbolSubKinds for ObjC IB annotations. 2016-04-22 07:21:16 +00:00
IndexTypeSourceInfo.cpp [libclang] Separate the underlying indexing functionality of libclang and introduce it into the clangIndex library. 2016-02-12 23:10:59 +00:00
IndexingAction.cpp [index] Factor libclang's functionality to determing the mangled name of symbols into the clangIndex library. 2016-02-14 22:30:14 +00:00
IndexingContext.cpp [index] Index system ImportDecls even when there is a DeclarationsOnly filter 2016-07-14 18:51:55 +00:00
IndexingContext.h [index] Change some default parameters to fix an MSVC ICE. 2016-02-13 05:17:15 +00:00
SimpleFormatContext.h [VFS] Port SimpleFormatContext to InMemoryFileSystem. 2015-10-06 10:23:34 +00:00
USRGeneration.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00