[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 29 12:50:22 PST 2025
================
@@ -3604,7 +3589,7 @@ def reparse(self, unsaved_files=None, options=0):
)
)
if result != 0:
- msg = "Error reparsing translation unit. Error code: " + str(result)
+ msg: str = f"Error reparsing translation unit. Error code: {result}"
----------------
mikomikotaishi wrote:
Apologies, I copied this from my other PR that added type annotations.
https://github.com/llvm/llvm-project/pull/173861
More information about the cfe-commits
mailing list