[all-commits] [llvm/llvm-project] 931fcd: [WebAssembly] Improve clang diagnostics for wasm a...

Dan Gohman via All-commits all-commits at lists.llvm.org
Fri Jun 5 11:29:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 931fcd3ba011c27626a95e5e35b657763284882a
      https://github.com/llvm/llvm-project/commit/931fcd3ba011c27626a95e5e35b657763284882a
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/AST/ast-dump-wasm-attr-export.c
    A clang/test/AST/ast-dump-wasm-attr-import.c
    A clang/test/Sema/attr-wasm.c

  Log Message:
  -----------
  [WebAssembly] Improve clang diagnostics for wasm attributes

This patch addresses the review comments on r352930:

 - Removes redundant diagnostic checking code
 - Removes errnoneous use of diag::err_alias_is_definition, which
   turned out to be ineffective anyway since functions can be defined later
   in the translation unit and avoid detection.
 - Adds a test for various invalid cases for import_name and import_module.

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




More information about the All-commits mailing list