File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,10 @@ void MethodHidingCheck::check(const MatchFinder::MatchResult &Result) {
130130 llvm_unreachable (" Required binding not found" );
131131 }
132132
133- auto const MethodName = ShadowingMethod->getNameInfo ().getAsString ();
134- auto const DerivedClassName = DerivedClass->getNameAsString ();
135- const std::string BaseClassName = BaseMethod->getParent ()->getNameAsString ();
136-
137- std::string Message;
138- llvm::raw_string_ostream StringStream (Message);
139- StringStream << " '" << ShadowingMethod->getQualifiedNameAsString ()
140- << " ' hides same method in '" << BaseClassName << " '" ;
141- diag (ShadowingMethod->getBeginLoc (), Message);
133+ diag (ShadowingMethod->getBeginLoc (),
134+ " '" + ShadowingMethod->getQualifiedNameAsString () +
135+ " ' hides same method in '" +
136+ BaseMethod->getParent ()->getNameAsString () + " '" );
142137 diag (BaseMethod->getBeginLoc (), " previous definition is here" ,
143138 DiagnosticIDs::Note);
144139}
You can’t perform that action at this time.
0 commit comments