diff options
author | dan sinclair <dj2@everburning.com> | 2018-08-03 08:05:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03 08:05:33 -0400 |
commit | 58a6876cee5b6efd9913e36f6a6e3648c7fc067a (patch) | |
tree | f4a486e202e40908637b8fad442ae3663a99d0e0 /tools | |
parent | aa53271b9c8bae5f3be71a126ce2d8902979ce01 (diff) |
Rewrite include guards (#1793)
This CL rewrites the include guards to make PRESUBMIT.py include guard
check happy.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cfg/bin_to_dot.h | 6 | ||||
-rw-r--r-- | tools/comp/markv_model_factory.h | 6 | ||||
-rw-r--r-- | tools/comp/markv_model_shader.h | 6 | ||||
-rw-r--r-- | tools/io.h | 6 | ||||
-rw-r--r-- | tools/stats/stats_analyzer.h | 6 |
5 files changed, 15 insertions, 15 deletions
diff --git a/tools/cfg/bin_to_dot.h b/tools/cfg/bin_to_dot.h index 1181b252..1007ea71 100644 --- a/tools/cfg/bin_to_dot.h +++ b/tools/cfg/bin_to_dot.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef BIN_TO_DOT_H_ -#define BIN_TO_DOT_H_ +#ifndef TOOLS_CFG_BIN_TO_DOT_H_ +#define TOOLS_CFG_BIN_TO_DOT_H_ #include <iostream> #include "spirv-tools/libspirv.h" @@ -24,4 +24,4 @@ spv_result_t BinaryToDot(const spv_const_context context, const uint32_t* words, size_t num_words, std::iostream* out, spv_diagnostic* diagnostic); -#endif // BIN_TO_DOT_H_ +#endif // TOOLS_CFG_BIN_TO_DOT_H_ diff --git a/tools/comp/markv_model_factory.h b/tools/comp/markv_model_factory.h index 084fc66d..c13898b9 100644 --- a/tools/comp/markv_model_factory.h +++ b/tools/comp/markv_model_factory.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef SPIRV_TOOLS_COMP_MARKV_MODEL_FACTORY_H_ -#define SPIRV_TOOLS_COMP_MARKV_MODEL_FACTORY_H_ +#ifndef TOOLS_COMP_MARKV_MODEL_FACTORY_H_ +#define TOOLS_COMP_MARKV_MODEL_FACTORY_H_ #include <memory> @@ -34,4 +34,4 @@ std::unique_ptr<MarkvModel> CreateMarkvModel(MarkvModelType type); } // namespace comp } // namespace spvtools -#endif // SPIRV_TOOLS_COMP_MARKV_MODEL_FACTORY_H_ +#endif // TOOLS_COMP_MARKV_MODEL_FACTORY_H_ diff --git a/tools/comp/markv_model_shader.h b/tools/comp/markv_model_shader.h index 6c009787..3a704571 100644 --- a/tools/comp/markv_model_shader.h +++ b/tools/comp/markv_model_shader.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef SPIRV_TOOLS_MARKV_MODEL_SHADER_H_ -#define SPIRV_TOOLS_MARKV_MODEL_SHADER_H_ +#ifndef TOOLS_COMP_MARKV_MODEL_SHADER_H_ +#define TOOLS_COMP_MARKV_MODEL_SHADER_H_ #include "source/comp/markv_model.h" @@ -44,4 +44,4 @@ class MarkvModelShaderMax : public MarkvModel { } // namespace comp } // namespace spvtools -#endif // SPIRV_TOOLS_MARKV_MODEL_SHADER_H_ +#endif // TOOLS_COMP_MARKV_MODEL_SHADER_H_ @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef LIBSPIRV_TOOLS_IO_H_ -#define LIBSPIRV_TOOLS_IO_H_ +#ifndef TOOLS_IO_H_ +#define TOOLS_IO_H_ #include <cstdint> #include <cstdio> @@ -79,4 +79,4 @@ bool WriteFile(const char* filename, const char* mode, const T* data, return true; } -#endif // LIBSPIRV_TOOLS_IO_H_ +#endif // TOOLS_IO_H_ diff --git a/tools/stats/stats_analyzer.h b/tools/stats/stats_analyzer.h index 72662bd6..2b246b50 100644 --- a/tools/stats/stats_analyzer.h +++ b/tools/stats/stats_analyzer.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef LIBSPIRV_TOOLS_STATS_STATS_ANALYZER_H_ -#define LIBSPIRV_TOOLS_STATS_STATS_ANALYZER_H_ +#ifndef TOOLS_STATS_STATS_ANALYZER_H_ +#define TOOLS_STATS_STATS_ANALYZER_H_ #include <unordered_map> @@ -77,4 +77,4 @@ class StatsAnalyzer { std::unordered_map<uint32_t, double> opcode_freq_; }; -#endif // LIBSPIRV_TOOLS_STATS_STATS_ANALYZER_H_ +#endif // TOOLS_STATS_STATS_ANALYZER_H_ |