Skip to content

Commit 6159824

Browse files
authored
Merge pull request #45 from MetanoKid/issue-41
Converts file paths in FileInclusionsAnalyzer to lower case
2 parents 1b2b422 + 7f2807f commit 6159824

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/BuildAnalyzer/Analyzers/FileInclusions/FileInclusionsAnalyzer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include "FileInclusionsAnalyzer.h"
22

3+
#include <algorithm>
4+
#include <cctype>
5+
36
FileInclusionsAnalyzer::FileInclusionsAnalyzer()
47
: CppBI::IAnalyzer()
58
, m_fileInclusionTimes()
@@ -21,7 +24,8 @@ CppBI::AnalysisControl FileInclusionsAnalyzer::OnStopActivity(const CppBI::Event
2124
void FileInclusionsAnalyzer::OnFileParsed(const CppBI::Activities::FrontEndFile& fromFile,
2225
const CppBI::Activities::FrontEndFile& includedFile)
2326
{
24-
const std::string includedFilePath = includedFile.Path();
27+
std::string includedFilePath = includedFile.Path();
28+
std::transform(includedFilePath.begin(), includedFilePath.end(), includedFilePath.begin(), std::tolower);
2529

2630
// store timing
2731
{

0 commit comments

Comments
 (0)