llvm-capstone/clang/lib/Serialization
Richard Smith c67fdd4eb9 AST representation for user-defined literals, plus just enough of semantic
analysis to make the AST representation testable. They are represented by a
new UserDefinedLiteral AST node, which is a sugared CallExpr. All semantic
properties, including full CodeGen support, are achieved for free by this
representation.

UserDefinedLiterals can never be dependent, so no custom instantiation
behavior is required. They are mangled as if they were direct calls to the
underlying literal operator. This matches g++'s apparent behavior (but not its
actual mangling, which is broken for literal-operator-ids).

User-defined *string* literals are now fully-operational, but the semantic
analysis is quite hacky and needs more work. No other forms of user-defined
literal are created yet, but the AST support for them is present.

This patch committed after midnight because we had already hit the quota for
new kinds of literal yesterday.

llvm-svn: 152211
2012-03-07 08:35:16 +00:00
..
ASTCommon.cpp Restore r142914 and r142915, now with missing file and apparent 2011-10-25 17:37:35 +00:00
ASTCommon.h When deserializing the definition of a C++ class/ObjC class/ObjC 2012-01-15 18:08:05 +00:00
ASTReader.cpp [PCH] Mark a PCH file with a flag to indicate if the serialized AST had 2012-03-07 01:51:17 +00:00
ASTReaderDecl.cpp objective-c: provide fixit hint when atomic property does not 2012-02-29 22:18:55 +00:00
ASTReaderInternals.h Only mark an IdentifierInfo as having changed since deserialization 2012-01-24 15:24:38 +00:00
ASTReaderStmt.cpp AST representation for user-defined literals, plus just enough of semantic 2012-03-07 08:35:16 +00:00
ASTWriter.cpp AST representation for user-defined literals, plus just enough of semantic 2012-03-07 08:35:16 +00:00
ASTWriterDecl.cpp objective-c: provide fixit hint when atomic property does not 2012-02-29 22:18:55 +00:00
ASTWriterStmt.cpp AST representation for user-defined literals, plus just enough of semantic 2012-03-07 08:35:16 +00:00
CMakeLists.txt Fix cmake build with -DBUILD_SHARED_LIBS=ON. 2011-12-29 04:31:59 +00:00
GeneratePCH.cpp Revert my patches which removed Diagnostic.h includes by moving some operator overloads out of line. 2012-02-07 22:29:24 +00:00
Makefile Reintroduce the serialization library, with fixed dependencies. 2010-08-17 20:43:28 +00:00
Module.cpp Reimplement (de-)serialization of Objective-C categories to eliminate 2012-01-27 01:47:08 +00:00
ModuleManager.cpp Optimize unqualified/global name lookup in modules by introducing a 2012-01-18 20:56:22 +00:00