Skip to content
Snippets Groups Projects
  1. May 24, 2017
    • Serge Pavlov's avatar
      Method loadFromCommandLine should be able to report errors · 5bfd35d6
      Serge Pavlov authored
      Now FixedCompilationDatabase::loadFromCommandLine has no means to report
      which error occurred if it fails to create compilation object. This is
      a block for implementing D33013, because after that change driver will
      refuse to create compilation if command line contains erroneous options.
      
      This change adds additional argument to loadFromCommandLine, which is
      assigned error message text if compilation object was not created. This is
      the same way as other methods of CompilationDatabase report failure.
      
      Differential Revision: https://reviews.llvm.org/D33272
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303741 91177308-0d34-0410-b5e6-96231b3b80d8
      5bfd35d6
  2. May 12, 2017
  3. May 11, 2017
  4. May 10, 2017
  5. May 05, 2017
  6. Mar 30, 2017
  7. Mar 29, 2017
  8. Mar 28, 2017
  9. Mar 21, 2017
  10. Mar 08, 2017
  11. Mar 01, 2017
    • Eric Liu's avatar
      Introducing clang::tooling::AtomicChange for refactoring tools. · 912f198b
      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
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296616 91177308-0d34-0410-b5e6-96231b3b80d8
      912f198b
  12. Jan 17, 2017
  13. Jan 13, 2017
  14. Jan 06, 2017
  15. Jan 05, 2017
  16. Jan 03, 2017
  17. Dec 23, 2016
  18. Dec 13, 2016
  19. Dec 02, 2016
  20. Nov 25, 2016
  21. Nov 22, 2016
  22. Nov 07, 2016
  23. Nov 03, 2016
  24. Oct 14, 2016
  25. Oct 06, 2016
  26. Oct 01, 2016
  27. Sep 30, 2016
  28. Sep 28, 2016
  29. Sep 19, 2016
  30. Sep 17, 2016
    • Eric Liu's avatar
      When replacements have the same offset, make replacements with smaller length... · 18e5245c
      Eric Liu authored
      When replacements have the same offset, make replacements with smaller length order first in the set.
      
      Summary:
      No behavioral change intended. The change makes iterating the replacements set more intuitive in Replacements class implementation. Previously, insertion is ordered before an deletion/replacement with the same offset, which is counter-intuitive for implementation, especially for a followup patch to support adding insertions around replacements.
      
      With the current ordering, we only need to make `applyAllReplacements` iterate the replacements set reversely when applying them so that deletion/replacement is still applied before insertion with the same offset.
      
      Reviewers: klimek, djasper
      
      Subscribers: klimek, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D24663
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281819 91177308-0d34-0410-b5e6-96231b3b80d8
      18e5245c
  31. Sep 15, 2016
  32. Sep 14, 2016
    • Eric Liu's avatar
      Supports adding insertion around non-insertion replacements. · 8933d16e
      Eric Liu authored
      Summary:
      Extend `tooling::Replacements::add()` to support adding order-independent replacements.
      
      Two replacements are considered order-independent if one of the following conditions is true:
        - They do not overlap. (This is already supported.)
        - One replacement is insertion, and the other is a replacement with
          length > 0, and the insertion is adjecent to but not contained in the
          other replacement. In this case, the replacement should always change
          the original code instead of the inserted text.
      
      Reviewers: klimek, djasper
      
      Subscribers: cfe-commits, klimek
      
      Differential Revision: https://reviews.llvm.org/D24515
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281457 91177308-0d34-0410-b5e6-96231b3b80d8
      8933d16e
  33. Aug 31, 2016
Loading