Replace guards by pragma once.

* iface/ltsmin/ltsmin.hh, src/bin/common_aoutput.hh,
src/bin/common_conv.hh, src/bin/common_cout.hh,
src/bin/common_file.hh, src/bin/common_finput.hh,
src/bin/common_output.hh, src/bin/common_post.hh,
src/bin/common_r.hh, src/bin/common_range.hh,
src/bin/common_setup.hh, src/bin/common_sys.hh,
src/bin/common_trans.hh, src/dstarparse/parsedecl.hh,
src/dstarparse/public.hh, src/graph/graph.hh,
src/graph/ngraph.hh, src/hoaparse/parsedecl.hh,
src/hoaparse/public.hh, src/kripke/fairkripke.hh,
src/kripke/fwd.hh, src/kripke/kripke.hh,
src/kripke/kripkeexplicit.hh, src/kripke/kripkeprint.hh,
src/kripkeparse/parsedecl.hh, src/kripkeparse/public.hh,
src/ltlast/allnodes.hh, src/ltlast/atomic_prop.hh,
src/ltlast/binop.hh, src/ltlast/bunop.hh,
src/ltlast/constant.hh, src/ltlast/formula.hh,
src/ltlast/multop.hh, src/ltlast/predecl.hh,
src/ltlast/unop.hh, src/ltlast/visitor.hh,
src/ltlenv/declenv.hh, src/ltlenv/defaultenv.hh,
src/ltlenv/environment.hh, src/ltlparse/parsedecl.hh,
src/ltlparse/public.hh, src/ltlvisit/apcollect.hh,
src/ltlvisit/clone.hh, src/ltlvisit/contain.hh,
src/ltlvisit/dotty.hh, src/ltlvisit/dump.hh,
src/ltlvisit/lbt.hh, src/ltlvisit/length.hh,
src/ltlvisit/lunabbrev.hh, src/ltlvisit/mark.hh,
src/ltlvisit/mutation.hh, src/ltlvisit/nenoform.hh,
src/ltlvisit/postfix.hh, src/ltlvisit/randomltl.hh,
src/ltlvisit/relabel.hh, src/ltlvisit/remove_x.hh,
src/ltlvisit/simpfg.hh, src/ltlvisit/simplify.hh,
src/ltlvisit/snf.hh, src/ltlvisit/tostring.hh,
src/ltlvisit/tunabbrev.hh, src/ltlvisit/wmunabbrev.hh,
src/misc/bareword.hh, src/misc/bddlt.hh, src/misc/bitvect.hh,
src/misc/casts.hh, src/misc/common.hh, src/misc/escape.hh,
src/misc/fixpool.hh, src/misc/formater.hh, src/misc/hash.hh,
src/misc/hashfunc.hh, src/misc/intvcmp2.hh,
src/misc/intvcomp.hh, src/misc/location.hh, src/misc/ltstr.hh,
src/misc/memusage.hh, src/misc/minato.hh, src/misc/mspool.hh,
src/misc/optionmap.hh, src/misc/position.hh, src/misc/random.hh,
src/misc/satsolver.hh, src/misc/timer.hh, src/misc/tmpfile.hh,
src/misc/version.hh, src/priv/accmap.hh, src/priv/bddalloc.hh,
src/priv/freelist.hh, src/ta/ta.hh, src/ta/taexplicit.hh,
src/ta/taproduct.hh, src/ta/tgta.hh, src/ta/tgtaexplicit.hh,
src/ta/tgtaproduct.hh, src/taalgos/dotty.hh,
src/taalgos/emptinessta.hh, src/taalgos/minimize.hh,
src/taalgos/reachiter.hh, src/taalgos/statessetbuilder.hh,
src/taalgos/stats.hh, src/taalgos/tgba2ta.hh,
src/tgba/acc.hh, src/tgba/bdddict.hh,
src/tgba/bddprint.hh, src/tgba/formula2bdd.hh, src/tgba/fwd.hh,
src/tgba/taatgba.hh, src/tgba/tgba.hh, src/tgba/tgbagraph.hh,
src/tgba/tgbamask.hh, src/tgba/tgbaproduct.hh, src/tgba/tgbaproxy.hh,
src/tgba/tgbasafracomplement.hh, src/tgbaalgos/are_isomorphic.hh,
src/tgbaalgos/bfssteps.hh, src/tgbaalgos/canonicalize.hh,
src/tgbaalgos/cleanacc.hh, src/tgbaalgos/complete.hh,
src/tgbaalgos/compsusp.hh, src/tgbaalgos/cycles.hh,
src/tgbaalgos/degen.hh, src/tgbaalgos/dotty.hh,
src/tgbaalgos/dtbasat.hh, src/tgbaalgos/dtgbacomp.hh,
src/tgbaalgos/dtgbasat.hh, src/tgbaalgos/dupexp.hh,
src/tgbaalgos/emptiness.hh, src/tgbaalgos/emptiness_stats.hh,
src/tgbaalgos/gtec/ce.hh, src/tgbaalgos/gtec/gtec.hh,
src/tgbaalgos/gtec/sccstack.hh, src/tgbaalgos/gtec/status.hh,
src/tgbaalgos/gv04.hh, src/tgbaalgos/hoa.hh, src/tgbaalgos/isdet.hh,
src/tgbaalgos/isweakscc.hh, src/tgbaalgos/lbtt.hh,
src/tgbaalgos/ltl2taa.hh, src/tgbaalgos/ltl2tgba_fm.hh,
src/tgbaalgos/magic.hh, src/tgbaalgos/mask.hh,
src/tgbaalgos/minimize.hh, src/tgbaalgos/neverclaim.hh,
src/tgbaalgos/postproc.hh, src/tgbaalgos/powerset.hh,
src/tgbaalgos/product.hh, src/tgbaalgos/projrun.hh,
src/tgbaalgos/randomgraph.hh, src/tgbaalgos/randomize.hh,
src/tgbaalgos/reachiter.hh, src/tgbaalgos/reducerun.hh,
src/tgbaalgos/relabel.hh, src/tgbaalgos/remfin.hh,
src/tgbaalgos/replayrun.hh, src/tgbaalgos/safety.hh,
src/tgbaalgos/sbacc.hh, src/tgbaalgos/scc.hh,
src/tgbaalgos/sccfilter.hh, src/tgbaalgos/sccinfo.hh,
src/tgbaalgos/se05.hh, src/tgbaalgos/simulation.hh,
src/tgbaalgos/stats.hh, src/tgbaalgos/stripacc.hh,
src/tgbaalgos/stutter.hh, src/tgbaalgos/tau03.hh,
src/tgbaalgos/tau03opt.hh, src/tgbaalgos/translate.hh,
src/tgbaalgos/weight.hh, src/tgbaalgos/word.hh,
src/sanity/includes.test, src/tgbaalgos/ndfs_result.hxx: here.
This commit is contained in:
Etienne Renault 2015-03-20 15:15:37 +01:00
parent b8bc619ddf
commit 57cd9f2d2c
172 changed files with 352 additions and 946 deletions

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BAREWORD_HH
# define SPOT_MISC_BAREWORD_HH
#pragma once
# include "common.hh"
# include <string>
#include "common.hh"
#include <string>
namespace spot
{
@ -49,5 +48,3 @@ namespace spot
SPOT_API bool is_spin_ap(const char* str);
/// @}
}
#endif // SPOT_MISC_BAREWORD_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BDDLT_HH
# define SPOT_MISC_BDDLT_HH
#pragma once
# include <bddx.h>
# include <functional>
#include <bddx.h>
#include <functional>
namespace spot
{
@ -51,7 +50,4 @@ namespace spot
return b.id();
}
};
}
#endif // SPOT_MISC_BDDLT_HH

View file

@ -17,16 +17,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_BITVECT_HH
# define SPOT_MISC_BITVECT_HH
#pragma once
# include "common.hh"
# include <cstddef>
# include <cstdlib>
# include <cassert>
# include <iosfwd>
# include <iostream>
# include <algorithm>
#include "common.hh"
#include <cstddef>
#include <cstdlib>
#include <cassert>
#include <iosfwd>
#include <iostream>
#include <algorithm>
namespace spot
{
@ -533,6 +532,3 @@ namespace spot
/// @}
}
#endif // SPOT_MISC_BITVECT_HH

View file

@ -17,9 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_CASTS_HH
# define SPOT_MISC_CASTS_HH
#pragma once
// We usually write code like
// subclass* i = down_cast<subclass*>(m);
@ -35,5 +33,3 @@
#else
# define down_cast dynamic_cast
#endif
#endif // SPOT_MISC_CASTS_HH

View file

@ -20,8 +20,7 @@
#include <cstdlib>
#include <stdexcept>
#ifndef SPOT_MISC_COMMON_HH
# define SPOT_MISC_COMMON_HH
#pragma once
#ifdef __GNUC__
#define SPOT_LIKELY(expr) __builtin_expect(!!(expr), 1)
@ -110,5 +109,3 @@
// Useful when forwarding methods such as:
// auto func(int param) SPOT_RETURN(implem_.func(param));
#define SPOT_RETURN(code) -> decltype(code) { return code; }
#endif // SPOT_MISC_COMMON_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_ESCAPE_HH
# define SPOT_MISC_ESCAPE_HH
#pragma once
# include "common.hh"
# include <iosfwd>
# include <string>
#include "common.hh"
#include <iosfwd>
#include <string>
namespace spot
{
@ -68,5 +67,3 @@ namespace spot
trim(std::string& str);
/// @}
}
#endif // SPOT_MISC_ESCAPE_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_FIXPOOL_HH
# define SPOT_MISC_FIXPOOL_HH
#pragma once
#include <new>
#include <cstddef>
@ -109,7 +108,4 @@ namespace spot
// chunk = several agglomerated blocks
union chunk_ { chunk_* prev; char data_[1]; }* chunklist_;
};
}
#endif // SPOT_MISC_FIXPOOL_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_FORMATER_HH
#define SPOT_MISC_FORMATER_HH
#pragma once
#include "common.hh"
#include <iostream>
@ -198,7 +197,4 @@ namespace spot
protected:
std::ostream* output_;
};
}
#endif // SPOT_MISC_FORMATER_HH

View file

@ -20,16 +20,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_HASH_HH
# define SPOT_MISC_HASH_HH
#pragma once
# include <string>
# include <functional>
# include "misc/hashfunc.hh"
# include "misc/_config.h"
#include <string>
#include <functional>
#include "misc/hashfunc.hh"
#include "misc/_config.h"
# include <unordered_map>
# include <unordered_set>
#include <unordered_map>
#include <unordered_set>
namespace spot
{
@ -89,7 +88,4 @@ namespace spot
static_cast<size_t>(uh(p.second)));
}
};
}
#endif // SPOT_MISC_HASH_HH

View file

@ -20,9 +20,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_HASHFUNC_HH
# define SPOT_MISC_HASHFUNC_HH
# include <cstddef>
#pragma once
#include <cstddef>
namespace spot
{
@ -62,5 +62,3 @@ namespace spot
}
/// @}
}
#endif // SPOT_MISC_HASHFUNC_HH

View file

@ -17,12 +17,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_INTVCMP2_HH
# define SPOT_MISC_INTVCMP2_HH
#pragma once
# include "common.hh"
# include <vector>
# include <stddef.h>
#include "common.hh"
#include <vector>
#include <stddef.h>
namespace spot
{
@ -49,5 +48,3 @@ namespace spot
/// @}
}
#endif // SPOT_MISC_INTVCMP2_HH

View file

@ -17,12 +17,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_INTVCOMP_HH
# define SPOT_MISC_INTVCOMP_HH
#pragma once
# include "common.hh"
# include <vector>
# include <stddef.h>
#include "common.hh"
#include <vector>
#include <stddef.h>
namespace spot
{
@ -74,5 +73,3 @@ namespace spot
/// @}
}
#endif // SPOT_MISC_INTVCOMP_HH

View file

@ -33,10 +33,9 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef SPOT_MISC_LOCATION_HH
# define SPOT_MISC_LOCATION_HH
#pragma once
# include "position.hh"
#include "position.hh"
namespace spot
{
@ -168,5 +167,3 @@ namespace spot
return ostr;
}
}
#endif // SPOT_MISC_LOCATION_HH

View file

@ -20,11 +20,10 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_LTSTR_HH
# define SPOT_MISC_LTSTR_HH
#pragma once
# include <cstring>
# include <functional>
#include <cstring>
#include <functional>
namespace spot
{
@ -50,5 +49,3 @@ namespace spot
}
};
}
#endif // SPOT_MISC_LTSTR_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MEMUSAGE_HH
# define SPOT_MISC_MEMUSAGE_HH
#pragma once
#include "common.hh"
@ -33,5 +32,3 @@ namespace spot
/// -1 otherwise.
SPOT_API int memusage();
}
#endif // SPOT_MISC_MEMUSAGE_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MINATO_HH
# define SPOT_MISC_MINATO_HH
#pragma once
# include "common.hh"
# include <bddx.h>
# include <stack>
#include "common.hh"
#include <bddx.h>
#include <stack>
namespace spot
{
@ -92,5 +91,3 @@ namespace spot
bdd ret_;
};
}
#endif // SPOT_MISC_MINATO_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_MSPOOL_HH
# define SPOT_MISC_MSPOOL_HH
#pragma once
#include <new>
#include <cstddef>
@ -124,7 +123,4 @@ namespace spot
// chunk = several agglomerated blocks
union chunk_ { chunk_* prev; char data_[1]; }* chunklist_;
};
}
#endif // SPOT_MISC_INTVPOOL_HH

View file

@ -20,8 +20,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_OPTIONMAP_HH
# define SPOT_MISC_OPTIONMAP_HH
#pragma once
#include "common.hh"
#include <string>
@ -87,5 +86,3 @@ namespace spot
std::map<std::string, int> options_;
};
}
#endif // SPOT_MISC_OPTIONMAP_HH

View file

@ -33,20 +33,19 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef SPOT_MISC_POSITION_HH
# define SPOT_MISC_POSITION_HH
#pragma once
# include <algorithm> // std::max
# include <iostream>
# include <string>
#include <algorithm> // std::max
#include <iostream>
#include <string>
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr
# else
# define YY_NULL 0
# endif
#ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr
# else
# define YY_NULL 0
# endif
#endif
namespace spot
@ -162,8 +161,4 @@ namespace spot
ostr << *pos.filename << ':';
return ostr << pos.line << '.' << pos.column;
}
}
#endif // SPOT_MISC_POSITION_HH

View file

@ -20,12 +20,11 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_RANDOM_HH
# define SPOT_MISC_RANDOM_HH
#pragma once
# include "common.hh"
# include <cmath>
# include <vector>
#include "common.hh"
#include <cmath>
#include <vector>
namespace spot
{
@ -137,5 +136,3 @@ namespace spot
}
/// @}
}
#endif // SPOT_MISC_RANDOM_HH

View file

@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_SATSOLVER_HH
#define SPOT_MISC_SATSOLVER_HH
#pragma once
#include "common.hh"
#include "tmpfile.hh"
@ -99,5 +98,3 @@ namespace spot
SPOT_API satsolver::solution
satsolver_get_solution(const char* filename);
}
#endif // SPOT_MISC_SATSOLVER_HH

View file

@ -20,20 +20,19 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_TIMER_HH
# define SPOT_MISC_TIMER_HH
#pragma once
# include "common.hh"
# include "misc/_config.h"
# include <cassert>
# include <iosfwd>
# include <string>
# include <map>
# include <chrono>
# if SPOT_HAVE_SYS_TIMES_H
# include <sys/times.h>
# endif
# include <ctime>
#include "common.hh"
#include "misc/_config.h"
#include <cassert>
#include <iosfwd>
#include <string>
#include <map>
#include <chrono>
#if SPOT_HAVE_SYS_TIMES_H
# include <sys/times.h>
#endif
#include <ctime>
namespace spot
@ -247,5 +246,3 @@ namespace spot
/// @}
}
#endif // SPOT_MISC_TIMER_HH

View file

@ -17,15 +17,14 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_TMPFILE_HH
# define SPOT_MISC_TMPFILE_HH
#pragma once
# include "common.hh"
# include <new>
# include <stdexcept>
# include <iostream>
# include <list>
# include "formater.hh"
#include "common.hh"
#include <new>
#include <stdexcept>
#include <iostream>
#include <list>
#include "formater.hh"
namespace spot
{
@ -138,6 +137,3 @@ namespace spot
/// @}
}
#endif // SPOT_MISC_TMPFILE_HH

View file

@ -20,10 +20,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef SPOT_MISC_VERSION_HH
# define SPOT_MISC_VERSION_HH
#pragma once
# include "common.hh"
#include "common.hh"
namespace spot
{
@ -31,5 +30,3 @@ namespace spot
/// \brief Return Spot's version.
SPOT_API const char* version();
}
#endif // SPOT_MISC_VERSION_HH