[all-commits] [llvm/llvm-project] 7adab7: [Sema] Suppress -Wchar-subscripts if the index is ...

edward-jones via All-commits all-commits at lists.llvm.org
Thu Nov 7 07:48:59 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7adab7719e55e1b29bfd521dcc73f202139e8f41
      https://github.com/llvm/llvm-project/commit/7adab7719e55e1b29bfd521dcc73f202139e8f41
  Author: Edward Jones <ed.jones at embecosm.com>
  Date:   2019-11-07 (Thu, 07 Nov 2019)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/warn-char-subscripts.cpp

  Log Message:
  -----------
  [Sema] Suppress -Wchar-subscripts if the index is a literal char

Assume that the user knows what they're doing if they provide a char
literal as an array index. This more closely matches the behavior of
GCC.

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




More information about the All-commits mailing list