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 e863b81 commit 89d7c33
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion srcbpatch/bpatchfolders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace
if (toSet.empty())
{
// get full path for executable
#ifdef __linux__
#if defined(__linux__) || ((defined(__APPLE__) && defined(__MACH__)))
char pathBuffer[PATH_MAX] = {0};
[[maybe_unused]] auto result = readlink(R"(/proc/self/exe)", pathBuffer, PATH_MAX);
#else
Expand Down
6 changes: 3 additions & 3 deletions srcbpatch/coloredconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace coloredconsole
{
#ifndef __linux__
#if !defined(__linux__) && !((defined(__APPLE__) && defined(__MACH__)))
/// <summary>
/// RAII for set console output color in windows
/// </summary>
Expand Down Expand Up @@ -60,7 +60,7 @@ namespace coloredconsole
{
os << sv.substr(pos, errorPos - pos);

#ifdef __linux__
#if defined(__linux__) || ((defined(__APPLE__) && defined(__MACH__)))
os << "\033[1;31m" << errorSV << "\033[0m";
#else
WindowsConsoleColor color(FOREGROUND_RED | FOREGROUND_INTENSITY);
Expand All @@ -75,7 +75,7 @@ namespace coloredconsole
{
os << sv.substr(pos, warningPos - pos);

#ifdef __linux__
#if defined(__linux__) || ((defined(__APPLE__) && defined(__MACH__)))
os << "\033[1;33m" << warningSV << "\033[0m";
#else
WindowsConsoleColor color(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY);
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(move(adata));
return unique_ptr<ActionsCollection>(new ActionsCollection(move(adata)));
}


Expand Down
2 changes: 2 additions & 0 deletions wildcharacters/wildcharacters.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <filesystem>
#include "wildcharacters.h"

#include <sstream>

namespace wildcharacters
{
/// <summary>
Expand Down

0 comments on commit 89d7c33

Please sign in to comment.