Skip to content

Commit

Permalink
Mark internal headers private (#362)
Browse files Browse the repository at this point in the history
Also removed some unused headers and fixed some formatting errors.
  • Loading branch information
CyanoKobalamyne authored Nov 5, 2024
1 parent d9fd584 commit 7aace66
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
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

0 comments on commit 7aace66

Please sign in to comment.