summaryrefslogtreecommitdiff
path: root/nn/common/include/MetaModel.h
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2019-07-30 12:53:58 -0700
committerDavid Gross <dgross@google.com>2019-07-30 12:53:58 -0700
commitbd98a9f6c0f5f2e48953c67c86ddd5e82ed6d74e (patch)
tree6e18eb0f51a944e19596485fbfd16fafde5a1c56 /nn/common/include/MetaModel.h
parentaa3047535a0a8bc0dd4bc92c2c51f60201ea9871 (diff)
downloadml-bd98a9f6c0f5f2e48953c67c86ddd5e82ed6d74e.tar.gz
Fix names of #include guard symbols.
Subsequent discussion recommended "ANDROID_" prefix. Pattern: ANDROID_FRAMEWORKS_ML_${RELPATH}_H, where ${RELPATH} is relative to frameworks/ml, with "include" path component (if any) removed, everything in caps, and word breaks indicated by underscores (rather than by upper case). This is derived from our current practices in frameworks/ml. Generate name: ANDROID_FRAMEWORKS_ML_$(echo ${RELPATH} | sed -e 's!/include!!g' -e 's![/.]!_!g' -e 's!\([^_A-Z]\)\([A-Z]\)!\1_\2!g' | awk '{ print toupper($1); }') Bug: 129138718 Test: cd frameworks/ml ; mma Change-Id: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4 Merged-In: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4
Diffstat (limited to 'nn/common/include/MetaModel.h')
-rw-r--r--nn/common/include/MetaModel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nn/common/include/MetaModel.h b/nn/common/include/MetaModel.h
index 2f9a1b1d3..89aee9f0b 100644
--- a/nn/common/include/MetaModel.h
+++ b/nn/common/include/MetaModel.h
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef FRAMEWORKS_ML_NN_COMMON_META_MODEL_H
-#define FRAMEWORKS_ML_NN_COMMON_META_MODEL_H
+#ifndef ANDROID_FRAMEWORKS_ML_NN_COMMON_META_MODEL_H
+#define ANDROID_FRAMEWORKS_ML_NN_COMMON_META_MODEL_H
#include "HalInterfaces.h"
@@ -140,4 +140,4 @@ class MetaModel {
} // namespace android::nn
-#endif // FRAMEWORKS_ML_NN_COMMON_META_MODEL_H
+#endif // ANDROID_FRAMEWORKS_ML_NN_COMMON_META_MODEL_H