diff options
author | 2017-07-19 09:28:38 -0700 | |
---|---|---|
committer | 2017-07-24 16:07:10 -0700 | |
commit | 8cf9cb386cd9286d67e879f1ee501ec00d72a4e1 (patch) | |
tree | 88e86e214b425e444760fe4e0ffeee677e1558a2 /compiler/optimizing/nodes_shared.cc | |
parent | 914b7b6a6c9f399b26b41e9160e9871ef749e0db (diff) |
ART: Include cleanup
Let clang-format reorder the header includes.
Derived with:
* .clang-format:
BasedOnStyle: Google
IncludeIsMainRegex: '(_test|-inl)?$'
* Steps:
find . -name '*.cc' -o -name '*.h' | xargs sed -i.bak -e 's/^#include/ #include/' ; git commit -a -m 'ART: Include cleanup'
git-clang-format -style=file HEAD^
manual inspection
git commit -a --amend
Test: mmma art
Change-Id: Ia963a8ce3ce5f96b5e78acd587e26908c7a70d02
Diffstat (limited to 'compiler/optimizing/nodes_shared.cc')
-rw-r--r-- | compiler/optimizing/nodes_shared.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes_shared.cc b/compiler/optimizing/nodes_shared.cc index f145bf9130..f6d33f015f 100644 --- a/compiler/optimizing/nodes_shared.cc +++ b/compiler/optimizing/nodes_shared.cc @@ -14,9 +14,15 @@ * limitations under the License. */ -#include "common_arm64.h" +// Note: this include order may seem strange and is against the regular style. However it is the +// required order as nodes_shared does not have the right dependency chain and compilation +// will fail (as AsType on HInstruction will be defined before the full Instruction). +#include "nodes.h" + #include "nodes_shared.h" +#include "common_arm64.h" + namespace art { using helpers::CanFitInShifterOperand; |