We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aeaf52 commit 7900e17Copy full SHA for 7900e17
clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
@@ -234,12 +234,10 @@ void QualifiedAutoCheck::check(const MatchFinder::MatchResult &Result) {
234
}
235
236
const std::string ReplStr = [&] {
237
- const StringRef PtrConst =
238
- isPointerConst(Var->getType()) ? "const " : "";
+ const StringRef PtrConst = isPointerConst(Var->getType()) ? "const " : "";
239
const StringRef LocalConst = IsLocalConst ? "const " : "";
240
const StringRef LocalVol = IsLocalVolatile ? "volatile " : "";
241
- const StringRef LocalRestrict =
242
- IsLocalRestrict ? "__restrict " : "";
+ const StringRef LocalRestrict = IsLocalRestrict ? "__restrict " : "";
243
return (PtrConst + "auto *" + LocalConst + LocalVol + LocalRestrict)
244
.str();
245
}();
0 commit comments