clang  14.0.0git
Functions
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/Basic/Specifiers.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/LineIterator.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/Path.h"
#include <functional>
#include <sstream>
#include <string>
Include dependency graph for IssueHash.cpp:

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 (llvm::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()

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

Definition at line 88 of file IssueHash.cpp.

References GetSignature(), and string().

◆ GetMD5HashOfContent()

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

Definition at line 172 of file IssueHash.cpp.

◆ GetNthLineOfFile()

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

Definition at line 124 of file IssueHash.cpp.

References Line.

◆ GetSignature()

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

Definition at line 31 of file IssueHash.cpp.

References clang::RQ_LValue, clang::RQ_RValue, string(), and clang::Target.

Referenced by GetEnclosingDeclContextSignature().

◆ NormalizeLine()

static std::string NormalizeLine ( const SourceManager SM,
const FullSourceLoc L,
const LangOptions LangOpts 
)
static

Definition at line 136 of file IssueHash.cpp.