llvm-project/clang/lib
Rafael Espindola db77c4ae13 Be more careful in applying pragma weak. Fixes pr14974.
GCC applies a pragma weak to a decl if it matches the mangled name. We used
to apply if it matched the plain name.

This patch is a compromise: we apply the pragma only if it matches the name
and the decl has C language linkage.

llvm-svn: 176110
2013-02-26 19:13:56 +00:00
..
ARCMigrate [preprocessor] Use MacroDirective in the preprocessor callbacks to make available the 2013-02-24 00:05:14 +00:00
AST Fix empty declaration printing. 2013-02-25 18:40:11 +00:00
ASTMatchers Re-design the convenience interfaces on MatchFinder. 2013-02-01 13:41:35 +00:00
Analysis Remove the CFGElement "Invalid" state. 2013-02-23 00:29:34 +00:00
Basic Moving initialization into the initializer list and correcting capitalization, as suggested by Chandler. 2013-02-24 19:08:10 +00:00
CodeGen Unify clang/llvm attributes for asan/tsan/msan (Clang part) 2013-02-26 06:58:27 +00:00
Driver ubsan: Emit bounds checks for array indexing, vector indexing, and (in really simple cases) pointer arithmetic. This augments the existing bounds checking with language-level array bounds information. 2013-02-23 02:53:19 +00:00
Edit Include llvm::Optional in clang/Basic/LLVM.h 2013-02-20 22:23:23 +00:00
Format Fix bad line break decision. 2013-02-26 13:59:14 +00:00
Frontend [preprocessor] Use MacroDirective in the preprocessor callbacks to make available the 2013-02-24 00:05:14 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard against 2013-02-21 02:17:58 +00:00
Lex [preprocessor] Use MacroDirective in the preprocessor callbacks to make available the 2013-02-24 00:05:14 +00:00
Parse [Sema] Semantic analysis for empty-declaration and attribute-declaration. 2013-02-22 17:15:32 +00:00
Rewrite Use trailing documentation comments properly 2013-02-16 22:21:38 +00:00
Sema Be more careful in applying pragma weak. Fixes pr14974. 2013-02-26 19:13:56 +00:00
Serialization objective-C arg: provide fixit support when 2013-02-22 22:02:53 +00:00
StaticAnalyzer [analyzer] Don't look through casts when creating pointer temporaries. 2013-02-26 01:21:27 +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