-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIgnorableCalls.hpp
33 lines (28 loc) · 1.03 KB
/
IgnorableCalls.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: GPL-3.0-only
/**
* @file IgnorableCalls.hpp
*
* @copyright Copyright (C) 2021-2024 srcML, LLC. (www.srcML.org)
*
* This file is part of the Stereocode application.
*/
#ifndef IGNORABLECALLS_HPP
#define IGNORABLECALLS_HPP
#include <string>
#include <fstream>
#include <unordered_set>
#include <unordered_map>
#include <vector>
#include <iostream>
class ignorableCalls {
public:
bool isIgnored (const std::string&, const std::string&);
void addCall (const std::string&);
void createCallList ();
void outputCalls ();
friend std::istream& operator>> (std::istream&, ignorableCalls&);
private:
std::unordered_map<std::string, std::unordered_set<std::string>> ignoredCalls; // List of calls to ignore
std::unordered_set<std::string> userIgnoredCalls; // List of user-defined calls to ignore
};
#endif