llvm-project/clang/lib
David Majnemer 1ebb145bdf [-cxx-abi microsoft] Mangle local TagDecls appropriately
Summary:
When selecting a mangling for an anonymous tag type:
- We should first try it's typedef'd name.
- If that doesn't work, we should mangle in the name of the declarator
  that specified it as a declaration specifier.
- If that doesn't work, fall back to a static mangling of
  <unnamed-type>.

This should make our anonymous type mangling compatible.

This partially fixes PR16994; we would need to have an implementation of
scope numbering to get it right (a separate issue).

Reviewers: rnk, rsmith, rjmccall, cdavis5x

CC: cfe-commits

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

llvm-svn: 190892
2013-09-17 22:21:27 +00:00
..
ARCMigrate ObjectiveC migrator. Ignore migrating 'deprecated' 2013-09-17 21:56:04 +00:00
AST [-cxx-abi microsoft] Mangle local TagDecls appropriately 2013-09-17 22:21:27 +00:00
ASTMatchers Reduce the number of symbols by changing how templates are instantiated per function bound in the registry. 2013-08-30 15:09:52 +00:00
Analysis PR16054: Slight strengthening for -Wsometimes-uninitialized: if we use a 2013-09-12 18:49:10 +00:00
Basic Push contents of X86TargetInfo::setFeatureEnabled down to a static function called by the virtual version and all the places in getDefaultFeatures. This way getDefaultFeatures doesn't make so many virtual calls. 2013-09-17 04:51:29 +00:00
CodeGen Emit an error when attempting to generate IR for SEH __try 2013-09-16 21:46:30 +00:00
Driver [arcmt] Don't try to handle files that are already ARC'ified, this is not possible currently. 2013-09-17 19:14:29 +00:00
Edit ObjectiveC migrator: Remove semicolon after the typedef 2013-07-18 22:17:33 +00:00
Format clang-format: Don't accidentally move tokens into preprocessor directive. 2013-09-17 09:52:48 +00:00
Frontend Fix potential race in module building code. 2013-09-17 00:51:29 +00:00
FrontendTool ObjectiveC migrator. This patch infers readonly properties for no-parameter 2013-08-28 23:22:46 +00:00
Headers Add Intrin.h to the cmake files. 2013-09-06 20:11:28 +00:00
Index Avoid using the 'index' namespace as scope. 2013-08-21 00:49:25 +00:00
Lex Add a define for the ObjFW runtime ABI version. 2013-09-16 16:31:49 +00:00
Parse Add some missing ProhibitAttributes calls to some declaration-like #pragmas. 2013-09-16 21:17:44 +00:00
Rewrite ObjectiveC modern translator: Provide proper cast of 2013-09-17 17:51:48 +00:00
Sema [-cxx-abi microsoft] Mangle local TagDecls appropriately 2013-09-17 22:21:27 +00:00
Serialization [-cxx-abi microsoft] Mangle local TagDecls appropriately 2013-09-17 22:21:27 +00:00
StaticAnalyzer [analyzer] More reliably detect property accessors. 2013-09-17 01:30:57 +00:00
Tooling Move Compilation::PrintJob and PrintDiagnosticJob into Job::Print. 2013-09-12 18:23:34 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00