[PATCH] D118690: [analyzer] Prevent misuses of -analyze-function
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 16 01:57:17 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4642c640f4ef: [analyzer] Remove breaking RUN line in the test case (authored by steakhal).
Changed prior to commit:
https://reviews.llvm.org/D118690?vs=406845&id=409175#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118690/new/
https://reviews.llvm.org/D118690
Files:
clang/test/Analysis/analyze-function-guide.cpp
Index: clang/test/Analysis/analyze-function-guide.cpp
===================================================================
--- clang/test/Analysis/analyze-function-guide.cpp
+++ clang/test/Analysis/analyze-function-guide.cpp
@@ -46,17 +46,6 @@
// CHECK-ADVOCATE-DISPLAY-PROGRESS-NEXT: Pass the -analyzer-display-progress for tracking which functions are analyzed.
// CHECK-ADVOCATE-DISPLAY-PROGRESS-NOT: For analyzing
-// The user passed the '-analyze-function' option and that matches on a
-// declaration in C mode.
-//
-// RUN: %clang_analyze_cc1 -analyzer-checker=core \
-// RUN: -analyze-function='fizzbuzz' -x c -Dbool=_Bool \
-// RUN: -triple x86_64-pc-linux-gnu 2>&1 %s \
-// RUN: | FileCheck %s -check-prefix=CHECK-EMPTY2 --allow-empty
-//
-// Expected empty standard output.
-// CHECK-EMPTY2-NOT: Every top-level function was skipped.
-
// Same as the previous but syntax mode only.
// FIXME: This should have empty standard output.
//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118690.409175.patch
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220216/d84740f3/attachment.bin>
More information about the cfe-commits
mailing list