mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
instrumentation further move to C++11 (#900)
This commit is contained in:
parent
6dc82e620b
commit
c3b19f5bf8
@ -177,7 +177,7 @@ int plugin_is_GPL_compatible = 1;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
static const struct pass_data afl_pass_data = {
|
static constexpr struct pass_data afl_pass_data = {
|
||||||
|
|
||||||
.type = GIMPLE_PASS,
|
.type = GIMPLE_PASS,
|
||||||
.name = "afl",
|
.name = "afl",
|
||||||
@ -503,7 +503,7 @@ struct afl_pass : gimple_opt_pass {
|
|||||||
// Starting from "LLVMFuzzer" these are functions used in libfuzzer based
|
// Starting from "LLVMFuzzer" these are functions used in libfuzzer based
|
||||||
// fuzzing campaign installations, e.g. oss-fuzz
|
// fuzzing campaign installations, e.g. oss-fuzz
|
||||||
|
|
||||||
static const char *ignoreList[] = {
|
static constexpr const char *ignoreList[] = {
|
||||||
|
|
||||||
"asan.",
|
"asan.",
|
||||||
"llvm.",
|
"llvm.",
|
||||||
|
@ -55,7 +55,7 @@ bool isIgnoreFunction(const llvm::Function *F) {
|
|||||||
// Starting from "LLVMFuzzer" these are functions used in libfuzzer based
|
// Starting from "LLVMFuzzer" these are functions used in libfuzzer based
|
||||||
// fuzzing campaign installations, e.g. oss-fuzz
|
// fuzzing campaign installations, e.g. oss-fuzz
|
||||||
|
|
||||||
static const char *ignoreList[] = {
|
static constexpr const char *ignoreList[] = {
|
||||||
|
|
||||||
"asan.",
|
"asan.",
|
||||||
"llvm.",
|
"llvm.",
|
||||||
@ -94,7 +94,7 @@ bool isIgnoreFunction(const llvm::Function *F) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *ignoreSubstringList[] = {
|
static constexpr const char *ignoreSubstringList[] = {
|
||||||
|
|
||||||
"__asan", "__msan", "__ubsan", "__lsan",
|
"__asan", "__msan", "__ubsan", "__lsan",
|
||||||
"__san", "__sanitize", "__cxx", "_GLOBAL__",
|
"__san", "__sanitize", "__cxx", "_GLOBAL__",
|
||||||
|
@ -89,7 +89,7 @@ class SplitSwitchesTransform : public ModulePass {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<CaseExpr> CaseVector;
|
using CaseVector = std::vector<CaseExpr>;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool splitSwitches(Module &M);
|
bool splitSwitches(Module &M);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user