mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This largely copies over Spicy's `.clang-format` configuration file. The one place where we deviate is header include order since Zeek depends on headers being included in a certain order.
37 lines
616 B
C++
37 lines
616 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace zeek::detail {
|
|
|
|
using int_list = std::vector<std::intptr_t>;
|
|
|
|
class CCL {
|
|
public:
|
|
CCL();
|
|
~CCL();
|
|
|
|
void Add(int sym);
|
|
void Negate();
|
|
bool IsNegated() { return negated != 0; }
|
|
int Index() { return index; }
|
|
|
|
void Sort();
|
|
|
|
int_list* Syms() { return syms; }
|
|
|
|
void ReplaceSyms(int_list* new_syms) {
|
|
delete syms;
|
|
syms = new_syms;
|
|
}
|
|
|
|
protected:
|
|
int_list* syms;
|
|
int negated;
|
|
int index;
|
|
};
|
|
|
|
} // namespace zeek::detail
|