[all-commits] [llvm/llvm-project] a99cb9: [alpha.webkit.UncountedCallArgsChecker] Allow triv...

Ryosuke Niwa via All-commits all-commits at lists.llvm.org
Thu May 9 15:34:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a99cb96dfa97c04c3313cb3770b876fee20eb131
      https://github.com/llvm/llvm-project/commit/a99cb96dfa97c04c3313cb3770b876fee20eb131
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
    M clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.cpp

  Log Message:
  -----------
  [alpha.webkit.UncountedCallArgsChecker] Allow trivial operator++ (#91102)

This PR adds the support for trivial operator++ implementations. T&
operator++() and T operator++(int) are trivial if the callee is trivial.

Also allow incrementing and decrementing of a POD member variable.

Also treat any __builtin_ functions as trivial.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list