llvm-project/clang/lib
Pavel Labath cf878bbe65 [analyzer] Fix FP warnings when binding a temporary to a local static variable
Summary:
When binding a temporary object to a static local variable, the analyzer would
complain about a dangling reference even though the temporary's lifetime should
be extended past the end of the function. This commit tries to detect these
cases and construct them in a global memory region instead of a local one.

Reviewers: jordan_rose

CC: cfe-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1133

llvm-svn: 187196
2013-07-26 11:50:42 +00:00
..
ARCMigrate Objective-C migrator: some cleanup. 2013-07-24 19:18:37 +00:00
AST Documentation parsing: if typedef name is being declared 2013-07-24 22:58:51 +00:00
ASTMatchers Use memoization for has()-matcher. 2013-07-25 09:32:14 +00:00
Analysis [analyzer] Include analysis stack in crash traces. 2013-07-19 00:59:08 +00:00
Basic [PowerPC] Support powerpc64le as a syntax-checking target. 2013-07-26 01:36:11 +00:00
CodeGen Remove trailing whitespace. 2013-07-26 06:16:11 +00:00
Driver [PowerPC] Support powerpc64le as a syntax-checking target. 2013-07-26 01:36:11 +00:00
Edit ObjectiveC migrator: Remove semicolon after the typedef 2013-07-18 22:17:33 +00:00
Format clang-format: Fix switch/case interaction with macros. 2013-07-25 11:31:57 +00:00
Frontend Add a -fno-math-builtin option to the Clang -cc1 2013-07-23 00:13:01 +00:00
FrontendTool ObjC migrator: Add -objcmt-migrate-property to do property 2013-07-09 16:59:14 +00:00
Headers This patch implements __get_cpuid_max() as an inline and __cpuid() and 2013-07-19 17:28:36 +00:00
Lex Fix GNU ObjC ABI for a message returning a struct. 2013-07-26 00:53:29 +00:00
Parse Avoid recursions when the parser finds out that it has too many brackets. 2013-07-25 02:11:20 +00:00
Rewrite avoid bogus warnings about "unknown" pragmas with -frewrite-includes (pr#14831) 2013-07-20 14:30:01 +00:00
Sema Tighten type-checking for vector attributes. 2013-07-26 00:53:47 +00:00
Serialization Make modules depend on the compiler's own module.map, as a proxy for the compiler itself. 2013-07-22 20:48:33 +00:00
StaticAnalyzer [analyzer] Fix FP warnings when binding a temporary to a local static variable 2013-07-26 11:50:42 +00:00
Tooling Allow clang tools to display an overview when using the CommonOptionsParser. 2013-07-19 12:20:59 +00:00
CMakeLists.txt Turn CLANG_ENABLE_{ARCMT,REWRITER,STATIC_ANALYZER} into proper options so that 2013-05-29 21:09:18 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00