summaryrefslogtreecommitdiff
path: root/startop/view_compiler/util.h
diff options
context:
space:
mode:
authorEric Holk <eholk@google.com>2018-12-13 13:23:43 -0800
committerEric Holk <eholk@google.com>2019-01-02 18:02:31 +0000
commitddc8990f0960d35bb525cceb671a95519a07c5ba (patch)
tree6ea15f7e4bb76a9aab4a963315d97d06d7c80bc2 /startop/view_compiler/util.h
parentabe06f91380ebd2fea7da80bba4ce756744e7aec (diff)
[view-compiler] Better namespacing of util functions
This moves some helper functions into our own namespace to avoid conflicting with other util.h files. Bug: 111895153 Change-Id: I2b4c77732a97b34a8528d69867c15ed802686703
Diffstat (limited to 'startop/view_compiler/util.h')
-rw-r--r--startop/view_compiler/util.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/startop/view_compiler/util.h b/startop/view_compiler/util.h
index 03e093920bfa..0176175920c1 100644
--- a/startop/view_compiler/util.h
+++ b/startop/view_compiler/util.h
@@ -13,11 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#ifndef UTIL_H_
-#define UTIL_H_
+#ifndef VIEW_COMPILER_UTIL_H_
+#define VIEW_COMPILER_UTIL_H_
#include <string>
+namespace startop {
+namespace util {
+
std::string FindLayoutNameFromFilename(const std::string& filename);
-#endif // UTIL_H_
+} // namespace util
+} // namespace startop
+
+#endif // VIEW_COMPILER_UTIL_H_