[PATCH] D80016: [analyzer] StdLibraryFunctionsChecker: Add support to lookup types

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 29 08:07:18 PDT 2020


balazske accepted this revision.
balazske added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:739
 
+  Optional<QualType> FileTy = lookupType("FILE", ACtx);
+  Optional<QualType> FilePtrTy, FilePtrRestrictTy;
----------------
There is a `ASTContext::getFILEType` that can be used for this. (But if more types are needed the `lookupType` must be used again.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80016





More information about the cfe-commits mailing list