llvm-project/clang/lib
John McCall c87d97231d Add -Wstatic-local-in-inline, which warns about using a static local
variable in a C99 inline (but not static-inline or extern-inline)
function definition.

The standard doesn't actually say that this doesn't apply to
"extern inline" definitions, but that seems like a useful extension,
and it at least doesn't have the obvious flaw that a static
mutable variable in an externally-available definition does.

rdar://13535367

llvm-svn: 178520
2013-04-02 02:48:58 +00:00
..
ARCMigrate [arcmt] Copy the diagnostics so we don't have to worry about invaliding iterators from the diagnostic list. 2013-04-01 21:12:30 +00:00
AST Don't eagerly deserialize every templated function (and every static data 2013-04-01 20:22:16 +00:00
ASTMatchers Implements memoization for ancestor matching. 2013-03-14 16:33:21 +00:00
Analysis Thread safety analysis: Turn on checking for non-scalar types by default. 2013-04-01 17:47:37 +00:00
Basic R600: Add missing Southern Islands GPU to setCPU() function 2013-04-01 20:56:49 +00:00
CodeGen un-break remaining gdb buildbot testcases. 2013-04-02 01:00:48 +00:00
Driver R600: Handle -mcpu option v3 2013-04-01 20:56:53 +00:00
Edit Include llvm::Optional in clang/Basic/LLVM.h 2013-02-20 22:23:23 +00:00
Format Improve formatting of function types. 2013-04-01 17:13:26 +00:00
Frontend Remove sign-compare warning on systems that still use 32 bit time_ts. 2013-03-29 17:39:43 +00:00
FrontendTool <rdar://problem/13509689> Introduce -module-file-info option that provides information about a particular module file. 2013-03-27 16:47:18 +00:00
Headers [cmake] Add clang-headers as a dependency of libclang and if we have to copy them 2013-03-29 21:51:40 +00:00
Lex [Preprocessor] Remove PPMutationListener. 2013-03-27 01:25:24 +00:00
Parse PR15633: Note that we are EnteringContext when parsing the nested name 2013-04-01 21:43:41 +00:00
Rewrite Add some assertions to appease the static analyzer. 2013-03-15 21:41:35 +00:00
Sema Add -Wstatic-local-in-inline, which warns about using a static local 2013-04-02 02:48:58 +00:00
Serialization Objective-C: Provide fixit suggestions when class object 2013-03-28 19:50:55 +00:00
StaticAnalyzer [analyzer] Teach invalidateRegions that regions within LazyCompoundVal need to be invalidated 2013-04-02 01:28:24 +00:00
Tooling ClangTool output cleanup 2013-03-15 20:14:01 +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