Migration to AdLint 3

This document describes major changes from the earlier version to AdLint 3 and how to migrate.

You cannot use old traits files with AdLint 3.

Changes

  1. target_files item in project_traits section is added
  2. include_path item in project_traits section is renamed to file_search_paths
  3. include_path item in compiler_traits section is renamed to file_search_paths
  4. standard_type item in compiler_traits section is renamed to standard_types
  5. extension_substitution item in compiler_traits section is renamed to extension_substitutions
  6. arbitrary_substitution item in compiler_traits section is renamed to arbitrary_substitutions
  7. message_with_class item in message_traits section is deleted
  8. warn_files_in item in message_traits section is deleted
  9. warn_files_not_in item in message_traits section is deleted

See 4.2 Traits File for more details.

How to migrate

New --migrate option is added to adlintize command.

--migrate option migrates traits file from old format to new one of AdLint 3.

You can migrate traits files by the following instruction.

 % cd project_root
 % adlintize --migrate adlint/adlint_traits.yml

adlint_traits.yml format will be migrated, and old contents will be saved as adlint_traits.yml.orig file.