llvm-project/clang/lib/Tooling/Refactoring
Yitzhak Mandelbaum 0a81b4ed97 [libTooling] Add `access` and `ifBound` combinators to Stencil library.
Summary:
This revision add the `access` and `ifBound` combinators to the Stencil library:
* `access` -- constructs an idiomatic expression for accessing a member (a
  `MemberExpr`).
* `ifBound` -- chooses between two `StencilParts` based on the whether an id is
  bound in the match (corresponds to the combinator of the same name in
  RangeSelector).

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 372605
2019-09-23 13:21:42 +00:00
..
Extract [Tooling] Added DeclStmtClass to ExtractionSemicolonPolicy 2019-08-14 13:37:39 +00:00
Rename [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
ASTSelection.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTSelectionRequirements.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
AtomicChange.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [libTooling] Introduce new library of source-code builders. 2019-09-23 12:40:10 +00:00
RangeSelector.cpp [libTooling] Add `ifBound`, `elseBranch` RangeSelector combinators. 2019-09-20 17:11:03 +00:00
RefactoringActions.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SourceCode.cpp [LibTooling] Add function to translate and validate source range for editing 2019-07-18 17:26:57 +00:00
SourceCodeBuilders.cpp [libTooling] Introduce new library of source-code builders. 2019-09-23 12:40:10 +00:00
Stencil.cpp [libTooling] Add `access` and `ifBound` combinators to Stencil library. 2019-09-23 13:21:42 +00:00
Transformer.cpp [Tooling] Add a hack to work around issues with matcher binding in r368681. 2019-08-15 04:10:11 +00:00