From: Benjamin Kramer Date: Mon, 13 Jul 2015 20:42:13 +0000 (+0000) Subject: Move class into an anonymous namespace. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7dc5bbe620eed01b6f4cd5a136ceac6a79f5837;p=clang Move class into an anonymous namespace. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242064 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 18e07776ae..f42c4b7546 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1232,6 +1232,7 @@ Sema::FindProtocolDeclaration(bool WarnOnDeclarations, bool ForObjCContainer, } } +namespace { // Callback to only accept typo corrections that are either // Objective-C protocols or valid Objective-C type arguments. class ObjCTypeArgOrProtocolValidatorCCC : public CorrectionCandidateCallback { @@ -1282,6 +1283,7 @@ class ObjCTypeArgOrProtocolValidatorCCC : public CorrectionCandidateCallback { return false; } }; +} // end anonymous namespace void Sema::actOnObjCTypeArgsOrProtocolQualifiers( Scope *S,