clang 22.0.0git
IssueHash.cpp File Reference
#include "clang/Analysis/IssueHash.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/LineIterator.h"
#include "llvm/Support/MD5.h"
#include <optional>
#include <sstream>
#include <string>

Go to the source code of this file.

Functions

static std::string GetSignature (const FunctionDecl *Target)
static std::string GetEnclosingDeclContextSignature (const Decl *D)
static StringRef GetNthLineOfFile (std::optional< llvm::MemoryBufferRef > Buffer, int Line)
static std::string NormalizeLine (const SourceManager &SM, const FullSourceLoc &L, const LangOptions &LangOpts)
static llvm::SmallString< 32 > GetMD5HashOfContent (StringRef Content)

Function Documentation

◆ GetEnclosingDeclContextSignature()

std::string GetEnclosingDeclContextSignature ( const Decl * D)
static

Definition at line 85 of file IssueHash.cpp.

References GetSignature().

◆ GetMD5HashOfContent()

llvm::SmallString< 32 > GetMD5HashOfContent ( StringRef Content)
static

Definition at line 169 of file IssueHash.cpp.

◆ GetNthLineOfFile()

StringRef GetNthLineOfFile ( std::optional< llvm::MemoryBufferRef > Buffer,
int Line )
static

Definition at line 121 of file IssueHash.cpp.

References clang::Line.

Referenced by NormalizeLine().

◆ GetSignature()

std::string GetSignature ( const FunctionDecl * Target)
static

Definition at line 28 of file IssueHash.cpp.

References clang::isa(), clang::RQ_LValue, and clang::RQ_RValue.

Referenced by GetEnclosingDeclContextSignature().

◆ NormalizeLine()