]> granicus.if.org Git - clang/commit
[CFG] NFC: Remove implicit conversion from CFGTerminator to Stmt *.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 24 May 2019 01:34:22 +0000 (01:34 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 24 May 2019 01:34:22 +0000 (01:34 +0000)
commitd8b8672fabf07662fce1dae7f0d94f7b91541838
treecafa54b505f3b8ef549a8a1588acbcf9629265ac
parenta3332061d757fadd75dbd2402d7e23d6cf6f901e
[CFG] NFC: Remove implicit conversion from CFGTerminator to Stmt *.

Turn it into a variant class instead. This conversion does indeed save some code
but there's a plan to add support for more kinds of terminators that aren't
necessarily based on statements, and with those in mind it becomes more and more
confusing to have CFGTerminators implicitly convertible to a Stmt *.

Differential Revision: https://reviews.llvm.org/D61814

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361586 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/Analysis/CFG.h
include/clang/Analysis/ProgramPoint.h
lib/Analysis/CFG.cpp
lib/Analysis/CFGStmtMap.cpp
lib/Analysis/Consumed.cpp
lib/Analysis/LiveVariables.cpp
lib/Analysis/ProgramPoint.cpp
lib/Analysis/ReachableCode.cpp
lib/Analysis/ThreadSafety.cpp
lib/Analysis/UninitializedValues.cpp
lib/Sema/AnalysisBasedWarnings.cpp
lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
lib/StaticAnalyzer/Core/CoreEngine.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp
lib/StaticAnalyzer/Core/LoopUnrolling.cpp
lib/StaticAnalyzer/Core/PathDiagnostic.cpp