File tree 3 files changed +5
-5
lines changed
include/clang/StaticAnalyzer/Core/BugReporter
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ class PathDiagnosticNotePiece: public PathDiagnosticSpotPiece {
759
759
};
760
760
761
761
// / File IDs mapped to sets of line numbers.
762
- using FilesToLineNumsMap = std::map<unsigned , std::set<unsigned >>;
762
+ using FilesToLineNumsMap = std::map<FileID , std::set<unsigned >>;
763
763
764
764
// / PathDiagnostic - PathDiagnostic objects represent a single path-sensitive
765
765
// / diagnostic. It represents an ordered-collection of PathDiagnosticPieces,
Original file line number Diff line number Diff line change @@ -1893,7 +1893,7 @@ static void updateExecutedLinesWithDiagnosticPieces(
1893
1893
FileID FID = Loc.getFileID ();
1894
1894
unsigned LineNo = Loc.getLineNumber ();
1895
1895
assert (FID.isValid ());
1896
- ExecutedLines[FID. getHashValue () ].insert (LineNo);
1896
+ ExecutedLines[FID].insert (LineNo);
1897
1897
}
1898
1898
}
1899
1899
@@ -3030,7 +3030,7 @@ static void populateExecutedLinesWithFunctionSignature(
3030
3030
3031
3031
FileID FID = SM.getFileID (SM.getExpansionLoc (Start));
3032
3032
for (unsigned Line = StartLine; Line <= EndLine; Line++)
3033
- ExecutedLines->operator [](FID. getHashValue () ).insert (Line);
3033
+ ExecutedLines->operator [](FID).insert (Line);
3034
3034
}
3035
3035
3036
3036
static void populateExecutedLinesWithStmt (
@@ -3042,7 +3042,7 @@ static void populateExecutedLinesWithStmt(
3042
3042
SourceLocation ExpansionLoc = SM.getExpansionLoc (Loc);
3043
3043
FileID FID = SM.getFileID (ExpansionLoc);
3044
3044
unsigned LineNo = SM.getExpansionLineNumber (ExpansionLoc);
3045
- ExecutedLines->operator [](FID. getHashValue () ).insert (LineNo);
3045
+ ExecutedLines->operator [](FID).insert (LineNo);
3046
3046
}
3047
3047
3048
3048
// / \return all executed lines including function signatures on the path
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ static void serializeExecutedLines(
346
346
if (I != ExecutedLines.begin ())
347
347
os << " , " ;
348
348
349
- os << " \" " << I->first << " \" : {" ;
349
+ os << " \" " << I->first . getHashValue () << " \" : {" ;
350
350
for (unsigned LineNo : I->second ) {
351
351
if (LineNo != *(I->second .begin ()))
352
352
os << " , " ;
You can’t perform that action at this time.
0 commit comments