trackNullOrUndefValue is a long and confusing name,
and it does not actually reflect what the function is doing.
Give a function a new name, with a relatively clear semantics.
Also remove some dead code.
Paths
| Differential D52758
[analyzer] Rename trackNullOrUndefValue to trackExpressionValue ClosedPublic Authored by george.karpenkov on Oct 1 2018, 5:34 PM.
Details Summary trackNullOrUndefValue is a long and confusing name, Also remove some dead code.
Diff Detail
Event TimelineHerald added subscribers: Szelethus, mikhail.ramalho, a.sidorin and 3 others. · View Herald TranscriptOct 1 2018, 5:34 PM Comment Actions I'd prefer to keep the word Value in the name, i.e. trackValue() or trackExpressionValue(). It just doesn't make much sense to track the expression itself or find its origin - instead, we're figuring out where did its value come from.
george.karpenkov retitled this revision from [analyzer] Rename trackNullOrUndefValue to trackExpression to [analyzer] Rename trackNullOrUndefValue to trackExpressionValue. george.karpenkov marked an inline comment as done.
Comment Actions Let's commit? :)
This revision is now accepted and ready to land.Oct 19 2018, 5:34 PM Closed by commit rL345064: [analyzer] Rename trackNullOrUndefValue to trackExpressionValue (authored by george.karpenkov). · Explain WhyOct 23 2018, 11:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 170708 cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
|