Skip to content

Commit

Permalink
[analyzer][NFC][test] Add new RUN line with support-symbolic-integer-…
Browse files Browse the repository at this point in the history
…casts=true to expr-inspection.cpp

Added a new run line to bolster gradual transition of handling cast operations,
see https://discourse.llvm.org/t/roadmap-of-modeling-symbolic-cast-operations/63107

Differential Revision: https://reviews.llvm.org/D127649
  • Loading branch information
Gabor Marton committed Jun 15, 2022
1 parent c149fa1 commit f7a38ee
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions clang/test/Analysis/expr-inspection.cpp
@@ -1,9 +1,17 @@
// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection -verify %s
// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection \
// RUN: -analyzer-config support-symbolic-integer-casts=false \
// RUN: -verify %s

// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection \
// RUN: -analyzer-config support-symbolic-integer-casts=true \
// RUN: -verify %s

// Self-tests for the debug.ExprInspection checker.

void clang_analyzer_denote(int x, const char *str);
void clang_analyzer_express(int x);
template <typename T>
void clang_analyzer_denote(T x, const char *str);
template <typename T>
void clang_analyzer_express(T x);

// Invalid declarations to test basic correctness checks.
void clang_analyzer_denote();
Expand Down

0 comments on commit f7a38ee

Please sign in to comment.