[all-commits] [llvm/llvm-project] 46333f: [clang] Satisfy clang v12

Ashay Rane via All-commits all-commits at lists.llvm.org
Mon Jul 10 18:08:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46333f71f8e0d6444a9b2c9e063aedb83ebb9735
      https://github.com/llvm/llvm-project/commit/46333f71f8e0d6444a9b2c9e063aedb83ebb9735
  Author: Ashay Rane <ashay at users.noreply.github.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp

  Log Message:
  -----------
  [clang] Satisfy clang v12

Older versions of clang (for example, v12) throw an error when compiling
CStringChecker.cpp that the initializers for `SourceArgExpr`,
`DestinationArgExpr`, and `SizeArgExpr` are missing braces around
initialization of subobject.  Newer clang versions don't throw this
error.  This patch adds the initialization braces to satisfy clang.

Reviewed By: steakhal

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




More information about the All-commits mailing list