summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes_shared.h
diff options
context:
space:
mode:
author Alexandre Rames <alexandre.rames@linaro.org> 2016-09-19 13:56:18 +0100
committer Alexandre Rames <alexandre.rames@linaro.org> 2016-09-19 14:08:18 +0100
commitebc3280a765f1fc0f8a7a7f4393ff20586aa7b08 (patch)
tree0ffd99f28d0f186909ae289233ba92f3728dd24d /compiler/optimizing/nodes_shared.h
parent6a4abc633fa8580b06056ec6f80ced8ce7511277 (diff)
Include `nodes.h` in `nodes_shared.h` to help editing tools.
This include does not change anything to compilation, but it helps editing tools (e.g. YouCompleteMe) to show proper error messages when editing that file. Test: mma -j40 Change-Id: I5ebd03040cfc90daa41faf85f273a86525207f19
Diffstat (limited to 'compiler/optimizing/nodes_shared.h')
-rw-r--r--compiler/optimizing/nodes_shared.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes_shared.h b/compiler/optimizing/nodes_shared.h
index 8bd8667f84..ff9b5e9cfd 100644
--- a/compiler/optimizing/nodes_shared.h
+++ b/compiler/optimizing/nodes_shared.h
@@ -17,6 +17,11 @@
#ifndef ART_COMPILER_OPTIMIZING_NODES_SHARED_H_
#define ART_COMPILER_OPTIMIZING_NODES_SHARED_H_
+// This `#include` should never be used by compilation, as this file (`nodes_shared.h`) is included
+// in `nodes.h`. However it helps editing tools (e.g. YouCompleteMe) by giving them better context
+// (defining `HInstruction` and co).
+#include "nodes.h"
+
namespace art {
class HMultiplyAccumulate FINAL : public HExpression<3> {