[all-commits] [llvm/llvm-project] 873e27: [SemaObjC] Add a warning for dictionary literals w...

Erik Pilkington via All-commits all-commits at lists.llvm.org
Tue May 5 12:31:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 873e279095391df347b58ba4bab26dbfecab1262
      https://github.com/llvm/llvm-project/commit/873e279095391df347b58ba4bab26dbfecab1262
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExprObjC.cpp
    A clang/test/SemaObjC/dictionary-literal-duplicates.m

  Log Message:
  -----------
  [SemaObjC] Add a warning for dictionary literals with duplicate keys

Duplicate keys in a literal break NSDictionary's invariants. rdar://50454461A

Differential revision: https://reviews.llvm.org/D78660


  Commit: 86e50af72d0a0f5cddd2cb487681709eda7934e8
      https://github.com/llvm/llvm-project/commit/86e50af72d0a0f5cddd2cb487681709eda7934e8
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M clang/lib/AST/DeclPrinter.cpp
    M clang/test/AST/ast-print-enum-decl.c

  Log Message:
  -----------
  [AST] Print fixed enum type regardless of language mode

These are permitted in all language modes, not just C++11.


Compare: https://github.com/llvm/llvm-project/compare/6f790f784ee4...86e50af72d0a


More information about the All-commits mailing list