Skip to content
  1. Nov 18, 2016
  2. Nov 16, 2016
  3. Nov 15, 2016
    • Haojian Wu's avatar
      [clang-move] Make the output code look more pretty. · 53315a7b
      Haojian Wu authored
      Summary:
      Add decent blank lines between declarations:
      * Add extra blank line after #define or #includes.
      * Add extra blank line between declarations.
      * Add extra blank line in front of #endif.
      
      Previously, the new generated code is quite tight:
      
      ```
      #ifndef FOO_H
      #define FOO_H
      namespace a {
      class A { public: int f(); };
      int A::f() { return 0; }
      } // namespace a
      #endif // FOO_H
      ```
      
      After this patch, the code looks like:
      
      ```
      #ifndef FOO_H
      #define FOO_H
      
      namespace a {
      class A { public: int f(); };
      
      int A::f() { return 0; }
      } // namespace a
      
      #endif // FOO_H
      ```
      
      Reviewers: ioeric
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26493
      
      llvm-svn: 286943
      53315a7b
  4. Nov 14, 2016
  5. Nov 10, 2016
  6. Nov 08, 2016
  7. Oct 21, 2016
  8. Oct 19, 2016
  9. Oct 17, 2016
  10. Oct 15, 2016
  11. Oct 14, 2016
  12. Oct 13, 2016
  13. Oct 12, 2016
  14. Oct 07, 2016
  15. Oct 06, 2016
  16. Oct 04, 2016
  17. Sep 27, 2016
  18. Sep 23, 2016
  19. Sep 21, 2016
    • Haojian Wu's avatar
      [clang-move] A prototype tool for moving class definition to new file. · 357ef999
      Haojian Wu authored
      Summary:
      This patch introduces a new tool which moves a specific class definition
      from files (.h, .cc) to new files (.h, .cc), which mostly acts like
      "Extract class defintion". In the long term, this tool should be
      merged in to clang-refactoring as a subtool.
      
      clang-move not only moves class definition, but also moves all the
      forward declarations, functions defined in anonymous namespace and #include
      headers to new files, to make sure the new files are compliable as much
      as possible.
      
      To move `Foo` from old.[h/cc] to new.[h/cc], use:
      
      ```
      clang-move -name=Foo -old_header=old.h -old_cc=old.cc -new_header=new.h
      -new_cc=new.cc old.cc
      ```
      
      To move `Foo` from old.h to new.h, use:
      
      ```
      clang-move -name=Foo -old_header=old.h -new_header=new.h old.cc
      ```
      
      Reviewers: klimek, djasper, ioeric
      
      Subscribers: mgorny, beanz, Eugene.Zelenko, bkramer, omtcyfz, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D24243
      
      llvm-svn: 282070
      357ef999
Loading