llvm-project/clang/tools
Nico Weber 7dd96c23fd Don't leak the CXStoredDiagnostics returned by clang_codeCompleteGetDiagnostic()
r144269 changed clang_disposeDiagnostic() to be a no-op, but didn't update
code completion diagnostics.  Let CXCodeCompleteResults store all diagnostics
returned by clang_codeCompleteGetDiagnostic() and then free them up in
clang_disposeCodeCompleteResults().

Code completion diagnostics referred to data stored in CXCodeCompleteResults
before already, so it wasn't possible to refer to the results of
clang_codeCompleteGetDiagnostic() after clang_disposeCodeCompleteResults()
before this change already -- hence this should be a safe, backwards-compatible
change.

Leak found by LSan, fixes PR19690.

llvm-svn: 208454
2014-05-09 22:33:11 +00:00
..
arcmt-test [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-15 07:47:46 +00:00
c-arcmt-test c-arcmt-test/Makefile: Update USEDLIBS for -static. 2014-04-27 03:40:51 +00:00
c-index-test c-index-test: Don't leak the strings returned by makeClientContainer(). 2014-05-07 21:09:42 +00:00
clang-check Follow-up to r207071: Let newFrontendActionFactory() return a unique_ptr. 2014-04-28 04:57:14 +00:00
clang-format Enable alternative tokens by default for clang-format. 2014-05-08 00:05:13 +00:00
clang-format-vs clang-format vsix cmake build: use ${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR} 2013-12-05 17:49:58 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool Replace llvm::array_endof with C++11's std::end. 2014-04-12 15:42:48 +00:00
driver Update for llvm api change. 2014-05-07 13:00:49 +00:00
libclang Don't leak the CXStoredDiagnostics returned by clang_codeCompleteGetDiagnostic() 2014-05-09 22:33:11 +00:00
scan-build scan-build: Don't use realpath when the user provides an explicit path. 2014-04-29 01:37:19 +00:00
scan-view [analyzer] scan-view: don't ever serve absolute paths. 2013-04-29 17:23:06 +00:00
CMakeLists.txt CMake: enable building the clang-format vs plugin 2013-12-03 18:02:51 +00:00
Makefile Re-add clang-check to the Makefile build. 2013-08-22 16:12:04 +00:00