[all-commits] [llvm/llvm-project] 1c6f2a: [clang][test] add TestLanguage.def to specify all ...

Julian Schmidt via All-commits all-commits at lists.llvm.org
Mon Jun 3 09:36:29 PDT 2024


  Branch: refs/heads/users/5chmidti/specify_test_language_versions_in_def_file
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c6f2a0a2780d3189e1cfe2a0f4ac9c3a33fcf8d
      https://github.com/llvm/llvm-project/commit/1c6f2a0a2780d3189e1cfe2a0f4ac9c3a33fcf8d
  Author: Julian Schmidt <git.julian.schmidt at gmail.com>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M clang/include/clang/Testing/CommandLineArgs.h
    M clang/include/clang/Testing/TestClangConfig.h
    A clang/include/clang/Testing/TestLanguage.def
    M clang/lib/Testing/CommandLineArgs.cpp
    M clang/unittests/AST/MatchVerifier.h
    M clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
    M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
    M clang/unittests/Tooling/Syntax/BuildTreeTest.cpp
    M clang/unittests/Tooling/Syntax/MutationsTest.cpp
    M clang/unittests/Tooling/Syntax/SynthesisTest.cpp
    M clang/unittests/Tooling/Syntax/TreeTest.cpp
    M clang/unittests/Tooling/Syntax/TreeTestBase.cpp

  Log Message:
  -----------
  [clang][test] add TestLanguage.def to specify all tested language versions

Adds a def file to have a single location where tested language versions are
specified. Removes the need to update multiple locations in the testing
infrastructure to add a new language version to be tested.
Test instatiation can now include all languages without needing to
specify them.
This patch also adds pretty printing for instantiated test names.
That means, that a test instantiated with C++23 will have the
name `...TestSuite/TestName/CXX23` instead ending with some number
(index of the argument for instantiation of the test), which improves a
better experience when encountering a test failure with a specific
language version. The suffix will also contain an `_win` if the target
contains `win`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list