diff --git a/es2panda/typescript/core/helpers.cpp b/es2panda/typescript/core/helpers.cpp index b09b499e8558d9e499a07a8979cd7b97f7b0bb15..18a876b0a4fa57fab50100f2518e2f00ecad68f3 100644 --- a/es2panda/typescript/core/helpers.cpp +++ b/es2panda/typescript/core/helpers.cpp @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/base64.h b/es2panda/util/base64.h index 239a6dff9e0e104117183112fc7e624cda9e31e7..400d5d99469606e0477026029fcc1a40b6e6db1f 100644 --- a/es2panda/util/base64.h +++ b/es2panda/util/base64.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/bitset.h b/es2panda/util/bitset.h index ad621e04c83e4fcb9bf56121583b91ece301e17d..433f9a404e64b3e4a84d8cced5c94fd8c9587b25 100644 --- a/es2panda/util/bitset.h +++ b/es2panda/util/bitset.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/enumbitops.h b/es2panda/util/enumbitops.h index f42426cda410772459cda88bc33496a1d37e59ce..73fb3eda222b2126f9f2f0c3e5de0289c140facf 100644 --- a/es2panda/util/enumbitops.h +++ b/es2panda/util/enumbitops.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/helpers.cpp b/es2panda/util/helpers.cpp index 10c598c4768427b318b971e8ec45d74c3adf0fc5..afe9ed62ab56e5f0e89bbf9d0b267d08267498ff 100644 --- a/es2panda/util/helpers.cpp +++ b/es2panda/util/helpers.cpp @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/helpers.h b/es2panda/util/helpers.h index d9021aa9e2b383837240f561c9aff15c2866af41..77c8b069e08461a6b3f510c5f1e5fc090fba16c9 100644 --- a/es2panda/util/helpers.h +++ b/es2panda/util/helpers.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/hotfix.cpp b/es2panda/util/hotfix.cpp index 1994170652d94aebf75c6dee0a7cb5a09ad19d04..0c50e58422f78beabc4a0d9e73cf9423a5fbba0d 100644 --- a/es2panda/util/hotfix.cpp +++ b/es2panda/util/hotfix.cpp @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -432,7 +432,8 @@ void Hotfix::HandleFunction(const compiler::PandaGen *pg, panda::pandasm::Functi auto originFunction = originFunctionInfo_->find(funcName); if (originFunction == originFunctionInfo_->end()) { if (IsAnonymousOrDuplicateNameFunction(funcName)) { - std::cerr << "Found new anonymous or duplicate name function " << funcName << " not supported!" << std::endl; + std::cerr << "Found new anonymous or duplicate name function " << funcName + << " not supported!" << std::endl; patchError_ = true; return; } diff --git a/es2panda/util/hotfix.h b/es2panda/util/hotfix.h index 53bf7a043ed56fca4ece645e4c940ffb14f22e74..004d98b10cea552ce49c6402d2fef5c399b42408 100644 --- a/es2panda/util/hotfix.h +++ b/es2panda/util/hotfix.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/moduleHelpers.cpp b/es2panda/util/moduleHelpers.cpp index 53841408ee5b52f8fb806231a9711a610d3aac85..69174c9e67a6a62b8328f2153064e240d3f21cbd 100644 --- a/es2panda/util/moduleHelpers.cpp +++ b/es2panda/util/moduleHelpers.cpp @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/moduleHelpers.h b/es2panda/util/moduleHelpers.h index 3c0a68e918ec54d13db3585b19bccbc0e6c0bb1d..f7952e705dfb353f63b1b667e89fac03d432e879 100644 --- a/es2panda/util/moduleHelpers.h +++ b/es2panda/util/moduleHelpers.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/programCache.h b/es2panda/util/programCache.h index f0512342e2843a2900edf41ebeb86c414ea5ff47..24f71ae7d616df3f0d1fe099ddb9d4e0b8448e4c 100644 --- a/es2panda/util/programCache.h +++ b/es2panda/util/programCache.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/symbolTable.cpp b/es2panda/util/symbolTable.cpp index 000f1a9c199bb94e567ef9982b3cb6cbcfb1fb4f..2b31ca0c8b71874ce2ae7c9a28ac00601d3efdd2 100644 --- a/es2panda/util/symbolTable.cpp +++ b/es2panda/util/symbolTable.cpp @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/symbolTable.h b/es2panda/util/symbolTable.h index 892a31ad4eebccb15cc92773e3e471c0ca36f16f..884ad13177b9e9ffeab88104fc3a09e148e4ee0c 100644 --- a/es2panda/util/symbolTable.h +++ b/es2panda/util/symbolTable.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/es2panda/util/ustring.h b/es2panda/util/ustring.h index 41146010871fa6c5e2b6e95b927e217353af6abd..b9840800376f842f28e66d1b6789011ec44398af 100644 --- a/es2panda/util/ustring.h +++ b/es2panda/util/ustring.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test262/run_sunspider.py b/test262/run_sunspider.py index f7f6ea757ac1b824728332a2db959b198383a85f..0a06caa4bd5197713a7369c648b5331efdeeb267 100755 --- a/test262/run_sunspider.py +++ b/test262/run_sunspider.py @@ -254,7 +254,8 @@ class ArkProgram(): # pre-generate the dependencies' abc when ark_frontend is [es2panda] if (file_name in self.module_list or file_name in self.dynamicImport_list) and \ self.ark_frontend == ARK_FRONTEND_LIST[1]: - search_dir = "language/module-code" if file_name in self.module_list else "language/expressions/dynamic-import" + search_dir = "language/module-code" if file_name in self.module_list \ + else "language/expressions/dynamic-import" dependencies = collect_module_dependencies(js_file, os.path.join(TEST_FULL_DIR, search_dir), []) for dependency in list(set(dependencies)): self.gen_dependency_abc(dependency) diff --git a/test262/utils.py b/test262/utils.py index 6fba9bbf9cc655b62faf1543c865910087ce7244..6d38ded768192a884bed86fecba64c798b254810 100755 --- a/test262/utils.py +++ b/test262/utils.py @@ -179,7 +179,8 @@ def collect_module_dependencies(file, directory, traversedDependencies): if re.search(r'\S+_FIXTURE.js$', specifier): dependency = search_dependency(specifier.lstrip('./'), directory) if dependency not in traversedDependencies: - dependencies.extend(collect_module_dependencies(dependency, directory, list(set(traversedDependencies)))) + dependencies.extend(collect_module_dependencies(dependency, directory, + list(set(traversedDependencies)))) dependencies.append(dependency) return dependencies