[all-commits] [llvm/llvm-project] 90cb52: [clang][analyzer] Improve report of file read at E...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Tue Jul 20 23:42:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90cb5297adf086073f14d455050b5cde9a03503d
      https://github.com/llvm/llvm-project/commit/90cb5297adf086073f14d455050b5cde9a03503d
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
    M clang/test/Analysis/stream-note.c

  Log Message:
  -----------
  [clang][analyzer] Improve report of file read at EOF condition (alpha.unix.Stream checker).

The checker warns if a stream is read that is already in end-of-file
(EOF) state.
The commit adds indication of the last location where the EOF flag is set
on the stream.

Reviewed By: Szelethus

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




More information about the All-commits mailing list