llvm-project/clang/lib
Hans Wennborg e9af316423 Downgrade "definition of dllimport static field" error to warning for class templates (PR19902)
This allows us to compile the following kind of code, which occurs in MSVC
headers:

  template <typename> struct S {
    __declspec(dllimport) static int x;
  };
  template <typename T> int S<T>::x;

The definition works similarly to a dllimport inline function definition and
gets available_externally linkage.

Differential Revision: http://reviews.llvm.org/D3998

llvm-svn: 210141
2014-06-04 00:18:41 +00:00
..
ARCMigrate There is no std::errc:success, remove the llvm one. 2014-05-31 03:20:52 +00:00
AST Teach AST dumper to dump the array filler in an initializer list. 2014-06-03 08:24:28 +00:00
ASTMatchers [C++11] Use 'nullptr'. ASTMatchers edition. 2014-05-17 18:49:24 +00:00
Analysis Thread Safety Analysis: implement review suggestions from Aaron Ballman. 2014-05-29 21:24:16 +00:00
Basic Use make_error_code in preparation for making errc an enum class. 2014-05-31 02:23:01 +00:00
CodeGen Add __builtin_operator_new and __builtin_operator_delete, which act like calls 2014-06-03 23:27:44 +00:00
Driver Add flags -Rpass-missed and -Rpass-analysis. 2014-05-29 19:55:06 +00:00
Edit [C++11] Use 'nullptr'. 2014-05-09 08:15:10 +00:00
Format clang-format: Refactor indentation behavior for multiple nested blocks. 2014-06-03 12:02:45 +00:00
Frontend Fix leak from r210059 2014-06-03 17:23:34 +00:00
FrontendTool [C++11] Use 'nullptr'. 2014-05-26 06:21:51 +00:00
Headers Implement AVX1 vbroadcast intrinsics with vector initializers 2014-05-29 20:47:29 +00:00
Index [C++11] Use 'nullptr'. 2014-05-26 06:21:51 +00:00
Lex Preprocessor: make C++ operator names as macro identifiers a compatible extension 2014-05-31 16:32:22 +00:00
Parse [OPENMP] Loop canonical form analysis (Sema) 2014-06-03 10:16:47 +00:00
Rewrite [C++11] Use 'nullptr'. 2014-05-07 06:21:57 +00:00
Sema Downgrade "definition of dllimport static field" error to warning for class templates (PR19902) 2014-06-04 00:18:41 +00:00
Serialization There is no std::errc:success, remove the llvm one. 2014-05-31 03:20:52 +00:00
StaticAnalyzer Don't assume an implicit IntrusiveRefCntPtr -> bool operator. 2014-06-03 05:04:52 +00:00
Tooling Don't compare an error_code with nullptr. 2014-06-01 16:16:02 +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