[PATCH] D87004: [analyzer] Evaluate PredefinedExpressions

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 06:30:09 PDT 2020


steakhal updated this revision to Diff 289432.
steakhal marked 2 inline comments as done.
steakhal added a comment.

We only analyze instantiated functions, which are not //dependently typed//.
Safe to assume that every encountered `PredefinedExpression` has a defined (non-null) function name.

Just to be sure I added a `clang_analyzer_warnIfReached` in a test-case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87004/new/

https://reviews.llvm.org/D87004

Files:
  clang/lib/StaticAnalyzer/Core/Environment.cpp
  clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  clang/test/Analysis/eval-predefined-exprs.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87004.289432.patch
Type: text/x-patch
Size: 5705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200902/02400b3c/attachment.bin>


More information about the cfe-commits mailing list