Avoid 'unsigned' in ctu
This commit is contained in:
parent
e489d9a40f
commit
49dd2deef1
|
@ -457,7 +457,7 @@ std::list<CTU::FileInfo::UnsafeUsage> CTU::getUnsafeUsage(const Tokenizer *token
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool findPath(const std::string &callId,
|
static bool findPath(const std::string &callId,
|
||||||
unsigned int callArgNr,
|
int callArgNr,
|
||||||
MathLib::bigint unsafeValue,
|
MathLib::bigint unsafeValue,
|
||||||
CTU::FileInfo::InvalidValueType invalidValue,
|
CTU::FileInfo::InvalidValueType invalidValue,
|
||||||
const std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> &callsMap,
|
const std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> &callsMap,
|
||||||
|
|
12
lib/ctu.h
12
lib/ctu.h
|
@ -40,16 +40,16 @@ namespace CTU {
|
||||||
struct Location {
|
struct Location {
|
||||||
Location() = default;
|
Location() = default;
|
||||||
Location(const Tokenizer *tokenizer, const Token *tok);
|
Location(const Tokenizer *tokenizer, const Token *tok);
|
||||||
Location(const std::string &fileName, unsigned int linenr) : fileName(fileName), linenr(linenr) {}
|
Location(const std::string &fileName, int linenr) : fileName(fileName), linenr(linenr) {}
|
||||||
std::string fileName;
|
std::string fileName;
|
||||||
unsigned int linenr;
|
int linenr;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct UnsafeUsage {
|
struct UnsafeUsage {
|
||||||
UnsafeUsage() = default;
|
UnsafeUsage() = default;
|
||||||
UnsafeUsage(const std::string &myId, unsigned int myArgNr, const std::string &myArgumentName, const Location &location, MathLib::bigint value) : myId(myId), myArgNr(myArgNr), myArgumentName(myArgumentName), location(location), value(value) {}
|
UnsafeUsage(const std::string &myId, int myArgNr, const std::string &myArgumentName, const Location &location, MathLib::bigint value) : myId(myId), myArgNr(myArgNr), myArgumentName(myArgumentName), location(location), value(value) {}
|
||||||
std::string myId;
|
std::string myId;
|
||||||
unsigned int myArgNr;
|
int myArgNr;
|
||||||
std::string myArgumentName;
|
std::string myArgumentName;
|
||||||
Location location;
|
Location location;
|
||||||
MathLib::bigint value;
|
MathLib::bigint value;
|
||||||
|
@ -89,7 +89,7 @@ namespace CTU {
|
||||||
public:
|
public:
|
||||||
NestedCall() = default;
|
NestedCall() = default;
|
||||||
|
|
||||||
NestedCall(const std::string &myId, unsigned int myArgNr, const std::string &callId, unsigned int callArgnr, const std::string &callFunctionName, const Location &location)
|
NestedCall(const std::string &myId, int myArgNr, const std::string &callId, int callArgnr, const std::string &callFunctionName, const Location &location)
|
||||||
: CallBase(callId, callArgnr, callFunctionName, location),
|
: CallBase(callId, callArgnr, callFunctionName, location),
|
||||||
myId(myId),
|
myId(myId),
|
||||||
myArgNr(myArgNr) {
|
myArgNr(myArgNr) {
|
||||||
|
@ -101,7 +101,7 @@ namespace CTU {
|
||||||
bool loadFromXml(const tinyxml2::XMLElement *xmlElement);
|
bool loadFromXml(const tinyxml2::XMLElement *xmlElement);
|
||||||
|
|
||||||
std::string myId;
|
std::string myId;
|
||||||
unsigned int myArgNr;
|
int myArgNr;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::list<FunctionCall> functionCalls;
|
std::list<FunctionCall> functionCalls;
|
||||||
|
|
Loading…
Reference in New Issue