summaryrefslogtreecommitdiff
path: root/src/jit/smdata.cpp
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2016-06-24 14:10:52 -0700
committerMichelle McDaniel <adiaaida@gmail.com>2016-07-29 09:16:39 -0700
commita1fa8c14cae981369dccf2f361b01959b215ad8f (patch)
treecfbd2c5020bacd9422a64338f513350057e3cae0 /src/jit/smdata.cpp
parenta812669c5737a336745f42c099a1a8a6e1aafa4f (diff)
downloadcoreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.gz
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.bz2
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.zip
Massage code for clang-format
This change starts the process of updating the jit code to make it ready for being formatted by clang-format. Changes mostly include reflowing comments that go past our column limit and moving comments around ifdefs so clang-format does not modify the indentation. Additionally, some header files are manually reformatted for pointer alignment and marked as clang-format off so that we do not lose the current formatting.
Diffstat (limited to 'src/jit/smdata.cpp')
-rw-r--r--src/jit/smdata.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jit/smdata.cpp b/src/jit/smdata.cpp
index 4774ce0673..8cf86e59c1 100644
--- a/src/jit/smdata.cpp
+++ b/src/jit/smdata.cpp
@@ -13,6 +13,7 @@
//
// States in the state machine
//
+// clang-format off
const SMState g_SMStates[] =
{
// {term, len, lng, prev, SMOpcode and SMOpcodeName , offsets } // state ID and name
@@ -267,6 +268,7 @@ const SMState g_SMStates[] =
{ 1, 5, 195, 247, (SM_OPCODE) 74 /* add */, 0 }, // state 248 [ldarga.s -> ldfld -> ldarga.s -> ldfld -> add]
{ 1, 5, 195, 247, (SM_OPCODE) 75 /* sub */, 0 }, // state 249 [ldarga.s -> ldfld -> ldarga.s -> ldfld -> sub]
};
+// clang-format on
static_assert_no_msg(NUM_SM_STATES == sizeof(g_SMStates)/sizeof(g_SMStates[0]));
@@ -275,6 +277,7 @@ const SMState * gp_SMStates = g_SMStates;
//
// JumpTableCells in the state machine
//
+// clang-format off
const JumpTableCell g_SMJumpTableCells[] =
{
// {src, dest }
@@ -697,6 +700,7 @@ const JumpTableCell g_SMJumpTableCells[] =
{ 0, 0 }, // cell# 416
{ 0, 0 }, // cell# 417
};
+// clang-format on
const JumpTableCell * gp_SMJumpTableCells = g_SMJumpTableCells;