[clang] [analyzer][NFC] Use ArrayRef for input parameters (PR #93203)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 26 23:56:45 PDT 2024


================
@@ -672,7 +672,7 @@ class StdLibraryFunctionsChecker
     StringRef getNote() const { return Note; }
   };
 
-  using ArgTypes = std::vector<std::optional<QualType>>;
+  using ArgTypes = ArrayRef<std::optional<QualType>>;
----------------
Xazax-hun wrote:

I am also wondering if `optional<QualType>` is a smell, since QualType can be null. 

https://github.com/llvm/llvm-project/pull/93203


More information about the cfe-commits mailing list