mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 15:56:06 +00:00

The `consider-single-element-arrays-as-flexible-array-members` analyzer option was deprecated in clang-16, and now removed from clang-17 as promised in https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#static-analyzer This shouldn't change observable behavior. Differential Revision: https://reviews.llvm.org/D154481
15 lines
823 B
C++
15 lines
823 B
C++
// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefixes=DEPRECATED-STORE
|
|
// DEPRECATED-STORE: error: unknown argument: '-analyzer-store=region'
|
|
|
|
// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-opt-analyze-nested-blocks %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefixes=DEPRECATED-NESTED-BLOCKS
|
|
// DEPRECATED-NESTED-BLOCKS: error: unknown argument: '-analyzer-opt-analyze-nested-blocks'
|
|
|
|
// RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-config consider-single-element-arrays-as-flexible-array-members=true %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefixes=DEPRECATED-SINGLE-ELEM-FAM
|
|
// DEPRECATED-SINGLE-ELEM-FAM: error: unknown analyzer-config 'consider-single-element-arrays-as-flexible-array-members'
|
|
|
|
|
|
void empty() {}
|