Skip to content
  1. Aug 24, 2017
  2. Aug 15, 2017
  3. Aug 14, 2017
    • Alex Lorenz's avatar
      [rename] Introduce symbol occurrences · 44b94c7e
      Alex Lorenz authored
      Symbol occurrences store the results of local rename and will also be used for
      the global, indexed rename results. Their kind is used to determine whether they
      should be renamed automatically or not. They can be converted to a set of
      AtomicChanges as well.
      
      Differential Revision: https://reviews.llvm.org/D36156
      
      llvm-svn: 310853
      44b94c7e
  4. Aug 02, 2017
  5. Jul 31, 2017
  6. Jul 13, 2017
    • Alex Lorenz's avatar
      [refactor][rename] Use a single base class for class that finds · 98394f83
      Alex Lorenz authored
      a declaration at location and for class that searches for all occurrences of
      a specific declaration
      
      This commit uses a single RecursiveSymbolVisitor class for both
      USRLocFindingASTVisitor and NamedDeclOccurrenceFindingVisitor to avoid duplicate
      traversal code. It also traverses nested name specifier locs in the new class
      and remove the separate matching step.
      
      Differential Revision: https://reviews.llvm.org/D34949
      
      llvm-svn: 307898
      98394f83
  7. Jun 30, 2017
    • Richard Smith's avatar
      Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR · 25639842
      Richard Smith authored
      This is a short-term fix for PR33650 aimed to get the modules build bots green again.
      
      Remove all the places where we use the LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
      macros to try to locally specialize a global template for a global type. That's
      not how C++ works.
      
      Instead, we now centrally define how to format vectors of fundamental types and
      of string (std::string and StringRef). We use flow formatting for the former
      cases, since that's the obvious right thing to do; in the latter case, it's
      less clear what the right choice is, but flow formatting is really bad for some
      cases (due to very long strings), so we pick block formatting. (Many of the
      cases that were using flow formatting for strings are improved by this change.)
      
      Other than the flow -> block formatting change for some vectors of strings,
      this should result in no functionality change.
      
      Differential Revision: https://reviews.llvm.org/D34907
      
      Corresponding LLVM change is r306878.
      
      llvm-svn: 306881
      25639842
    • Alex Lorenz's avatar
      [refactor] Move clang-rename into the clang repository · 4abbd92b
      Alex Lorenz authored
      The core engine of clang-rename will be used for local and global renames in the
      new refactoring engine, as mentioned in
      http://lists.llvm.org/pipermail/cfe-dev/2017-June/054286.html.
      
      The clang-rename tool is still supported but might get deprecated in the future.
      
      Differential Revision: https://reviews.llvm.org/D34696
      
      llvm-svn: 306840
      4abbd92b
  8. Mar 30, 2017
  9. Mar 29, 2017
  10. Mar 28, 2017
  11. Mar 08, 2017
  12. Mar 01, 2017
    • Eric Liu's avatar
      Introducing clang::tooling::AtomicChange for refactoring tools. · 9e745b72
      Eric Liu authored
      Summary:
      An AtomicChange is used to create and group a set of source edits, e.g.
      replacements or header insertions. Edits in an AtomicChange should be related,
      e.g. replacements for the same type reference and the corresponding header
      insertion/deletion.
      
      An AtomicChange is uniquely identified by a key position and will either be
      fully applied or not applied at all. The key position should be the location
      of the key syntactical element that is being changed, e.g. the call to a
      refactored method.
      
      Next step: add a tool that applies AtomicChange.
      
      Reviewers: klimek, djasper
      
      Reviewed By: klimek
      
      Subscribers: alexshap, cfe-commits, djasper, mgorny
      
      Differential Revision: https://reviews.llvm.org/D27054
      
      llvm-svn: 296616
      9e745b72
Loading