Skip to content

Commit 7900e17

Browse files
authored
Apply suggestion
1 parent 8aeaf52 commit 7900e17

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,10 @@ void QualifiedAutoCheck::check(const MatchFinder::MatchResult &Result) {
234234
}
235235

236236
const std::string ReplStr = [&] {
237-
const StringRef PtrConst =
238-
isPointerConst(Var->getType()) ? "const " : "";
237+
const StringRef PtrConst = isPointerConst(Var->getType()) ? "const " : "";
239238
const StringRef LocalConst = IsLocalConst ? "const " : "";
240239
const StringRef LocalVol = IsLocalVolatile ? "volatile " : "";
241-
const StringRef LocalRestrict =
242-
IsLocalRestrict ? "__restrict " : "";
240+
const StringRef LocalRestrict = IsLocalRestrict ? "__restrict " : "";
243241
return (PtrConst + "auto *" + LocalConst + LocalVol + LocalRestrict)
244242
.str();
245243
}();

0 commit comments

Comments
 (0)