HomePhabricator

[indexstore] Enhancement for IndexStoreCXX.h's getUnitNameFromOutputPath

Authored by akyrtzi on Nov 2 2018, 3:07 PM.

Description

[indexstore] Enhancement for IndexStoreCXX.h's getUnitNameFromOutputPath

Pass a buffer with non-zero size in the first call to indexstore_store_get_unit_name_from_output_path,
to ensure it will get the name the first time.

Previously it was depending on the passed in nameBuf to be non-zero, which should not be a requirement.

apple-llvm-split-commit: 3bf864ec6b1efd5adc85a1e5236ac01d8eaccba1
apple-llvm-split-dir: clang/

Details