Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark internal headers private #362

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <exception>
Expand Down
4 changes: 3 additions & 1 deletion include/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <cstdint>
Expand Down Expand Up @@ -191,7 +193,7 @@ namespace std
return str_hash(o.to_string());
}
};
}
} // namespace std

namespace smt {
// ops that can be applied to n arguments
Expand Down
3 changes: 2 additions & 1 deletion include/smt_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <memory>
Expand Down Expand Up @@ -42,4 +44,3 @@ class AbsDatatype;
using Datatype = std::shared_ptr<AbsDatatype>;

} // namespace smt

2 changes: 2 additions & 0 deletions include/solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <string>
Expand Down
2 changes: 2 additions & 0 deletions include/solver_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <unordered_set>
Expand Down
7 changes: 3 additions & 4 deletions include/sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <string>
#include <unordered_set>
#include <vector>

#include "ops.h"
#include "datatype.h"
#include "smt_defs.h"

// Sort needs to have arguments
Expand Down Expand Up @@ -113,5 +113,4 @@ struct hash<smt::Sort>
{
size_t operator()(const smt::Sort & s) const { return s->hash(); }
};
}

} // namespace std
3 changes: 2 additions & 1 deletion include/term.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
**
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <iostream>
Expand Down Expand Up @@ -193,4 +195,3 @@ namespace std
}
};
}

3 changes: 2 additions & 1 deletion include/term_translator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
** symbols, which would throw an exception).
**/

// IWYU pragma: private, include "smt.h"

#pragma once

#include <unordered_map>
Expand Down Expand Up @@ -156,4 +158,3 @@ class TermTranslator
std::unordered_map<std::string, Sort> uninterpreted_sorts;
};
} // namespace smt