Skip to content
  1. Jun 19, 2013
  2. Jun 18, 2013
    • John Thompson's avatar
      Fixed a typo and naming convention. · 54c83695
      John Thompson authored
      llvm-svn: 184221
      54c83695
    • Edwin Vane's avatar
      cpp11-migrate: Transforms honour header modification flag · ba6b32d1
      Edwin Vane authored
      Transforms will now make changes to headers if header modifications have been
      enabled.
      
      FIXME: Only UseNullptr contains a cursory header modification test. Other
      transforms should have them too.
      
      llvm-svn: 184197
      ba6b32d1
    • Edwin Vane's avatar
      cpp11-migrate: Transform now responsible for applying replacements · 62c013db
      Edwin Vane authored
      To make it possible for replacements made to headers as part of transforming
      one translation unit to not be visible to the transform of other translation
      units, Transform now handles replacement application as part of its
      end-of-source handling. Several things were simplified as a result:
      
      - The duplicated code in every transform for applying replacements is now gone
        and replaced with one location in Transform.
      - RefactoringTool is no longer used since Transform houses the Replacements
        structure.
      - RewriterContainer is now a private implementation detail of Transform (also
        renamed to RewriterManager since its behaviour is slightly different now with
        respect to lifetime of objects).
      - There's now no distinction between input and output file state.
      
      Misc notes:
      
      - Interface changes reflected in unit tests.
      - Replacements for files other than the main file are assumed to be for headers
        and stored as such.
      
      llvm-svn: 184194
      62c013db
  3. Jun 17, 2013
    • Edwin Vane's avatar
      cpp11-migrate: Transform now responsible for file content overriding · 4e11abb5
      Edwin Vane authored
      To better support per-translation unit replacements, any real work is being
      moved out of ActionFactory and into Transform. In this revision, that means
      file override application.
      
      For simplification, Transform no longer inherits from SourceFileCallbacks.
      TransformTest required updating as a result.
      
      llvm-svn: 184098
      4e11abb5
  4. Jun 14, 2013
  5. Jun 13, 2013
    • Edwin Vane's avatar
      cpp11-migrate: const-correcting IncludeExcludeInfo · 230ecb24
      Edwin Vane authored
      isFileIncluded() needed to be marked const.
      
      llvm-svn: 183918
      230ecb24
    • Edwin Vane's avatar
      cpp11-migrate: Add headers to file override information · 90706dd4
      Edwin Vane authored
      File override structures now contain per-source overrides for headers.
      
      For now, modified headers are written to disk when the Migrator is done.
      This is only temporary behaviour since we can expect headers to be
      changed by migrating multiple source files. The changes need to be
      merged after all migrations are complete.
      
      llvm-svn: 183917
      90706dd4
    • Edwin Vane's avatar
      cpp11-migrate: Replace file override container · e0a7d9ce
      Edwin Vane authored
      A more flexible container for storing overrides is required for headers. Before
      a source goes through the transform pipeline, any headers it references will be
      in their original state and unaffected by transforms applied to other sources.
      Therefore overrides for headers need to be kept separate for each source file.
      
      This patch doesn't introduce support for storing header overrides yet. It only
      replaces the existing structure and makes any necessary changes to support it.
      
      llvm-svn: 183910
      e0a7d9ce
  6. Jun 12, 2013
    • Edwin Vane's avatar
      cpp11-migrate: Decluttering Transform.h · 59175a15
      Edwin Vane authored
      Moving RewriteContainer's constructor impl to Transform.cpp to reduce clutter.
      More things will soon be added to this header.
      
      llvm-svn: 183856
      59175a15
    • Edwin Vane's avatar
      cpp11-migrate: New mechanism for overriding file contents · a6bbcdd7
      Edwin Vane authored
      Next step toward supporting migrating headers. Instead of using ClangTool's
      ability to override all files at once, use a custom FrontendAction and override
      only the source (and eventually headers) the action is about to parse.
      
      Use of newFrontendActionFactory() is replaced with a new factory maker provided
      by Transform.
      
      llvm-svn: 183855
      a6bbcdd7
  7. Jun 11, 2013
  8. Jun 06, 2013
    • Edwin Vane's avatar
      cpp11-migrate: Add EnableHeaderModification flag · 622dacd6
      Edwin Vane authored
      First step toward supporting header modifications: adding a flag that turns on
      such modifications. Eventually header modifications will be on by default but
      until all the kinks can be worked out, they must be explicitly enabled.
      
      llvm-svn: 183444
      622dacd6
    • Edwin Vane's avatar
      cpp11-migrate: Refactor how global options are passed to Transforms · 32e3553f
      Edwin Vane authored
      Refactored how global options are passed to Transforms to avoid widespread
      changes every time a new global option is added.
      
      Tests updated to reflect new interface.
      
      llvm-svn: 183443
      32e3553f
    • Edwin Vane's avatar
      cpp11-migrate: Docs refresh · 573ec4f1
      Edwin Vane authored
      * Documented new command-line options.
      * Moved usage to a new page.
        * Usage now split into general options and transform-related options.
      * Main Migrator page now contains getting started and getting involved
        information.
        * Also included a JIRA issue collector button for logging bugs.
      
      llvm-svn: 183417
      573ec4f1
  9. Jun 05, 2013
  10. Jun 03, 2013
  11. May 31, 2013
  12. May 30, 2013
  13. May 27, 2013
    • Ariel J. Bernal's avatar
      Fix UseAuto replacing declaration lists with new expressions · 1d66e366
      Ariel J. Bernal authored
      UseAuto used to replace declarion lists with new expressons where some
      variable were not initialized with new.
      This fix checks that every DeclStmt has a VarDecl with an initializer and it
      also ensures that all declarations have the same type.
      
      Added tests for multiple declarations and for typedefs.
      
      llvm-svn: 182736
      1d66e366
  14. May 17, 2013
  15. May 16, 2013
  16. May 14, 2013
    • Edwin Vane's avatar
      cpp11-migrate: Add override specifier before comments on inline methods · ba6a0960
      Edwin Vane authored
      This commit fixes a "FIXME" in the add-override transform. ' override' was
      misplaced when a comment was between the function body and the end of the
      'prototype'.
      
      It also remove duplicated check for the main file from the last commit (and
      fixes the typo in the comment above).
      
      Author: Guillaume Papin <guillaume.papin@epitech.eu>
      llvm-svn: 181806
      ba6a0960
  17. May 10, 2013
    • Edwin Vane's avatar
      cpp11-migrate: Fix crash in AddOverride due to template instantiations · b8c38756
      Edwin Vane authored
      This patch fixes different issues:
      - override is not added in template 'contexts' (this will be further improved
        to handle safe situations, a test for this has been written already)
      - the main file is now checked before the modifications are applied
      - override is not applied now when dealing with pure methods since it was
        misplaced (ignoring it isn't the perfect solution but it seems difficult to
        find the location just before the pure-specifier)
      
      Fixes PR15827
      
      Author: Guillaume Papin <guillaume.papin@epitech.eu>
      llvm-svn: 181596
      b8c38756
Loading