Deleted Added
full compact
20,21c20
< #include <string>
< #include "llvm/ADT/StringRef.h"
---
> #include "llvm/ADT/SmallString.h"
118a118
> const Decl *DeclWithIssue;
120c120,121
< StringRefCheckerVisitor(BugReporter &br) : BR(br) {}
---
> StringRefCheckerVisitor(const Decl *declWithIssue, BugReporter &br)
> : BR(br), DeclWithIssue(declWithIssue) {}
135c136
< StringRefCheckerVisitor walker(BR);
---
> StringRefCheckerVisitor walker(D, BR);
180c181
< BR.EmitBasicReport(desc, "LLVM Conventions", desc,
---
> BR.EmitBasicReport(DeclWithIssue, desc, "LLVM Conventions", desc,
256c257
< llvm::SmallString<1024> buf;
---
> SmallString<1024> buf;
285c286
< BR.EmitBasicReport("AST node allocates heap memory", "LLVM Conventions",
---
> BR.EmitBasicReport(Root, "AST node allocates heap memory", "LLVM Conventions",