Fix up translator style.
Using git cl format.
BUG=angleproject:650
Change-Id: I7d3f98d2b0dcfb0a8de6c35327db74e55c28d761
Reviewed-on: https://chromium-review.googlesource.com/419059
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/InfoSink.cpp b/src/compiler/translator/InfoSink.cpp
index e71fe51..b77f3a1 100644
--- a/src/compiler/translator/InfoSink.cpp
+++ b/src/compiler/translator/InfoSink.cpp
@@ -9,8 +9,10 @@
namespace sh
{
-void TInfoSinkBase::prefix(TPrefixType p) {
- switch(p) {
+void TInfoSinkBase::prefix(TPrefixType p)
+{
+ switch (p)
+ {
case EPrefixNone:
break;
case EPrefixWarning:
@@ -34,7 +36,8 @@
}
}
-void TInfoSinkBase::location(int file, int line) {
+void TInfoSinkBase::location(int file, int line)
+{
TPersistStringStream stream;
if (line)
stream << file << ":" << line;
@@ -45,11 +48,13 @@
sink.append(stream.str());
}
-void TInfoSinkBase::location(const TSourceLoc& loc) {
+void TInfoSinkBase::location(const TSourceLoc &loc)
+{
location(loc.first_file, loc.first_line);
}
-void TInfoSinkBase::message(TPrefixType p, const TSourceLoc& loc, const char* m) {
+void TInfoSinkBase::message(TPrefixType p, const TSourceLoc &loc, const char *m)
+{
prefix(p);
location(loc);
sink.append(m);