aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-08-04 13:56:55 +0100
committerSergio Martins <smartins@kde.org>2019-08-04 13:56:55 +0100
commit3af178f500c91bd34d98b1c1ea82fd5baf4b95c7 (patch)
tree014890042cf226c00f3cc5339294e589f88957db /src
parentbd40d70a1855df9c7de54a94c2f78b13c411113c (diff)
Rename variable for readability
Diffstat (limited to 'src')
-rw-r--r--src/Clazy.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Clazy.cpp b/src/Clazy.cpp
index c614ded8..5f47a1bf 100644
--- a/src/Clazy.cpp
+++ b/src/Clazy.cpp
@@ -234,10 +234,11 @@ bool ClazyASTAction::ParseArgs(const CompilerInstance &ci, const std::vector<std
const string headerFilter = getEnvVariable("CLAZY_HEADER_FILTER");
const string ignoreDirs = getEnvVariable("CLAZY_IGNORE_DIRS");
- std::string exportFixes;
+ std::string exportFixesFilename;
if (parseArgument("help", args)) {
- m_context = new ClazyContext(ci, headerFilter, ignoreDirs, exportFixes, ClazyContext::ClazyOption_None);
+ m_context = new ClazyContext(ci, headerFilter, ignoreDirs,
+ exportFixesFilename, ClazyContext::ClazyOption_None);
PrintHelp(llvm::errs());
return true;
}
@@ -261,9 +262,9 @@ bool ClazyASTAction::ParseArgs(const CompilerInstance &ci, const std::vector<std
m_options |= ClazyContext::ClazyOption_IgnoreIncludedFiles;
if (parseArgument("export-fixes", args))
- exportFixes = args.at(0);
+ exportFixesFilename = args.at(0);
- m_context = new ClazyContext(ci, headerFilter, ignoreDirs, exportFixes, m_options);
+ m_context = new ClazyContext(ci, headerFilter, ignoreDirs, exportFixesFilename, m_options);
// This argument is for debugging purposes
const bool dbgPrintRequestedChecks = parseArgument("print-requested-checks", args);