hanchenye-llvm-project/clang/lib/AST
Reid Kleckner d23e73cda9 [MS] Make constexpr static data members implicitly inline
This handles them exactly the same way that we handle const integral
static data members with inline definitions, which is what MSVC does.

As a follow-up, now that we have a way to mark variables inline in the
AST, we should consider marking them implicitly inline there instead of
only treating them as inline in CodeGen. Unfortunately, this breaks a
lot of dllimport test cases, so that is future work for now.

Fixes PR36125.

llvm-svn: 325375
2018-02-16 19:44:47 +00:00
..
APValue.cpp
ASTConsumer.cpp
ASTContext.cpp [MS] Make constexpr static data members implicitly inline 2018-02-16 19:44:47 +00:00
ASTDiagnostic.cpp
ASTDumper.cpp Ensure code complete with !LoadExternal sees all local decls. 2018-01-16 12:33:46 +00:00
ASTImporter.cpp Quick fix for 325116 buildbots: move template specialization into namespace 2018-02-14 11:39:33 +00:00
ASTStructuralEquivalence.cpp [ASTImporter] Support LambdaExprs and improve template support 2018-01-26 11:36:54 +00:00
ASTTypeTraits.cpp
AttrImpl.cpp
CMakeLists.txt
CXXABI.h Fix __has_unique_object_representations implementation 2017-11-30 16:37:02 +00:00
CXXInheritance.cpp Refactor overridden methods iteration to avoid double lookups. 2017-12-17 23:52:45 +00:00
Comment.cpp
CommentBriefParser.cpp
CommentCommandTraits.cpp
CommentLexer.cpp
CommentParser.cpp
CommentSema.cpp
DataCollection.cpp
Decl.cpp [AST] namespace ns { extern "C" { int X; }} prints as "ns::X", not as "X" 2018-02-02 13:34:47 +00:00
DeclBase.cpp PR36181: Teach CodeGen to properly ignore requests to emit dependent entities. 2018-02-01 00:28:36 +00:00
DeclCXX.cpp Add support for attribute 'trivial_abi'. 2018-02-05 20:23:22 +00:00
DeclFriend.cpp
DeclGroup.cpp
DeclObjC.cpp
DeclOpenMP.cpp
DeclPrinter.cpp [DeclPrinter] Fix two cases that crash clang -ast-print. 2018-01-17 19:29:39 +00:00
DeclTemplate.cpp D40901: Refactor lazy loading of template specializations. NFC 2017-12-14 23:30:18 +00:00
DeclarationName.cpp
Expr.cpp Teach Wreturn-type, Wunreachable-code, and alpha.deadcode.UnreachableCode to treat __assume(0) like __builtin_unreachable. 2018-02-13 21:31:47 +00:00
ExprCXX.cpp Fix a couple of places where we assumed that non-type template parameters are always rvalues. 2018-02-14 02:07:53 +00:00
ExprClassification.cpp
ExprConstant.cpp [AST] Refine the condition for element-dependent array fillers 2018-02-14 13:10:35 +00:00
ExprObjC.cpp [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-11-30 22:33:48 +00:00
ExternalASTMerger.cpp [ASTImporter] avoid warnings: unused var, switch covered 2018-01-26 12:06:44 +00:00
ExternalASTSource.cpp
InheritViz.cpp
ItaniumCXXABI.cpp Fix __has_unique_object_representations implementation 2017-11-30 16:37:02 +00:00
ItaniumMangle.cpp Silence a bunch of implicit fallthrough warnings 2017-12-19 22:06:11 +00:00
Linkage.h
Mangle.cpp
MicrosoftCXXABI.cpp Fix __has_unique_object_representations implementation 2017-11-30 16:37:02 +00:00
MicrosoftMangle.cpp AST: support ObjC lifetime qualifiers in MS ABI 2018-02-09 03:23:54 +00:00
NSAPI.cpp
NestedNameSpecifier.cpp
ODRHash.cpp [ODRHash] Don't hash friend functions. 2018-01-12 04:42:27 +00:00
OpenMPClause.cpp
ParentMap.cpp
QualTypeNames.cpp
RawCommentList.cpp
RecordLayout.cpp
RecordLayoutBuilder.cpp [PR32482] Fix bitfield layout for -mms-bitfield and pragma pack 2018-01-31 21:59:02 +00:00
SelectorLocationsKind.cpp
Stmt.cpp [AST] Inline CompoundStmt contents into the parent allocation. 2017-12-24 16:24:20 +00:00
StmtCXX.cpp
StmtIterator.cpp
StmtObjC.cpp
StmtOpenMP.cpp
StmtPrinter.cpp [OpenMP] Fix trailing space when printing pragmas, by Joel. E. Denny 2018-02-14 17:38:47 +00:00
StmtProfile.cpp Update StmtProfile.cpp to handle zero template arguments. 2018-02-13 19:53:40 +00:00
StmtViz.cpp
TemplateBase.cpp
TemplateName.cpp
Type.cpp [Sema] Don't mark plain MS enums as fixed 2018-02-12 17:37:06 +00:00
TypeLoc.cpp Again reverting an attempt to convert the DeclSpec enums into scoped enums. 2018-01-01 18:23:28 +00:00
TypePrinter.cpp Re-commit r321223, which adds a printing policy to the ASTDumper. 2017-12-21 21:42:42 +00:00
VTTBuilder.cpp [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-12-01 22:04:49 +00:00
VTableBuilder.cpp Refactor overridden methods iteration to avoid double lookups. 2017-12-17 23:52:45 +00:00