ΒΆllvm::SmallString<32> getIssueHash(
const clang::FullSourceLoc& IssueLoc,
llvm::StringRef CheckerName,
llvm::StringRef WarningMessage,
const clang::Decl* IssueDecl,
const clang::LangOptions& LangOpts)
llvm::SmallString<32> getIssueHash(
const clang::FullSourceLoc& IssueLoc,
llvm::StringRef CheckerName,
llvm::StringRef WarningMessage,
const clang::Decl* IssueDecl,
const clang::LangOptions& LangOpts)
Description
Returns an opaque identifier for a diagnostic. This opaque identifier is intended to be stable even when the source code is changed. It allows to track diagnostics in the long term, for example, find which diagnostics are "new", maintain a database of suppressed diagnostics etc. We may introduce more variants of issue hashes in the future but older variants will still be available for compatibility. This hash is based on the following information: - Name of the checker that emitted the diagnostic. - Warning message. - Name of the enclosing declaration. - Contents of the line of code with the issue, excluding whitespace. - Column number (but not the line number! - which makes it stable).
Declared at: clang/include/clang/Analysis/IssueHash.h:34
Parameters
- const clang::FullSourceLoc& IssueLoc
- llvm::StringRef CheckerName
- llvm::StringRef WarningMessage
- const clang::Decl* IssueDecl
- const clang::LangOptions& LangOpts