]> granicus.if.org Git - clang/commit
Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds"
authorAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:34 +0000 (00:43 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:34 +0000 (00:43 +0000)
commitb92c4a06a156c1711e0e59117f38431a54dbe914
treeab63841b8bb38f23529ee5ff0267db198887fc22
parenta4d7f51211e5eb03d2894de45719eeaaf18c4070
Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds"

This reverts commit r349054.

It's causing:

FAILED: tools/clang/bindings/python/tests/CMakeFiles/check-clang-python
FAIL: test_diagnostic_range (tests.cindex.test_diagnostics.TestDiagnostics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
  "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
  line 55, in test_diagnostic_range
      self.assertEqual(len(tu.diagnostics), 1)
      AssertionError: 2 != 1

======================================================================
FAIL: test_diagnostic_warning (tests.cindex.test_diagnostics.TestDiagnostics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
  "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
  line 18, in test_diagnostic_warning
      self.assertEqual(len(tu.diagnostics), 2)
      AssertionError: 1 != 2

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaCXX/string-plus-int.cpp