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 168035 clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp
clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
|
Is it not the value of an expression?