https://llvm.org/bugs/show_bug.cgi?id=22953
Bug ID: 22953
Summary: template functions calling functions on template
classes can't find the referenced cursor
Product: clang
Version: 3.5
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14077
--> https://llvm.org/bugs/attachment.cgi?id=14077&action=edit
simple source file that shows the problem.
If you have a template function that invokes a function on a template class
clang_getCursorReferenced returns a null cursor.
To reproduce:
echo "[{\"directory\":\"$PWD\",\"command\":\"/usr/bin/clang++ -o $PWD/main.o
$PWD/main.cpp\",\"file\":\"$PWD/main.cpp\"}]" > compile_commands.json
clang-check -ast-dump main.cpp
Notice how the CallExpr on line:20:5 doesn't refer to anything.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs