From 2961cb388ad30e735039ec4d1e6f3f87fcdd9a8d Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Tue, 8 Oct 2024 09:47:58 -0700 Subject: [PATCH] Fix lint error Signed-off-by: Andy Fingerhut --- frontends/p4/duplicateHierarchicalNameCheck.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontends/p4/duplicateHierarchicalNameCheck.cpp b/frontends/p4/duplicateHierarchicalNameCheck.cpp index fed631b1e4..57fb1b7b5e 100644 --- a/frontends/p4/duplicateHierarchicalNameCheck.cpp +++ b/frontends/p4/duplicateHierarchicalNameCheck.cpp @@ -1,5 +1,5 @@ /* -Copyright 2017 VMware, Inc. +Copyright 2024 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,7 +20,9 @@ limitations under the License. namespace P4 { -cstring DuplicateHierarchicalNameCheck::getName(const IR::IDeclaration *decl) { return decl->getName(); } +cstring DuplicateHierarchicalNameCheck::getName(const IR::IDeclaration *decl) { + return decl->getName(); +} const IR::Node *DuplicateHierarchicalNameCheck::postorder(IR::Annotation *annotation) { if (annotation->name != IR::Annotation::nameAnnotation) return annotation;