diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a50ec3..32cb61d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,29 @@ +## +# CMakeLists.txt +# +# Copyright (C) 2014 SDML (www.sdml.info) +# +# This file is part of the srcSlice. +# +# The srcSlice is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# The srcSlice is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with the srcSlice; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +cmake_minimum_required(VERSION 2.8) +project(srcSlice) + +list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake) + set(CMAKE_CXX_FLAGS "-std=c++0x -O3") SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build) diff --git a/src/headers/srcSliceHandler.hpp b/src/headers/srcSliceHandler.hpp index be90bfd..4bf0397 100644 --- a/src/headers/srcSliceHandler.hpp +++ b/src/headers/srcSliceHandler.hpp @@ -227,7 +227,7 @@ class srcSliceHandler : public srcSAXHandler { } if(lnspace == "cpp"){ ++triggerField[preproc]; - } + } static std::unordered_map> process_map = { {"decl_stmt", [this](){ currentDeclStmt.first.clear();