summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJames Dennett <jdennett@google.com>2013-08-09 23:08:25 +0000
committerJames Dennett <jdennett@google.com>2013-08-09 23:08:25 +0000
commitf68af647dda5cca00b49be27d24f62b0a7fff986 (patch)
treeab688e317b5e82136cced94f9b7fb0d39e8f5648 /lib/CodeGen/CodeGenModule.h
parent1ab77787facddc97fec67175d96a77a0233c5ec2 (diff)
downloadclang-f68af647dda5cca00b49be27d24f62b0a7fff986.tar.gz
clang-f68af647dda5cca00b49be27d24f62b0a7fff986.tar.bz2
clang-f68af647dda5cca00b49be27d24f62b0a7fff986.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions