aboutsummaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index bef60e8d..0745f24c 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -29,7 +29,7 @@
using namespace std;
using namespace clang;
-std::string StringUtils::simpleArgTypeName(clang::FunctionDecl *func, unsigned int index, const clang::LangOptions &lo)
+std::string clazy::simpleArgTypeName(clang::FunctionDecl *func, unsigned int index, const clang::LangOptions &lo)
{
if (!func || index >= func->getNumParams())
return {};
@@ -38,26 +38,26 @@ std::string StringUtils::simpleArgTypeName(clang::FunctionDecl *func, unsigned i
return simpleTypeName(parm, lo);
}
-bool StringUtils::anyArgIsOfSimpleType(clang::FunctionDecl *func,
+bool clazy::anyArgIsOfSimpleType(clang::FunctionDecl *func,
const std::string &simpleType,
const clang::LangOptions &lo)
{
if (!func)
return false;
- return clazy_std::any_of(Utils::functionParameters(func), [simpleType,lo](ParmVarDecl *p){
+ return clazy::any_of(Utils::functionParameters(func), [simpleType,lo](ParmVarDecl *p){
return simpleTypeName(p, lo) == simpleType;
});
}
-bool StringUtils::anyArgIsOfAnySimpleType(clang::FunctionDecl *func,
+bool clazy::anyArgIsOfAnySimpleType(clang::FunctionDecl *func,
const vector<string> &simpleTypes,
const clang::LangOptions &lo)
{
if (!func)
return false;
- return clazy_std::any_of(simpleTypes, [func,lo](const string &simpleType) {
- return StringUtils::anyArgIsOfSimpleType(func, simpleType, lo);
+ return clazy::any_of(simpleTypes, [func,lo](const string &simpleType) {
+ return clazy::anyArgIsOfSimpleType(func, simpleType, lo);
});
}