Skip to content

Commit

Permalink
Make file formatting comply with POSIX and Unix standards
Browse files Browse the repository at this point in the history
UTF-8, LF, no BOM, and newlines at the end of files
  • Loading branch information
aaronfranke committed Mar 21, 2020
1 parent 9659831 commit c8274e9
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ genrule(
"SPIRV/GLSL.ext.KHR.h",
"SPIRV/GLSL.ext.NV.h",
"SPIRV/GLSL.std.450.h",
"SPIRV/NonSemanticDebugPrintf.h",
"SPIRV/NonSemanticDebugPrintf.h",
"SPIRV/spirv.hpp",
],
outs = [
Expand All @@ -94,7 +94,7 @@ genrule(
"include/SPIRV/GLSL.ext.KHR.h",
"include/SPIRV/GLSL.ext.NV.h",
"include/SPIRV/GLSL.std.450.h",
"include/SPIRV/NonSemanticDebugPrintf.h",
"include/SPIRV/NonSemanticDebugPrintf.h",
"include/SPIRV/spirv.hpp",
],
cmd = "mkdir -p $(@D)/include/SPIRV && cp $(SRCS) $(@D)/include/SPIRV/",
Expand Down
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ source_set("glslang_sources") {
"SPIRV/InReadableOrder.cpp",
"SPIRV/Logger.cpp",
"SPIRV/Logger.h",
"SPIRV/NonSemanticDebugPrintf.h",
"SPIRV/NonSemanticDebugPrintf.h",
"SPIRV/SPVRemapper.cpp",
"SPIRV/SPVRemapper.h",
"SPIRV/SpvBuilder.cpp",
Expand Down
2 changes: 1 addition & 1 deletion SPIRV/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ std::string SpvBuildLogger::getAllMessages() const {

} // end spv namespace

#endif
#endif
2 changes: 1 addition & 1 deletion Test/foo.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#error should not be included
#error should not be included
2 changes: 1 addition & 1 deletion Test/inc2/foo.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
float4 i6;
float4 i6;
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
theme: jekyll-theme-merlot
theme: jekyll-theme-merlot
2 changes: 1 addition & 1 deletion glslang/Include/glslang_c_shader_types.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
This code is based on the glslang_c_interface implementation by Viktor Latypov
**/

Expand Down
26 changes: 13 additions & 13 deletions glslang/Include/revision.template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// The file revision.h should be updated to the latest version, somehow, on
// check-in, if glslang has changed.
//
// revision.template is the source for revision.h when using SubWCRev as the
// method of updating revision.h. You don't have to do it this way, the
// requirement is only that revision.h gets updated.
//
// revision.h is under source control so that not all consumers of glslang
// source have to figure out how to create revision.h just to get a build
// going. However, if it is not updated, it can be a version behind.
#define GLSLANG_REVISION "$WCREV$"
#define GLSLANG_DATE "$WCDATE$"
// The file revision.h should be updated to the latest version, somehow, on
// check-in, if glslang has changed.
//
// revision.template is the source for revision.h when using SubWCRev as the
// method of updating revision.h. You don't have to do it this way, the
// requirement is only that revision.h gets updated.
//
// revision.h is under source control so that not all consumers of glslang
// source have to figure out how to create revision.h just to get a build
// going. However, if it is not updated, it can be a version behind.

#define GLSLANG_REVISION "$WCREV$"
#define GLSLANG_DATE "$WCDATE$"
2 changes: 1 addition & 1 deletion glslang/MachineIndependent/intermOut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,4 +1537,4 @@ void TIntermediate::output(TInfoSink& infoSink, bool tree)

} // end namespace glslang

#endif // not GLSLANG_WEB
#endif // not GLSLANG_WEB
2 changes: 1 addition & 1 deletion glslang/MachineIndependent/propagateNoContraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,4 +867,4 @@ void PropagateNoContraction(const glslang::TIntermediate& intermediate)
}
};

#endif // GLSLANG_WEB
#endif // GLSLANG_WEB
2 changes: 1 addition & 1 deletion glslang/MachineIndependent/reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ class TReflection {

#endif // _REFLECTION_INCLUDED

#endif // GLSLANG_WEB
#endif // GLSLANG_WEB

0 comments on commit c8274e9

Please sign in to comment.