Skip to content

Commit 8aeaf52

Browse files
authored
Apply suggestions from code review
1 parent 2e953e7 commit 8aeaf52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

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

236236
const std::string ReplStr = [&] {
237-
const llvm::StringRef PtrConst =
237+
const StringRef PtrConst =
238238
isPointerConst(Var->getType()) ? "const " : "";
239-
const llvm::StringRef LocalConst = IsLocalConst ? "const " : "";
240-
const llvm::StringRef LocalVol = IsLocalVolatile ? "volatile " : "";
241-
const llvm::StringRef LocalRestrict =
239+
const StringRef LocalConst = IsLocalConst ? "const " : "";
240+
const StringRef LocalVol = IsLocalVolatile ? "volatile " : "";
241+
const StringRef LocalRestrict =
242242
IsLocalRestrict ? "__restrict " : "";
243243
return (PtrConst + "auto *" + LocalConst + LocalVol + LocalRestrict)
244244
.str();

0 commit comments

Comments
 (0)