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/CallDAG.cpp b/src/compiler/translator/CallDAG.cpp
index 00aa833..3ea0fa8 100644
--- a/src/compiler/translator/CallDAG.cpp
+++ b/src/compiler/translator/CallDAG.cpp
@@ -85,18 +85,11 @@
}
private:
-
struct CreatorFunctionData
{
- CreatorFunctionData()
- : node(nullptr),
- index(0),
- indexAssigned(false),
- visiting(false)
- {
- }
+ CreatorFunctionData() : node(nullptr), index(0), indexAssigned(false), visiting(false) {}
- std::set<CreatorFunctionData*> callees;
+ std::set<CreatorFunctionData *> callees;
TIntermFunctionDefinition *node;
TString name;
size_t index;
@@ -135,15 +128,15 @@
{
switch (node->getOp())
{
- case EOpPrototype:
- if (visit == PreVisit)
- {
- // Function declaration, create an empty record.
- auto &record = mFunctions[node->getFunctionSymbolInfo()->getName()];
- record.name = node->getFunctionSymbolInfo()->getName();
- }
- break;
- case EOpFunctionCall:
+ case EOpPrototype:
+ if (visit == PreVisit)
+ {
+ // Function declaration, create an empty record.
+ auto &record = mFunctions[node->getFunctionSymbolInfo()->getName()];
+ record.name = node->getFunctionSymbolInfo()->getName();
+ }
+ break;
+ case EOpFunctionCall:
{
// Function call, add the callees
if (visit == PreVisit)
@@ -163,8 +156,8 @@
}
break;
}
- default:
- break;
+ default:
+ break;
}
return true;
}