llvm-project/clang/unittests
James Dennett ddd36fff49 Expose LambdaIntroducer::DefaultLoc in the AST's LambdaExpr.
Summary:
Source-centric tools need access to the location of a C++11
lambda expression's capture-default ('&' or '=') when it's present.
It's possible for them to find it by re-lexing and re-implementing
rules that Clang's parser has already applied, but the cost of storing
the SourceLocation and making it available to them is 32 bits per
LambdaExpr (a small delta, proportionally), and the simplification in
client code is significant.

Reviewers: rsmith

Reviewed By: rsmith

CC: cfe-commits, klimek, revane

Differential Revision: http://llvm-reviews.chandlerc.com/D1192

llvm-svn: 188121
2013-08-09 23:08:25 +00:00
..
AST Fix source range of implicitly instantiated friend declaration. 2013-07-19 18:02:36 +00:00
ASTMatchers Fix crash when encountering alias templates in isDerivedFrom matches. 2013-08-02 21:24:09 +00:00
Basic Use llvm::sys::fs::UniqueID for windows and unix. 2013-08-01 21:42:11 +00:00
Format Revert r187935 "Support for double width characters." 2013-08-08 02:19:56 +00:00
Frontend [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
Lex Include Path.h instead of PathV2.h. 2013-06-11 22:15:02 +00:00
Tooling Expose LambdaIntroducer::DefaultLoc in the AST's LambdaExpr. 2013-08-09 23:08:25 +00:00
CMakeLists.txt Turn CLANG_ENABLE_{ARCMT,REWRITER,STATIC_ANALYZER} into proper options so that 2013-05-29 21:09:18 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00