llvm-capstone/clang/lib/Analysis
Martin Bohme 0c11c29121 [analyzer] Fix crash when building CFG with variable of incomplete type
Summary:
I've included a unit test with a function template containing a variable
of incomplete type. Clang compiles this without errors (the standard
does not require a diagnostic in this case). Without the fix, this case
triggers the crash.

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

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

llvm-svn: 297129
2017-03-07 08:42:37 +00:00
..
AnalysisDeclContext.cpp [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap. 2016-10-10 16:26:44 +00:00
BodyFarm.cpp [analyzer] Fix crash in body farm for getter without implicit self. 2017-01-11 01:02:34 +00:00
BodyFarm.h
CallGraph.cpp [analyzer] Consider function call arguments while building CallGraph. 2017-01-27 12:14:56 +00:00
CFG.cpp [analyzer] Fix crash when building CFG with variable of incomplete type 2017-03-07 08:42:37 +00:00
CFGReachabilityAnalysis.cpp
CFGStmtMap.cpp
CloneDetection.cpp [analyzer] Re-apply r283094 "Improve CloneChecker diagnostics" 2016-10-08 10:54:30 +00:00
CMakeLists.txt Add support for __builtin_os_log_format[_buffer_size] 2016-10-24 20:39:34 +00:00
CocoaConventions.cpp
CodeInjector.cpp
Consumed.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Dominators.cpp
FormatString.cpp Add support for __builtin_os_log_format[_buffer_size] 2016-10-24 20:39:34 +00:00
FormatStringParsing.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
LiveVariables.cpp [analyzer] Remove superquadratic behaviour from DataflowWorklist 2016-10-13 21:31:46 +00:00
ObjCNoReturn.cpp
OSLog.cpp Make helpers static. NFC. 2017-02-11 12:21:17 +00:00
PostOrderCFGView.cpp
PrintfFormatString.cpp Add support for __builtin_os_log_format[_buffer_size] 2016-10-24 20:39:34 +00:00
ProgramPoint.cpp
PseudoConstantAnalysis.cpp
ReachableCode.cpp Avoid multiple -Wunreachable-code diagnostics that are triggered by 2017-01-12 10:48:03 +00:00
ScanfFormatString.cpp [Sema] Don't crash on scanf on forward-declared enums. 2016-08-20 16:51:33 +00:00
ThreadSafety.cpp DR616, and part of P0135R1: member access (or pointer-to-member access) on a 2016-12-03 01:14:32 +00:00
ThreadSafetyCommon.cpp DR616, and part of P0135R1: member access (or pointer-to-member access) on a 2016-12-03 01:14:32 +00:00
ThreadSafetyLogical.cpp
ThreadSafetyTIL.cpp
UninitializedValues.cpp NFC small format 2016-10-29 15:28:25 +00:00