From 15017db971e8bc4081d79100de5d9ab43908d7cc Mon Sep 17 00:00:00 2001 From: Flavio <flavio.bortot@autodesk.com> Date: Wed, 15 Feb 2017 14:29:33 -0800 Subject: [PATCH] Removed tabs and replaced with spaces. Changed layout for "else if" --- SPIRV/GlslangToSpv.cpp | 14 +++++++------- StandAlone/StandAlone.cpp | 26 ++++++++++++-------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 09566c906..fcf356874 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -5259,10 +5259,10 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName, std::ofstream out; out.open(baseName, std::ios::binary | std::ios::out); out << "\t// " GLSLANG_REVISION " " GLSLANG_DATE << std::endl; - if (varName != nullptr) { - out << "\t #pragma once" << std::endl; - out << "const uint32_t " << varName << "[] = {" << std::endl; - } + if (varName != nullptr) { + out << "\t #pragma once" << std::endl; + out << "const uint32_t " << varName << "[] = {" << std::endl; + } const int WORDS_PER_LINE = 8; for (int i = 0; i < (int)spirv.size(); i += WORDS_PER_LINE) { out << "\t"; @@ -5275,9 +5275,9 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName, } out << std::endl; } - if (varName != nullptr) { - out << "};"; - } + if (varName != nullptr) { + out << "};"; + } out.close(); } diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index fb37f8f2b..26f4b6c7d 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp @@ -303,20 +303,18 @@ void ProcessArguments(int argc, char* argv[]) } else if (lowerword == "no-storage-format" || // synonyms lowerword == "nsf") { Options |= EOptionNoStorageFormat; - } - else if (lowerword == "variable-name" || // synonyms - lowerword == "vn") { - Options |= EOptionOutputHexadecimal; - variableName = argv[1]; - if (argc > 0) { - argc--; - argv++; - } - else - Error("no <C-variable-name> provided for --variable-name"); - break; - } - else if (lowerword == "source-entrypoint" || // synonyms + } else if (lowerword == "variable-name" || // synonyms + lowerword == "vn") { + Options |= EOptionOutputHexadecimal; + variableName = argv[1]; + if (argc > 0) { + argc--; + argv++; + } else + Error("no <C-variable-name> provided for --variable-name"); + break; + } + else if (lowerword == "source-entrypoint" || // synonyms lowerword == "sep") { sourceEntryPointName = argv[1]; if (argc > 0) { -- GitLab