llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Thomas Applencourt (TApplencourt)

<details>
<summary>Changes</summary>

Remove unused CompilationDatabaseError variable (fixes #<!-- -->172374)

---
Full diff: https://github.com/llvm/llvm-project/pull/172516.diff


1 Files Affected:

- (modified) clang/bindings/python/clang/cindex.py (+1-1) 


``````````diff
diff --git a/clang/bindings/python/clang/cindex.py 
b/clang/bindings/python/clang/cindex.py
index 5a5267f51d84e..1e17627249dda 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -3879,7 +3879,7 @@ def fromDirectory(buildDir):
                     os.fspath(buildDir), byref(errorCode)
                 )
             )
-        except CompilationDatabaseError as e:
+        except CompilationDatabaseError:
             raise CompilationDatabaseError(
                 int(errorCode.value), "CompilationDatabase loading failed"
             )

``````````

</details>


https://github.com/llvm/llvm-project/pull/172516
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to