================
@@ -162,7 +163,7 @@ IncrementalParser::Parse(llvm::StringRef input) {
}
void IncrementalParser::CleanUpPTU(TranslationUnitDecl *MostRecentTU) {
- if (StoredDeclsMap *Map = MostRecentTU->getPrimaryContext()->getLookupPtr())
{
+ if (auto *Map = MostRecentTU->getPrimaryContext()->getLookupPtr()) {
----------------
zwuis wrote:
Write its real type. Ditto elsewhere.
https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
https://github.com/llvm/llvm-project/pull/178648
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits