forked from OSchip/llvm-project
Add a subgroup of -Wreturn-type, -Wreturn-type-c-linkage.
llvm-svn: 150418
This commit is contained in:
parent
0c46b2b7ce
commit
4809fc1d9d
|
@ -142,7 +142,8 @@ def PoundPragmaMessage : DiagGroup<"#pragma-messages">,
|
|||
DiagCategory<"#pragma message Directive">;
|
||||
def : DiagGroup<"pointer-to-int-cast">;
|
||||
def : DiagGroup<"redundant-decls">;
|
||||
def ReturnType : DiagGroup<"return-type">;
|
||||
def ReturnTypeCLinkage : DiagGroup<"return-type-c-linkage">;
|
||||
def ReturnType : DiagGroup<"return-type", [ReturnTypeCLinkage]>;
|
||||
def BindToTemporaryCopy : DiagGroup<"bind-to-temporary-copy",
|
||||
[CXX98CompatBindToTemporaryCopy]>;
|
||||
def SelfAssignment : DiagGroup<"self-assign">;
|
||||
|
|
|
@ -163,7 +163,7 @@ def warn_return_value_size: Warning<
|
|||
"pass it by reference instead ?">, InGroup<LargeByValueCopy>;
|
||||
def warn_return_value_udt: Warning<
|
||||
"%0 has C-linkage specified, but returns user-defined type %1 which is "
|
||||
"incompatible with C">, InGroup<ReturnType>;
|
||||
"incompatible with C">, InGroup<ReturnTypeCLinkage>;
|
||||
def warn_implicit_function_decl : Warning<
|
||||
"implicit declaration of function %0">,
|
||||
InGroup<ImplicitFunctionDeclare>, DefaultIgnore;
|
||||
|
|
Loading…
Reference in New Issue