summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalazs Benics <balazs.benics@sigmatechnology.se>2021-11-19 18:36:55 +0100
committerBalazs Benics <balazs.benics@sigmatechnology.se>2021-11-19 18:36:55 +0100
commitd5de568cc7375281b14bd2632576bff7f4afabc3 (patch)
treea73045a923178e9f50bde8126b92ba734244e8a3
parente6ef134f3c77005438f9fb7c1d17d3c30747844e (diff)
downloadllvm-d5de568cc7375281b14bd2632576bff7f4afabc3.tar.gz
[analyzer][NFC] MaybeUInt -> MaybeCount
I forgot to include this in D113594 Differential Revision: https://reviews.llvm.org/D113594
-rw-r--r--clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h14
-rw-r--r--clang/lib/StaticAnalyzer/Core/CallDescription.cpp14
2 files changed, 14 insertions, 14 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
index 67db652a1e52..396c9a4de440 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
@@ -42,14 +42,14 @@ enum CallDescriptionFlags : unsigned {
/// arguments and the name of the function.
class CallDescription {
friend class CallEvent;
- using MaybeUInt = Optional<unsigned>;
+ using MaybeCount = Optional<unsigned>;
mutable Optional<const IdentifierInfo *> II;
// The list of the qualified names used to identify the specified CallEvent,
// e.g. "{a, b}" represent the qualified names, like "a::b".
std::vector<std::string> QualifiedName;
- MaybeUInt RequiredArgs;
- MaybeUInt RequiredParams;
+ MaybeCount RequiredArgs;
+ MaybeCount RequiredParams;
int Flags;
public:
@@ -65,13 +65,13 @@ public:
/// name regardless the number of arguments.
CallDescription(CallDescriptionFlags Flags,
ArrayRef<const char *> QualifiedName,
- MaybeUInt RequiredArgs = None,
- MaybeUInt RequiredParams = None);
+ MaybeCount RequiredArgs = None,
+ MaybeCount RequiredParams = None);
/// Construct a CallDescription with default flags.
CallDescription(ArrayRef<const char *> QualifiedName,
- MaybeUInt RequiredArgs = None,
- MaybeUInt RequiredParams = None);
+ MaybeCount RequiredArgs = None,
+ MaybeCount RequiredParams = None);
CallDescription(std::nullptr_t) = delete;
diff --git a/clang/lib/StaticAnalyzer/Core/CallDescription.cpp b/clang/lib/StaticAnalyzer/Core/CallDescription.cpp
index 36c50e96311f..810fe365d021 100644
--- a/clang/lib/StaticAnalyzer/Core/CallDescription.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CallDescription.cpp
@@ -22,11 +22,11 @@
using namespace llvm;
using namespace clang;
-using MaybeUInt = Optional<unsigned>;
+using MaybeCount = Optional<unsigned>;
// A constructor helper.
-static MaybeUInt readRequiredParams(MaybeUInt RequiredArgs,
- MaybeUInt RequiredParams) {
+static MaybeCount readRequiredParams(MaybeCount RequiredArgs,
+ MaybeCount RequiredParams) {
if (RequiredParams)
return RequiredParams;
if (RequiredArgs)
@@ -36,8 +36,8 @@ static MaybeUInt readRequiredParams(MaybeUInt RequiredArgs,
ento::CallDescription::CallDescription(CallDescriptionFlags Flags,
ArrayRef<const char *> QualifiedName,
- MaybeUInt RequiredArgs /*= None*/,
- MaybeUInt RequiredParams /*= None*/)
+ MaybeCount RequiredArgs /*= None*/,
+ MaybeCount RequiredParams /*= None*/)
: RequiredArgs(RequiredArgs),
RequiredParams(readRequiredParams(RequiredArgs, RequiredParams)),
Flags(Flags) {
@@ -48,8 +48,8 @@ ento::CallDescription::CallDescription(CallDescriptionFlags Flags,
/// Construct a CallDescription with default flags.
ento::CallDescription::CallDescription(ArrayRef<const char *> QualifiedName,
- MaybeUInt RequiredArgs /*= None*/,
- MaybeUInt RequiredParams /*= None*/)
+ MaybeCount RequiredArgs /*= None*/,
+ MaybeCount RequiredParams /*= None*/)
: CallDescription(CDF_None, QualifiedName, RequiredArgs, RequiredParams) {}
bool ento::CallDescription::matches(const CallEvent &Call) const {