From dffa2b1075230bcf198c80fc685b61332f07d9c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Jun 2015 12:26:26 +0300 Subject: Use bit mask for plugin command. --- src/analysis/function.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/analysis/function.cpp') diff --git a/src/analysis/function.cpp b/src/analysis/function.cpp index ff0f186..df6d733 100644 --- a/src/analysis/function.cpp +++ b/src/analysis/function.cpp @@ -103,7 +103,7 @@ void getPossibleNullParameters(FunctionDeclNode *node, WalkItem &wi) getFunctionArgTypes(node, types); getFunctionParamsNonNullAttributes(node, nonNull); - if (command == Command::FindArgs) + if (checkCommand(FindArgs)) Log::log("%s: ", node->label.c_str()); size_t sz = node->args.size(); @@ -119,7 +119,7 @@ void getPossibleNullParameters(FunctionDeclNode *node, WalkItem &wi) continue; if (nonNull.find(f + 1) == nonNull.end()) { - if (command == Command::FindArgs) + if (checkCommand(FindArgs)) { Log::log("%s %s, ", type->nodeTypeName.c_str(), @@ -128,7 +128,7 @@ void getPossibleNullParameters(FunctionDeclNode *node, WalkItem &wi) wi.checkNullVars.insert(name->label); } } - if (command == Command::FindArgs) + if (checkCommand(FindArgs)) Log::log("\n"); } -- cgit v1.2.3-70-g09d2