Skip to content

Commit

Permalink
add clang 16b support
Browse files Browse the repository at this point in the history
  • Loading branch information
Владимир Чиж authored and Владимир Чиж committed Mar 1, 2024
1 parent 5732b47 commit 8977bda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ message(STATUS "CMAKE_CXX_FLAGS:" ${CMAKE_CXX_FLAGS})
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
# GCC (GNU Compiler)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -D_DEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -fno-rtti -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -D_DEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -Wno-unqualified-std-cast-call -fno-rtti -pthread")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -fno-rtti -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -Wno-unqualified-std-cast-call -fno-rtti -pthread")
else()
message(FATAL_ERROR "Unsupported compilation mode")
endif()
Expand Down
2 changes: 1 addition & 1 deletion srcbpatch/actionscollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void ActionsCollection::OnJsonObjectParsed(TJSONObject* const pJson)

// create binary lexeme from readed data
if (const bool added = dictionary_.AddBinaryLexeme(pJson->name_,
AbstractBinaryLexeme::LexemeFromVector(std::move(adata)));
AbstractBinaryLexeme::LexemeFromVector(move(adata));
!added)
{// overwritten
ReportDuplicateNameError(pJson->name_);
Expand Down
2 changes: 1 addition & 1 deletion srcbpatch/processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ unique_ptr<ActionsCollection> CreateActionsFile(string_view actionsFileName)

// Parsing of todo and lexemes
// Dictionary will be inside
return unique_ptr<ActionsCollection>(new ActionsCollection(std::move(adata)));
return unique_ptr<ActionsCollection>(new ActionsCollection(move(adata));
}


Expand Down

0 comments on commit 8977bda

Please sign in to comment.