llvm-project/clang/lib
Anna Zaks 7c1f408636 [analyzer] Don't reinitialize static globals more than once along a path
This patch makes sure that we do not reinitialize static globals when
the function is called more than once along a path. The motivation is
code with initialization patterns that rely on 2 static variables, where
one of them has an initializer while the other does not. Currently, we
reset the static variables with initializers on every visit to the
function along a path.

llvm-svn: 174676
2013-02-07 23:05:37 +00:00
..
ARCMigrate [arcmt] Make sure the objc migrators work fine when used with a PCH. 2013-02-05 16:37:00 +00:00
AST Add OpenCL samplers as Clang builtin types and check sampler related restrictions. 2013-02-07 10:55:47 +00:00
ASTMatchers Re-design the convenience interfaces on MatchFinder. 2013-02-01 13:41:35 +00:00
Analysis Add note why we used a switch. 2013-02-05 22:03:14 +00:00
Basic Add a *San + modules FIXME. 2013-02-07 01:09:29 +00:00
CodeGen Add OpenCL samplers as Clang builtin types and check sampler related restrictions. 2013-02-07 10:55:47 +00:00
Driver Form the default -fmodules-cache-path= properly. 2013-02-07 22:59:12 +00:00
Edit Implement OpenCL event_t as Clang builtin type, including event_t related OpenCL restrictions (OpenCL 1.2 spec 6.9) 2013-01-20 12:31:11 +00:00
Format clang-format: Don't put useless space in f( ::g()). 2013-02-07 21:08:36 +00:00
Frontend Rename -fmodule-cache-path <blah> to -fmodules-cache-path=<blah> for consistency. 2013-02-07 19:01:24 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers [Headers] Use standard builtin defines instead of typeof trickery. 2013-02-06 00:38:13 +00:00
Lex Introduce SourceManager::PredefinesFileID, to allow each checking of whether 2013-02-01 16:36:07 +00:00
Parse Thread safety analysis: make sure that expressions in attributes are parsed 2013-02-07 19:01:07 +00:00
Rewrite objective-C modern translator. More fixups for 2013-02-07 22:50:40 +00:00
Sema Retain all hidden methods in the global method pool, because they may become visible <rdar://problem/13172858>. 2013-02-07 19:13:24 +00:00
Serialization Add OpenCL samplers as Clang builtin types and check sampler related restrictions. 2013-02-07 10:55:47 +00:00
StaticAnalyzer [analyzer] Don't reinitialize static globals more than once along a path 2013-02-07 23:05:37 +00:00
Tooling Nuke SetUpBuildDumpLog. 2013-01-20 01:58:28 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00