]> granicus.if.org Git - clang/commitdiff
Move class into an anonymous namespace. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 13 Jul 2015 20:42:13 +0000 (20:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 13 Jul 2015 20:42:13 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 18e07776aee3bf9f1100c57937064ba05fe64022..f42c4b7546ce0e25ff3b3b00f70057cbeb12526d 100644 (file)
@@ -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,