[PATCH] D74973: [analyzer] StdLibraryFunctionsChecker refactor w/ inheritance

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 20:57:06 PDT 2020


NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.

I like this! Please address the remaining nits^^



================
Comment at: clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:102
+  /// Given a range, should the argument stay inside or outside this range?
+  enum RangeKind { OutOfRange, WithinRange };
 
----------------
baloghadamsoftware wrote:
> I would move this into the class to encapsulate the values instead of contaminating namespace `ento`.
It's checker-local anyway and i suspect we write these a lot in the summaries, so let's keep it in the global scope.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74973





More information about the cfe-commits mailing list