[all-commits] [llvm/llvm-project] 936d1e: [ASTImporter][NFC] Improve test coverage

Balazs Benics via All-commits all-commits at lists.llvm.org
Wed Mar 31 03:11:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 936d1e97a32d05471f845d69496abcbf54687e72
      https://github.com/llvm/llvm-project/commit/936d1e97a32d05471f845d69496abcbf54687e72
  Author: Balazs Benics <balazsbenics at sigmatechnology.se>
  Date:   2021-03-31 (Wed, 31 Mar 2021)

  Changed paths:
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [ASTImporter][NFC] Improve test coverage

All three cases were imported correctly.
For BlockDecls, correctly means that we don't support importing them, thus an
error is the expected behaviour.

 - BlockDecls were not yet covered. I know that they are not imported but the
   test at least documents it.
 - Default values for ParmVarDecls were also uncovered.
 - Importing bitfield FieldDecls were imported correctly.

Reviewed By: martong, shafik

Differential Revision: https://reviews.llvm.org/D99576




More information about the All-commits mailing list