Skip to content

Commit 7439bc9

Browse files
committed
Add FIXME for C++ parsing of Index.h
1 parent 6a39f06 commit 7439bc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/bindings/python/tests/cindex/test_enums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def test_all_variants(self):
5757
Path(__file__).parent.parent.parent.parent.parent
5858
/ "include/clang-c/Index.h"
5959
)
60+
# FIXME: Index.h is a C file, but we read it as a C++ file because we
61+
# don't get ENUM_CONSTANT_DECL cursors otherwise, which we need here
62+
# See bug report: https://github.com/llvm/llvm-project/issues/159075
6063
tu = TranslationUnit.from_source(indexheader, ["-x", "c++"])
6164

6265
enum_variant_map = {}

0 commit comments

Comments
 (0)