clang 20.0.0git
Namespaces | Macros | Functions
CoverageMappingGen.cpp File Reference
#include "CoverageMappingGen.h"
#include "CodeGenFunction.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/FileManager.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
#include "llvm/ProfileData/Coverage/CoverageMappingReader.h"
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include <optional>
#include "llvm/ProfileData/InstrProfData.inc"

Go to the source code of this file.

Namespaces

namespace  llvm
 Diagnostic wrappers for TextAPI types for error reporting.
 
namespace  llvm::coverage
 

Macros

#define COVMAP_V3
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   LLVMType,
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   Init,
 
#define COVMAP_HEADER(Type, LLVMType, Name, Init)   LLVMType,
 
#define COVMAP_HEADER(Type, LLVMType, Name, Init)   Init,
 

Functions

cl::opt< boolllvm::EnableSingleByteCoverage ("enable-single-byte-coverage", llvm::cl::ZeroOrMore, llvm::cl::desc("Enable single byte coverage"), llvm::cl::Hidden, llvm::cl::init(false))
 
static llvm::cl::opt< boolEmptyLineCommentCoverage ("emptyline-comment-coverage", llvm::cl::desc("Emit emptylines and comment lines as skipped regions (only " "disable it on test)"), llvm::cl::init(true), llvm::cl::Hidden)
 
cl::opt< boolllvm::coverage::SystemHeadersCoverage ("system-headers-coverage", cl::desc("Enable collecting coverage from system headers"), cl::init(false), cl::Hidden)
 
static void dump (llvm::raw_ostream &OS, StringRef FunctionName, ArrayRef< CounterExpression > Expressions, ArrayRef< CounterMappingRegion > Regions)
 
static std::string getInstrProfSection (const CodeGenModule &CGM, llvm::InstrProfSectKind SK)
 

Macro Definition Documentation

◆ COVMAP_FUNC_RECORD [1/2]

#define COVMAP_FUNC_RECORD (   Type,
  LLVMType,
  Name,
  Init 
)    LLVMType,

◆ COVMAP_FUNC_RECORD [2/2]

#define COVMAP_FUNC_RECORD (   Type,
  LLVMType,
  Name,
  Init 
)    Init,

◆ COVMAP_HEADER [1/2]

#define COVMAP_HEADER (   Type,
  LLVMType,
  Name,
  Init 
)    LLVMType,

◆ COVMAP_HEADER [2/2]

#define COVMAP_HEADER (   Type,
  LLVMType,
  Name,
  Init 
)    Init,

◆ COVMAP_V3

#define COVMAP_V3

Definition at line 33 of file CoverageMappingGen.cpp.

Function Documentation

◆ dump()

static void dump ( llvm::raw_ostream &  OS,
StringRef  FunctionName,
ArrayRef< CounterExpression >  Expressions,
ArrayRef< CounterMappingRegion >  Regions 
)
static

◆ EmptyLineCommentCoverage()

static llvm::cl::opt< bool > EmptyLineCommentCoverage ( "emptyline-comment-coverage"  ,
llvm::cl::desc("Emit emptylines and comment lines as skipped regions (only " "disable it on test)")  ,
llvm::cl::init(true ,
llvm::cl::Hidden   
)
static

◆ getInstrProfSection()

static std::string getInstrProfSection ( const CodeGenModule CGM,
llvm::InstrProfSectKind  SK 
)
static