Skip to content

Commit 0c8d1eb

Browse files
authored
CPP-770 Fix header file include guards (__CASS_XXX to DATASTAX_XXX) (#234)
* Fix header include guards * Move cassconfig.hpp.in to driver_config.hpp.in
1 parent 53354e9 commit 0c8d1eb

170 files changed

Lines changed: 349 additions & 349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cpp-driver/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Testing
5050
Debug
5151
demo/cassandra_demo
5252
test/unit_tests/cassandra_test
53-
src/cassconfig.hpp
53+
src/driver_config.hpp
5454

5555
# API docs files
5656
Doxyfile

cpp-driver/cmake/modules/CppDriver.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ endmacro()
998998
#------------------------
999999
# CassConfigure
10001000
#
1001-
# Generate cassconfig.hpp from cassconfig.hpp.in
1001+
# Generate driver_config.hpp from driver_config.hpp.in
10021002
#
10031003
# Input: CASS_ROOT_DIR, CASS_SRC_DIR
10041004
#------------------------
@@ -1034,6 +1034,6 @@ macro(CassConfigure)
10341034
check_cxx_source_compiles("int main() { return __builtin_bswap64(42); }" HAVE_BUILTIN_BSWAP64)
10351035
endif()
10361036
1037-
# Generate the cassconfig.hpp file
1038-
configure_file(${CASS_ROOT_DIR}/cassconfig.hpp.in ${CASS_SRC_DIR}/cassconfig.hpp)
1037+
# Generate the driver_config.hpp file
1038+
configure_file(${CASS_ROOT_DIR}/driver_config.hpp.in ${CASS_SRC_DIR}/driver_config.hpp)
10391039
endmacro()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __CASSANDRA_CONFIG_HPP_INCLUDED__
2-
#define __CASSANDRA_CONFIG_HPP_INCLUDED__
1+
#ifndef DATASTAX_INTERNAL_DRIVER_CONFIG_HPP
2+
#define DATASTAX_INTERNAL_DRIVER_CONFIG_HPP
33

44
#cmakedefine HAVE_OPENSSL
55
#cmakedefine HAVE_STD_ATOMIC

cpp-driver/gtests/src/unit/test_token_map_utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
#ifndef __CASS_TEST_TOKEN_MAP_UTILS_HPP_INCLUDED__
18-
#define __CASS_TEST_TOKEN_MAP_UTILS_HPP_INCLUDED__
17+
#ifndef DATASTAX_TEST_TOKEN_MAP_UTILS_HPP
18+
#define DATASTAX_TEST_TOKEN_MAP_UTILS_HPP
1919

2020
#include "constants.hpp"
2121
#include "decoder.hpp"

cpp-driver/packaging/build_deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ release=1
3939
dist=$(lsb_release -s -c)
4040
base="cassandra-cpp-driver-$version"
4141
archive="$base.tar.gz"
42-
files="CMakeLists.txt cmake cmake_uninstall.cmake.in cassconfig.hpp.in include src"
42+
files="CMakeLists.txt cmake cmake_uninstall.cmake.in driver_config.hpp.in include src"
4343

4444
echo "Building version $version"
4545

cpp-driver/packaging/build_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242
version=$(header_version "../include/cassandra.h")
4343
base="cassandra-cpp-driver-$version"
4444
archive="$base.tar.gz"
45-
files="CMakeLists.txt cmake cmake_uninstall.cmake.in cassconfig.hpp.in include src README.md LICENSE.txt"
45+
files="CMakeLists.txt cmake cmake_uninstall.cmake.in driver_config.hpp.in include src README.md LICENSE.txt"
4646

4747
echo "Building version $version"
4848

cpp-driver/src/abstract_data.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
#ifndef __CASS_ABSTRACT_DATA_HPP_INCLUDED__
18-
#define __CASS_ABSTRACT_DATA_HPP_INCLUDED__
17+
#ifndef DATASTAX_INTERNAL_ABSTRACT_DATA_HPP
18+
#define DATASTAX_INTERNAL_ABSTRACT_DATA_HPP
1919

2020
#include "allocated.hpp"
2121
#include "buffer.hpp"

cpp-driver/src/address.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
#ifndef __CASS_ADDRESS_HPP_INCLUDED__
18-
#define __CASS_ADDRESS_HPP_INCLUDED__
17+
#ifndef DATASTAX_INTERNAL_ADDRESS_HPP
18+
#define DATASTAX_INTERNAL_ADDRESS_HPP
1919

2020
#include "allocated.hpp"
2121
#include "hash.hpp"

cpp-driver/src/aligned_storage.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
#ifndef __CASS_ALIGNED_STORAGE_HPP_INCLUDED__
18-
#define __CASS_ALIGNED_STORAGE_HPP_INCLUDED__
17+
#ifndef DATASTAX_INTERNAL_ALIGNED_STORAGE_HPP
18+
#define DATASTAX_INTERNAL_ALIGNED_STORAGE_HPP
1919

2020
#include <stddef.h>
2121

cpp-driver/src/allocated.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
#ifndef __CASS_ALLOCATED_HPP_INCLUDED__
18-
#define __CASS_ALLOCATED_HPP_INCLUDED__
17+
#ifndef DATASTAX_INTERNAL_ALLOCATED_HPP
18+
#define DATASTAX_INTERNAL_ALLOCATED_HPP
1919

2020
#include <cstddef>
2121

0 commit comments

Comments
 (0)