summaryrefslogtreecommitdiff
path: root/nn/extensions
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2019-07-03 12:43:08 -0700
committerDavid Gross <dgross@google.com>2019-07-03 12:43:33 -0700
commiteec86c3d981fe124340263ad6fcbbed799f5ef5b (patch)
tree2afcea6863ca236444984631f173b502e488de27 /nn/extensions
parent57801786a8ffc8951323eb09bae126d3b5819947 (diff)
downloadml-eec86c3d981fe124340263ad6fcbbed799f5ef5b.tar.gz
Rationalize names of #include guard symbols.
Pattern: 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: 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 Merged-In: I06f06b6e38f5d263657f4116e5f43b6bb59d036a Change-Id: I06f06b6e38f5d263657f4116e5f43b6bb59d036a
Diffstat (limited to 'nn/extensions')
-rw-r--r--nn/extensions/test_vendor/fibonacci/FibonacciExtension.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nn/extensions/test_vendor/fibonacci/FibonacciExtension.h b/nn/extensions/test_vendor/fibonacci/FibonacciExtension.h
index 3afd98139..0b3268e78 100644
--- a/nn/extensions/test_vendor/fibonacci/FibonacciExtension.h
+++ b/nn/extensions/test_vendor/fibonacci/FibonacciExtension.h
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef ANDROID_FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H
-#define ANDROID_FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H
+#ifndef FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H
+#define FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H
/**
* A sample extension definition.
@@ -73,4 +73,4 @@ enum {
TEST_VENDOR_FIBONACCI = 0,
};
-#endif // ANDROID_FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H
+#endif // FRAMEWORKS_ML_NN_EXTENSIONS_TEST_VENDOR_FIBONACCI_FIBONACCI_EXTENSION_H