forked from OSchip/llvm-project
Remove redundant string initialization (NFC)
Identified with readability-redundant-string-init.
This commit is contained in:
parent
1d9231de70
commit
87d627b623
|
@ -40,7 +40,7 @@ static std::string getTypeStr(const QualType &OrigT, const Decl &D,
|
|||
QualType T = OrigT;
|
||||
PrintingPolicy Policy(D.getASTContext().getLangOpts());
|
||||
Policy.SuppressStrongLifetime = true;
|
||||
std::string Prefix = "";
|
||||
std::string Prefix;
|
||||
// If the nullability is specified via a property attribute, use the shorter
|
||||
// `nullable` form for the method parameter.
|
||||
if (PropertyAttributes & ObjCPropertyAttribute::kind_nullability) {
|
||||
|
|
|
@ -90,7 +90,7 @@ struct OpPassManagerImpl {
|
|||
: name(name == OpPassManager::getAnyOpAnchorName() ? "" : name.str()),
|
||||
initializationGeneration(0), nesting(nesting) {}
|
||||
OpPassManagerImpl(OpPassManager::Nesting nesting)
|
||||
: name(""), initializationGeneration(0), nesting(nesting) {}
|
||||
: initializationGeneration(0), nesting(nesting) {}
|
||||
OpPassManagerImpl(const OpPassManagerImpl &rhs)
|
||||
: name(rhs.name), opName(rhs.opName),
|
||||
initializationGeneration(rhs.initializationGeneration),
|
||||
|
|
Loading…
Reference in New Issue