old_contents: # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
  # Spack Project Developers. See the top-level COPYRIGHT file for details.
  #
  # SPDX-License-Identifier: (Apache-2.0 OR MIT)
  
  from spack import *
  
  
  class Iwyu(CMakePackage):
      """include-what-you-use: A tool for use with clang to analyze #includes in
      C and C++ source files
      """
  
      homepage = "https://include-what-you-use.org"
      url      = "https://include-what-you-use.org/downloads/include-what-you-use-0.13.src.tar.gz"
  
      maintainers = ['sethrj']
  
      version('0.14', sha256='43184397db57660c32e3298a6b1fd5ab82e808a1f5ab0591d6745f8d256200ef')
      version('0.13', sha256='49294270aa64e8c04182369212cd919f3b3e0e47601b1f935f038c761c265bc9')
      version('0.12', sha256='a5892fb0abccb820c394e4e245c00ef30fc94e4ae58a048b23f94047c0816025')
      version('0.11', sha256='2d2877726c4aed9518cbb37673ffbc2b7da9c239bf8fe29432da35c1c0ec367a')
  
      patch('iwyu-013-cmake.patch', when='@0.13:0.14')
  
      depends_on('llvm+clang@10.0:10.999', when='@0.14')
      depends_on('llvm+clang@9.0:9.999', when='@0.13')
      depends_on('llvm+clang@8.0:8.999', when='@0.12')
      depends_on('llvm+clang@7.0:7.999', when='@0.11')
  
      # Non-X86 CPU use all_targets variants because iwyu use X86AsmParser
      depends_on('llvm+all_targets', when='target=aarch64:')
      depends_on('llvm+all_targets', when='target=arm:')
      depends_on('llvm+all_targets', when='target=ppc:')
      depends_on('llvm+all_targets', when='target=ppcle:')
      depends_on('llvm+all_targets', when='target=ppc64:')
      depends_on('llvm+all_targets', when='target=ppc64le:')
      depends_on('llvm+all_targets', when='target=sparc:')
      depends_on('llvm+all_targets', when='target=sparc64:')
  
      @when('@0.14:')
      def cmake_args(self):
          return [self.define('CMAKE_CXX_STANDARD', 14),
                  self.define('CMAKE_CXX_EXTENSIONS', False)]
  
new_contents: # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
  # Spack Project Developers. See the top-level COPYRIGHT file for details.
  #
  # SPDX-License-Identifier: (Apache-2.0 OR MIT)
  
  from spack import *
  
  
  class Iwyu(CMakePackage):
      """include-what-you-use: A tool for use with clang to analyze #includes in
      C and C++ source files
      """
  
      homepage = "https://include-what-you-use.org"
      url      = "https://include-what-you-use.org/downloads/include-what-you-use-0.13.src.tar.gz"
  
      maintainers = ['sethrj']
  
      version('0.15', sha256='2bd6f2ae0d76e4a9412f468a5fa1af93d5f20bb66b9e7bf73479c31d789ac2e2')
      version('0.14', sha256='43184397db57660c32e3298a6b1fd5ab82e808a1f5ab0591d6745f8d256200ef')
      version('0.13', sha256='49294270aa64e8c04182369212cd919f3b3e0e47601b1f935f038c761c265bc9')
      version('0.12', sha256='a5892fb0abccb820c394e4e245c00ef30fc94e4ae58a048b23f94047c0816025')
      version('0.11', sha256='2d2877726c4aed9518cbb37673ffbc2b7da9c239bf8fe29432da35c1c0ec367a')
  
      patch('iwyu-013-cmake.patch', when='@0.13:0.14')
  
      depends_on('llvm+clang@11.0:11.999', when='@0.15')
      depends_on('llvm+clang@10.0:10.999', when='@0.14')
      depends_on('llvm+clang@9.0:9.999', when='@0.13')
      depends_on('llvm+clang@8.0:8.999', when='@0.12')
      depends_on('llvm+clang@7.0:7.999', when='@0.11')
  
      # Non-X86 CPU use all_targets variants because iwyu use X86AsmParser
      depends_on('llvm+all_targets', when='target=aarch64:')
      depends_on('llvm+all_targets', when='target=arm:')
      depends_on('llvm+all_targets', when='target=ppc:')
      depends_on('llvm+all_targets', when='target=ppcle:')
      depends_on('llvm+all_targets', when='target=ppc64:')
      depends_on('llvm+all_targets', when='target=ppc64le:')
      depends_on('llvm+all_targets', when='target=sparc:')
      depends_on('llvm+all_targets', when='target=sparc64:')
  
      @when('@0.14:')
      def cmake_args(self):
          return [self.define('CMAKE_CXX_STANDARD', 14),
                  self.define('CMAKE_CXX_EXTENSIONS', False)]
  
subject: add 0.15 (#23876)