llvm-project/clang/unittests
Alex Lorenz 65317e1ca0 [libclang] Recommit r336590 with a fix for the memory leak in the test
The original commit had a memory leak in the test has a leak as it doesn't
dispose of the evaluated cursor result.

This also contains the follow-up NFC refactoring commit r336591.

rdar://45893054

Original commit message:

[libclang] evalute compound statement cursors before trying to evaluate
the cursor like a declaration

This change fixes a bug in libclang in which it tries to evaluate a statement
cursor as a declaration cursor, because that statement still has a pointer to
the declaration parent.

rdar://38888477

Differential Revision: https://reviews.llvm.org/D49051

llvm-svn: 350666
2019-01-08 22:32:51 +00:00
..
AST [unittests] Remove superfluous semicolon, fixing warnings with GCC. NFC. 2018-12-18 08:36:16 +00:00
ASTMatchers [clang] Add AST matcher for initializer list members 2019-01-07 14:14:36 +00:00
Analysis Fix use-after-free bug in Tooling. 2019-01-08 16:55:13 +00:00
Basic Remove stat cache chaining as it's no longer needed after PTH support has been 2018-12-21 19:33:09 +00:00
CodeGen Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
CrossTU Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
Driver [Distro] Support detecting Gentoo 2018-12-23 15:07:19 +00:00
Format clang-format: [JS] support goog.requireType. 2019-01-07 13:12:50 +00:00
Frontend Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
Index Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
Lex Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Rename Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
Rewrite [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
Sema [CodeComplete] Fix test failure on different host and target configs 2018-12-17 16:37:52 +00:00
StaticAnalyzer [analyzer] Pass the correct loc Expr from VisitIncDecOp to evalStore 2019-01-07 15:07:01 +00:00
Tooling Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build 2018-12-12 08:02:18 +00:00
libclang [libclang] Recommit r336590 with a fix for the memory leak in the test 2019-01-08 22:32:51 +00:00
CMakeLists.txt [Index] Add an option to collect macros from preprocesor. 2018-09-18 08:51:08 +00:00