xref: /llvm-project/clang/test/Analysis/deprecated-flags-and-options.cpp (revision 7cd1f3ad22e48924e7061539eb0acb0e0c49eb63)
1 // RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region %s 2>&1 \
2 // RUN: | FileCheck %s --check-prefixes=DEPRECATED-STORE
3 // DEPRECATED-STORE: error: unknown argument: '-analyzer-store=region'
4 
5 // RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-opt-analyze-nested-blocks %s 2>&1 \
6 // RUN: | FileCheck %s --check-prefixes=DEPRECATED-NESTED-BLOCKS
7 // DEPRECATED-NESTED-BLOCKS: error: unknown argument: '-analyzer-opt-analyze-nested-blocks'
8 
9 // RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-config consider-single-element-arrays-as-flexible-array-members=true %s 2>&1 \
10 // RUN: | FileCheck %s --check-prefixes=DEPRECATED-SINGLE-ELEM-FAM
11 // DEPRECATED-SINGLE-ELEM-FAM: error: unknown analyzer-config 'consider-single-element-arrays-as-flexible-array-members'
12 
13 
empty()14 void empty() {}
15