Author: sstefan1
Date: 2020-07-19T20:48:28+02:00
New Revision: cf1105069648446d58adfb7a6cc590013d6886ba

URL: 
https://github.com/llvm/llvm-project/commit/cf1105069648446d58adfb7a6cc590013d6886ba
DIFF: 
https://github.com/llvm/llvm-project/commit/cf1105069648446d58adfb7a6cc590013d6886ba.diff

LOG: [Utils][Fix] remove unnecessary ; at the end

Added: 
    

Modified: 
    
clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected
    
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git 
a/clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected
 
b/clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected
index 8809b9070ae5..4862de910a95 100644
--- 
a/clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected
+++ 
b/clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected
@@ -11,7 +11,7 @@ struct ST {
   struct RT Z;
 };
 
-// CHECK: Function Attrs: noinline nounwind optnone;
+// CHECK: Function Attrs: noinline nounwind optnone
 // CHECK-LABEL: @_Z3fooP2ST(
 // CHECK-NEXT:  entry:
 // CHECK-NEXT:    [[S_ADDR:%.*]] = alloca %struct.ST*, align 8

diff  --git 
a/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
 
b/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
index 5e5ab3ce4e68..be84e7824377 100644
--- 
a/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
+++ 
b/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
@@ -8,14 +8,14 @@
 %struct.ST = type { i32, double, %struct.RT }
 
 define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp {
-; IS__TUNIT____: Function Attrs: nofree nosync nounwind optsize readnone ssp 
uwtable willreturn;
+; IS__TUNIT____: Function Attrs: nofree nosync nounwind optsize readnone ssp 
uwtable willreturn
 ; IS__TUNIT____-LABEL: define {{[^@]+}}@foo
 ; IS__TUNIT____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #0
 ; IS__TUNIT____-NEXT:  entry:
 ; IS__TUNIT____-NEXT:    [[ARRAYIDX:%.*]] = getelementptr inbounds 
[[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13
 ; IS__TUNIT____-NEXT:    ret i32* [[ARRAYIDX]]
 ;
-; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind optsize 
readnone ssp uwtable willreturn;
+; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind optsize 
readnone ssp uwtable willreturn
 ; IS__CGSCC____-LABEL: define {{[^@]+}}@foo
 ; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) #0
 ; IS__CGSCC____-NEXT:  entry:

diff  --git a/llvm/utils/UpdateTestChecks/common.py 
b/llvm/utils/UpdateTestChecks/common.py
index b964bf3e7e91..17f738601f61 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -391,7 +391,7 @@ def add_checks(output_lines, comment_marker, prefix_list, 
func_dict, func_name,
       attrs = str(func_dict[checkprefix][func_name].attrs)
       attrs = '' if attrs == 'None' else attrs
       if attrs:
-        output_lines.append('%s %s: Function Attrs: %s;' % (comment_marker, 
checkprefix, attrs))
+        output_lines.append('%s %s: Function Attrs: %s' % (comment_marker, 
checkprefix, attrs))
       args_and_sig = str(func_dict[checkprefix][func_name].args_and_sig)
       args_and_sig = genericize_check_lines([args_and_sig], is_analyze, 
vars_seen)[0]
       if '[[' in args_and_sig:


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to