[all-commits] [llvm/llvm-project] 841817: [analyzer] Prevent misuses of -analyze-function

Balazs Benics via All-commits all-commits at lists.llvm.org
Tue Feb 8 08:28:46 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 841817b1ed26c1fbb709957d54c0e2751624fbf8
  Author: Balazs Benics <balazs.benics at sigmatechnology.se>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
    A clang/test/Analysis/analyze-function-guide.cpp
    A clang/test/Analysis/analyze-function-guide.m

  Log Message:
  [analyzer] Prevent misuses of -analyze-function

Sometimes when I pass the mentioned option I forget about passing the
parameter list for c++ sources.
It would be also useful newcomers to learn about this.

This patch introduces some logic checking common misuses involving

Reviewed-By: martong

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

More information about the All-commits mailing list