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

Replace include guards with "#pragma once" #506

Merged
merged 1 commit into from
Jul 25, 2023
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 2 additions & 4 deletions connector_api/bind_result.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP_DATABASE_BIND_RESULT_H
#define SQLPP_DATABASE_BIND_RESULT_H

#include <memory>

namespace sqlpp
Expand Down Expand Up @@ -88,4 +87,3 @@ namespace sqlpp
};
}
}
#endif
7 changes: 2 additions & 5 deletions connector_api/connection.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* Copyright (c) 2023, Vesselin Atanasov
Expand Down Expand Up @@ -25,9 +27,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP_DATABASE_CONNECTION_H
#define SQLPP_DATABASE_CONNECTION_H

#include <string>
#include <sqlpp11/connection.h>
#include <sqlpp11/transaction.h>
Expand Down Expand Up @@ -223,5 +222,3 @@ namespace sqlpp
} // namespace sqlpp

#include <sqlpp11/database/interpreter.h>

#endif
7 changes: 2 additions & 5 deletions connector_api/interpreter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP_DATABASE_INTERPRETER_H
#define SQLPP_DATABASE_INTERPRETER_H

#include <sqlpp11/vendor/concat.h>
#include <sqlpp11/vendor/insert_list.h>

Expand Down Expand Up @@ -57,5 +56,3 @@ namespace sqlpp
};
}
}

#endif
6 changes: 2 additions & 4 deletions connector_api/prepared_statement.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP_DATABASE_PREPARED_STATEMENT_H
#define SQLPP_DATABASE_PREPARED_STATEMENT_H

#include <memory>
#include <string>

Expand Down Expand Up @@ -56,4 +55,3 @@ namespace sqlpp
};
}
}
#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_function_operators.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -23,8 +25,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H
#define SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H

namespace sqlpp
{
Expand All @@ -37,6 +37,3 @@ namespace sqlpp
}
};
} // namespace sqlpp

#endif

7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,13 +26,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_H
#define SQLPP11_AGGREGATE_FUNCTIONS_H

#include <sqlpp11/aggregate_functions/count.h>
#include <sqlpp11/aggregate_functions/min.h>
#include <sqlpp11/aggregate_functions/max.h>
#include <sqlpp11/aggregate_functions/avg.h>
#include <sqlpp11/aggregate_functions/sum.h>

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions/avg.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_AVG_H
#define SQLPP11_AGGREGATE_FUNCTIONS_AVG_H

#include <sqlpp11/type_traits.h>
#include <sqlpp11/char_sequence.h>

Expand Down Expand Up @@ -115,5 +114,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions/count.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H
#define SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H

#include <sqlpp11/over.h>
#include <sqlpp11/char_sequence.h>
#include <sqlpp11/select_flags.h>
Expand Down Expand Up @@ -118,5 +117,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions/max.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MAX_H
#define SQLPP11_AGGREGATE_FUNCTIONS_MAX_H

#include <sqlpp11/type_traits.h>
#include <sqlpp11/char_sequence.h>

Expand Down Expand Up @@ -111,5 +110,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions/min.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MIN_H
#define SQLPP11_AGGREGATE_FUNCTIONS_MIN_H

#include <sqlpp11/type_traits.h>
#include <sqlpp11/char_sequence.h>

Expand Down Expand Up @@ -111,5 +110,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/aggregate_functions/sum.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2020, Roland Bock, MacDue
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AGGREGATE_FUNCTIONS_SUM_H
#define SQLPP11_AGGREGATE_FUNCTIONS_SUM_H

#include <sqlpp11/type_traits.h>
#include <sqlpp11/char_sequence.h>

Expand Down Expand Up @@ -115,5 +114,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/alias.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ALIAS_H
#define SQLPP11_ALIAS_H

#include <sqlpp11/type_traits.h>

namespace sqlpp
Expand Down Expand Up @@ -64,5 +63,3 @@ namespace sqlpp
return context;
}
} // namespace sqlpp

#endif
6 changes: 2 additions & 4 deletions include/sqlpp11/alias_operators.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ALIAS_OPERATORS_H
#define SQLPP11_ALIAS_OPERATORS_H

#include <sqlpp11/alias.h>

namespace sqlpp
Expand All @@ -41,4 +40,3 @@ namespace sqlpp
}
};
} // namespace sqlpp
#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/alias_provider.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2016, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ALIAS_PROVIDER_H
#define SQLPP11_ALIAS_PROVIDER_H

#include <type_traits>
#include <sqlpp11/char_sequence.h>

Expand Down Expand Up @@ -126,5 +125,3 @@ namespace sqlpp
SQLPP_ALIAS_PROVIDER(right)
} // namespace alias
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/all_of.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2021, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ALL_OF_H
#define SQLPP11_ALL_OF_H

namespace sqlpp
{
template <typename Table>
Expand All @@ -35,5 +34,3 @@ namespace sqlpp
return {};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/any.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ANY_H
#define SQLPP11_ANY_H

#include <sqlpp11/data_types/boolean.h>
#include <sqlpp11/char_sequence.h>
#include <sqlpp11/detail/type_set.h>
Expand Down Expand Up @@ -70,5 +69,3 @@ namespace sqlpp
return {t};
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/assignment.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_ASSIGNMENT_H
#define SQLPP11_ASSIGNMENT_H

#include <sqlpp11/default_value.h>
#include <sqlpp11/null.h>
#include <sqlpp11/serialize.h>
Expand Down Expand Up @@ -69,5 +68,3 @@ namespace sqlpp
return context;
}
} // namespace sqlpp

#endif
7 changes: 2 additions & 5 deletions include/sqlpp11/auto_alias.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

/*
* Copyright (c) 2013-2015, Roland Bock
* All rights reserved.
Expand All @@ -24,9 +26,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef SQLPP11_AUTO_ALIAS_H
#define SQLPP11_AUTO_ALIAS_H

#include <sqlpp11/alias.h>

namespace sqlpp
Expand Down Expand Up @@ -61,5 +60,3 @@ namespace sqlpp
template <typename T>
using auto_alias_t = typename detail::auto_alias_impl<T>::type;
} // namespace sqlpp

#endif
Loading