OLD | NEW |
1 //==--- DiagnosticSemaKinds.td - libsema diagnostics ----------------------===// | 1 //==--- DiagnosticSemaKinds.td - libsema diagnostics ----------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 //===----------------------------------------------------------------------===// | 10 //===----------------------------------------------------------------------===// |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 def warn_missing_exception_specification : Warning< | 479 def warn_missing_exception_specification : Warning< |
480 "%0 is missing exception specification '%1'">; | 480 "%0 is missing exception specification '%1'">; |
481 | 481 |
482 // C++ access checking | 482 // C++ access checking |
483 def err_class_redeclared_with_different_access : Error< | 483 def err_class_redeclared_with_different_access : Error< |
484 "%0 redeclared with '%1' access">; | 484 "%0 redeclared with '%1' access">; |
485 def err_access : Error< | 485 def err_access : Error< |
486 "%1 is a %select{private|protected}0 member of %3">, NoSFINAE; | 486 "%1 is a %select{private|protected}0 member of %3">, NoSFINAE; |
487 def err_access_ctor : Error< | 487 def err_access_ctor : Error< |
488 "calling a %select{private|protected}0 constructor of class %2">, NoSFINAE; | 488 "calling a %select{private|protected}0 constructor of class %2">, NoSFINAE; |
| 489 def ext_rvalue_to_reference_access_ctor : ExtWarn< |
| 490 "C++98 requires an accessible copy constructor for class %2 when binding " |
| 491 "a reference to a temporary; was %select{private|protected}0">, |
| 492 NoSFINAE, InGroup<BindToTemporaryCopy>; |
489 def err_access_base : Error< | 493 def err_access_base : Error< |
490 "%select{base class|inherited virtual base class}0 %1 has %select{private|" | 494 "%select{base class|inherited virtual base class}0 %1 has %select{private|" |
491 "protected}3 %select{constructor|copy constructor|copy assignment operator|" | 495 "protected}3 %select{constructor|copy constructor|copy assignment operator|" |
492 "destructor}2">, NoSFINAE; | 496 "destructor}2">, NoSFINAE; |
493 def err_access_field: Error< | 497 def err_access_field: Error< |
494 "field of type %0 has %select{private|protected}2 %select{constructor|copy " | 498 "field of type %0 has %select{private|protected}2 %select{constructor|copy " |
495 "constructor|copy assignment operator|destructor}1">, NoSFINAE; | 499 "constructor|copy assignment operator|destructor}1">, NoSFINAE; |
496 | 500 |
497 def err_access_ctor_field : | 501 def err_access_ctor_field : |
498 Error<"field of type %1 has %select{private|protected}2 constructor">, | 502 Error<"field of type %1 has %select{private|protected}2 constructor">, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 "uninitialized reference member is here">; | 744 "uninitialized reference member is here">; |
741 def warn_field_is_uninit : Warning<"field is uninitialized when used here">, | 745 def warn_field_is_uninit : Warning<"field is uninitialized when used here">, |
742 InGroup<DiagGroup<"uninitialized">>; | 746 InGroup<DiagGroup<"uninitialized">>; |
743 def err_init_incomplete_type : Error<"initialization of incomplete type %0">; | 747 def err_init_incomplete_type : Error<"initialization of incomplete type %0">; |
744 | 748 |
745 def err_temp_copy_no_viable : Error< | 749 def err_temp_copy_no_viable : Error< |
746 "no viable constructor %select{copying variable|copying parameter|" | 750 "no viable constructor %select{copying variable|copying parameter|" |
747 "returning object|throwing object|copying member subobject|copying array " | 751 "returning object|throwing object|copying member subobject|copying array " |
748 "element|allocating object|copying temporary|initializing base subobject|" | 752 "element|allocating object|copying temporary|initializing base subobject|" |
749 "initializing vector element}0 of type %1">; | 753 "initializing vector element}0 of type %1">; |
| 754 def ext_rvalue_to_reference_temp_copy_no_viable : ExtWarn< |
| 755 "no viable constructor %select{copying variable|copying parameter|" |
| 756 "returning object|throwing object|copying member subobject|copying array " |
| 757 "element|allocating object|copying temporary|initializing base subobject|" |
| 758 "initializing vector element}0 of type %1; C++98 requires a copy " |
| 759 "constructor when binding a reference to a temporary">, |
| 760 InGroup<BindToTemporaryCopy>; |
750 def err_temp_copy_ambiguous : Error< | 761 def err_temp_copy_ambiguous : Error< |
751 "ambiguous constructor call when %select{copying variable|copying " | 762 "ambiguous constructor call when %select{copying variable|copying " |
752 "parameter|returning object|throwing object|copying member subobject|copying " | 763 "parameter|returning object|throwing object|copying member subobject|copying " |
753 "array element|allocating object|copying temporary|initializing base subobject
|" | 764 "array element|allocating object|copying temporary|initializing base subobject
|" |
754 "initializing vector element}0 of type %1">; | 765 "initializing vector element}0 of type %1">; |
755 def err_temp_copy_deleted : Error< | 766 def err_temp_copy_deleted : Error< |
756 "%select{copying variable|copying parameter|returning object|throwing " | 767 "%select{copying variable|copying parameter|returning object|throwing " |
757 "object|copying member subobject|copying array element|allocating object|" | 768 "object|copying member subobject|copying array element|allocating object|" |
758 "copying temporary|initializing base subobject|initializing vector element}0 " | 769 "copying temporary|initializing base subobject|initializing vector element}0 " |
759 "of type %1 invokes deleted constructor">; | 770 "of type %1 invokes deleted constructor">; |
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3107 "cannot find interface declaration for %0, superclass of %1; did you mean " | 3118 "cannot find interface declaration for %0, superclass of %1; did you mean " |
3108 "%2?">; | 3119 "%2?">; |
3109 def err_undeclared_protocol_suggest : Error< | 3120 def err_undeclared_protocol_suggest : Error< |
3110 "cannot find protocol declaration for %0; did you mean %1?">; | 3121 "cannot find protocol declaration for %0; did you mean %1?">; |
3111 def note_base_class_specified_here : Note< | 3122 def note_base_class_specified_here : Note< |
3112 "base class %0 specified here">; | 3123 "base class %0 specified here">; |
3113 | 3124 |
3114 } // end of sema category | 3125 } // end of sema category |
3115 } // end of sema component. | 3126 } // end of sema component. |
3116 | 3127 |
OLD | NEW |