Skip to content

Commit

Permalink
Make sure annotations are consistent and add carriage returns when re…
Browse files Browse the repository at this point in the history
…porting option flags.
  • Loading branch information
JPeterMugaas committed Jul 2, 2024
1 parent 023b5d5 commit 8c8e6d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

cmake_minimum_required (VERSION 3.21)

set(EFXC2_VERSION 0.0.13.274)
set(EFXC2_VERSION 0.0.13.275)
project (efxc2 VERSION ${EFXC2_VERSION}
DESCRIPTION "Enhanced fxc2"
HOMEPAGE_URL "https://github.com/JPeterMugaas/efxc2"
Expand Down
16 changes: 8 additions & 8 deletions efxc2Cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ void efxc2Cmds::FindDebug(const efxc2Utils::M_CMD_PARAMS& args, efxc2CompilerPar
return;
}

void efxc2Cmds::print_string_parameter(const efxc2CompilerParams::CompilerParams& ComParams,
const efxc2Utils::M_STRING_VIEW cmdParam,
const efxc2Utils::M_STRING_VIEW ADesc,
void efxc2Cmds::print_string_parameter(_In_ const efxc2CompilerParams::CompilerParams& ComParams,
_In_ const efxc2Utils::M_STRING_VIEW cmdParam,
_In_ const efxc2Utils::M_STRING_VIEW ADesc,
_In_ const efxc2Utils::M_STRING_VIEW fileName) {
if (ComParams.get_verbose() && ComParams.get_debug()) {
#ifdef _WIN32
Expand All @@ -58,12 +58,12 @@ void efxc2Cmds::print_string_parameter(const efxc2CompilerParams::CompilerParams
}
}

void efxc2Cmds::print_flag_parameter(const efxc2CompilerParams::CompilerParams& ComParams,
const std::string_view cmdParam,
const std::string_view AFlagsVar,
const std::string_view AflagName) {
void efxc2Cmds::print_flag_parameter(_In_ const efxc2CompilerParams::CompilerParams& ComParams,
_In_ const std::string_view cmdParam,
_In_ const std::string_view AFlagsVar,
_In_ const std::string_view AflagName) {
if (ComParams.get_verbose() && ComParams.get_debug()) {
std::cout << M_FORMAT("option -{} {} | {}", cmdParam, AFlagsVar, AflagName);
std::cout << M_FORMAT("option -{} {} | {}\n", cmdParam, AFlagsVar, AflagName);
}
}

Expand Down
13 changes: 7 additions & 6 deletions efxc2Cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,17 @@ constexpr auto M_T_DESCR = "Shader Model/Profile";
efxc2CompilerParams::CompilerParams& params,
efxc2Files::Files& files);

void print_flag_parameter(const efxc2CompilerParams::CompilerParams& ComParams,
const std::string_view cmdParam,
const std::string_view AFlagsVar,
const std::string_view AflagName);
void print_flag_parameter(_In_ const efxc2CompilerParams::CompilerParams& ComParams,
_In_ const std::string_view cmdParam,
_In_ const std::string_view AFlagsVar,
_In_ const std::string_view AflagName);

void print_string_parameter(_In_ const efxc2CompilerParams::CompilerParams& ComParams,
const efxc2Utils::M_STRING_VIEW cmdParam,
const efxc2Utils::M_STRING_VIEW ADesc,
_In_ const efxc2Utils::M_STRING_VIEW cmdParam,
_In_ const efxc2Utils::M_STRING_VIEW ADesc,
_In_ const efxc2Utils::M_STRING_VIEW fileName);


using gCompilerp = void(efxc2CompilerParams::CompilerParams&);
struct CompilerOnlyEntry {
const efxc2Utils::M_STRING Param;
Expand Down

0 comments on commit 8c8e6d2

Please sign in to comment.