[clang] [llvm] Fix python escapes (PR #71170)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 3 04:12:23 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 01689175251f2624fb9d077666657aa21e3f7850..9b5cb1ac8d4b9a2aaa4c06e41620e38b6c3cae8c clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py llvm/test/lit.cfg.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py 2023-11-02 23:50:23.000000 +0000
+++ clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py 2023-11-03 11:12:15.508539 +0000
@@ -56,11 +56,13 @@
}
private:
std::vector<clang::TypeLoc> &TLRG;
};
-"""[1:]
+"""[
+ 1:
+ ]
def GenerateBaseGetLocationsDeclaration(self, CladeName):
InstanceDecoration = "*"
if CladeName in self.RefClades:
InstanceDecoration = "&"
``````````
</details>
https://github.com/llvm/llvm-project/pull/71170
More information about the cfe-commits
mailing list