[PATCH] Expose LambdaIntroducer::DefaultLoc in the AST's LambdaExpr.

James Dennett jdennett at google.com
Sat Jul 20 18:54:38 PDT 2013


jdennett added you to the CC list for the revision "Expose LambdaIntroducer::DefaultLoc in the AST's LambdaExpr.".

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.

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

Files:
  include/clang/Sema/ScopeInfo.h
  include/clang/Sema/Sema.h
  include/clang/AST/ExprCXX.h
  lib/Sema/SemaLambda.cpp
  lib/Sema/TreeTransform.h
  lib/AST/ExprCXX.cpp
  lib/Serialization/ASTReaderStmt.cpp
  lib/Serialization/ASTWriterStmt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1192.1.patch
Type: text/x-patch
Size: 11590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130720/b2730c93/attachment.bin>


More information about the cfe-commits mailing list