use hpp extension for headers

This commit is contained in:
Daniel Sipka 2015-04-12 15:35:13 +02:00
parent c8152686df
commit 7e124ec47b
25 changed files with 47 additions and 47 deletions

View File

@ -1,8 +1,8 @@
#include <regex>
#include <iostream>
#include "mstch/mstch.h"
#include "render_context.h"
#include "mstch/mstch.hpp"
#include "render_context.hpp"
using namespace mstch;

View File

@ -1,5 +1,5 @@
#include "render_context.h"
#include "state/outside_section.h"
#include "render_context.hpp"
#include "state/outside_section.hpp"
#include <regex>

View File

@ -5,8 +5,8 @@
#include <sstream>
#include <string>
#include "mstch/mstch.h"
#include "state/render_state.h"
#include "mstch/mstch.hpp"
#include "state/render_state.hpp"
namespace mstch {
class render_context {

View File

@ -1,9 +1,9 @@
#include <visitor/render_section.h>
#include <visitor/to_json.h>
#include "visitor/is_node_empty.h"
#include "in_inverted_section.h"
#include "outside_section.h"
#include "render_context.h"
#include "visitor/render_section.hpp"
#include "visitor/to_json.hpp"
#include "visitor/is_node_empty.hpp"
#include "in_inverted_section.hpp"
#include "outside_section.hpp"
#include "render_context.hpp"
using namespace mstch;

View File

@ -2,7 +2,7 @@
#define _MSTCH_IN_INVERTED_SECTION_H_
#include <sstream>
#include "render_state.h"
#include "render_state.hpp"
namespace mstch {
namespace state {

View File

@ -1,7 +1,7 @@
#include "visitor/is_node_empty.h"
#include "visitor/render_section.h"
#include "in_section.h"
#include "outside_section.h"
#include "visitor/is_node_empty.hpp"
#include "visitor/render_section.hpp"
#include "in_section.hpp"
#include "outside_section.hpp"
using namespace mstch;

View File

@ -1,7 +1,7 @@
#ifndef _MSTCH_IN_SECTION_H_
#define _MSTCH_IN_SECTION_H_
#include "render_state.h"
#include "render_state.hpp"
#include <sstream>
namespace mstch {

View File

@ -1,8 +1,8 @@
#include <visitor/render_node.h>
#include "outside_section.h"
#include "in_section.h"
#include "in_inverted_section.h"
#include "render_context.h"
#include "visitor/render_node.hpp"
#include "outside_section.hpp"
#include "in_section.hpp"
#include "in_inverted_section.hpp"
#include "render_context.hpp"
using namespace mstch;

View File

@ -1,7 +1,7 @@
#ifndef _MSTCH_OUTSIDE_SECTION_H_
#define _MSTCH_OUTSIDE_SECTION_H_
#include "render_state.h"
#include "render_state.hpp"
namespace mstch {
namespace state {

View File

@ -2,7 +2,7 @@
#define _MSTCH_RENDER_STATE_H_
#include <memory>
#include <token.h>
#include "token.hpp"
namespace mstch {
class render_context;

View File

@ -1,6 +1,6 @@
#include "token.h"
#include "token.hpp"
#include "utils.h"
#include "utils.hpp"
#include <boost/algorithm/string/trim.hpp>
#include <regex>

View File

@ -1,4 +1,4 @@
#include "utils.h"
#include "utils.hpp"
#include <boost/algorithm/string/replace.hpp>

View File

@ -1,4 +1,4 @@
#include "is_node_empty.h"
#include "is_node_empty.hpp"
using namespace mstch;

View File

@ -4,7 +4,7 @@
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
#include "mstch/mstch.h"
#include "mstch/mstch.hpp"
namespace mstch {
namespace visitor {

View File

@ -1,5 +1,5 @@
#include <utils.h>
#include "render_node.h"
#include "utils.hpp"
#include "render_node.hpp"
using namespace mstch;

View File

@ -4,7 +4,7 @@
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
#include "mstch/mstch.h"
#include "mstch/mstch.hpp"
#include <set>
namespace mstch {

View File

@ -1,5 +1,5 @@
#include "render_section.h"
#include "is_node_empty.h"
#include "render_section.hpp"
#include "is_node_empty.hpp"
using namespace mstch;

View File

@ -3,10 +3,10 @@
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
#include <render_context.h>
#include "render_context.hpp"
#include <set>
#include "mstch/mstch.h"
#include "mstch/mstch.hpp"
namespace mstch {
namespace visitor {

View File

@ -1,4 +1,4 @@
#include "to_json.h"
#include "to_json.hpp"
using namespace mstch;

View File

@ -3,9 +3,9 @@
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
#include <render_context.h>
#include "render_context.hpp"
#include "mstch/mstch.h"
#include "mstch/mstch.hpp"
namespace mstch {
namespace visitor {

View File

@ -27,13 +27,13 @@ foreach(string_file ${string_files})
endforeach(string_file)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_data.h
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/filetoheader --output ${CMAKE_CURRENT_BINARY_DIR}/test_data.h --namespace mstchtest ${genargs}
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_data.hpp
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/filetoheader --output ${CMAKE_CURRENT_BINARY_DIR}/test_data.hpp --namespace mstchtest ${genargs}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/filetoheader
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test/data/)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/test_data.h PROPERTIES GENERATED TRUE)
add_custom_target(test_data_h DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_data.h)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/test_data.hpp PROPERTIES GENERATED TRUE)
add_custom_target(test_data_hpp DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_data.hpp)
add_executable(mstch_test test_main.cpp)
target_link_libraries(mstch_test mstch)
add_dependencies(mstch_test test_data_h)
add_dependencies(mstch_test test_data_hpp)

View File

@ -1,9 +1,9 @@
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <mstch/mstch.h>
#include "mstch/mstch.hpp"
#include "test_data.h"
#include "test_data.hpp"
#define MSTCH_TEST(x,y) TEST_CASE(x) { REQUIRE(y ## _txt == mstch::render(y ## _mustache, y ## _data)); }