Skip to content

Conversation

@IgnatSergeev
Copy link
Owner

@IgnatSergeev IgnatSergeev commented Aug 22, 2024

Modified capabilities of refactoring engine and clang-refactor tool:

  • Added source location argument for clang-refactor tool
  • Added corresponding source location requirement, that requests SourceLocation
  • Added AST matcher(hasPointWithin), that checks that location is inside result node SourceRange
  • Added AST location match requirement, that requests ast_matcher::DeclarationMatcher or StatementMatcher, SourceLocation(it is source location requirement), wrappes given matcher with hasPointWithin matcher using requested location, matches AST and provides last match result
  • Added AST edit requirement, that requests and provides transformer::ASTEdit
  • Added Edit Match Refactoring rule, that edits given match result with given ASTEdit

@IgnatSergeev IgnatSergeev changed the title Matcher edit refactoring rule Match edit refactoring rule Aug 22, 2024
@IgnatSergeev IgnatSergeev force-pushed the matcher-edit-refactoring-rule branch 3 times, most recently from 9e24157 to 240cffa Compare September 17, 2024 21:05
Игнат Сергеев added 3 commits January 21, 2025 19:55
Added source location requirement for refactoring engine
Added source location argument for clang-refactor cli
Added matcher requirement, edit generator requirement, and edit match rule
@IgnatSergeev IgnatSergeev force-pushed the matcher-edit-refactoring-rule branch from 240cffa to 000fd27 Compare January 21, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants