gecko-dev/build/clang-plugin/mozsearch-plugin
David Major d060f1b4f5 Bug 1653342 - Make MozsearchIndexer.cpp buildable with clang-11 r=asuth
Two changes happened during the LLVM 11 timeframe that break our Searchfox plugin.

First, the conversion from `llvm::StringRef` to `std::string` became explicit: adcd026838 This is easy enough to fix in a version-agnostic way.

Second, `mangleCXXCtor` no longer exists: 29e1a16be8 Since there isn't a one-size-fits-all fix, I had to use an ifdef. I mostly cargo-culted the change from 29e1a16be8 (diff-dac09655ff6a54658c320a28a6ea297c).

Differential Revision: https://phabricator.services.mozilla.com/D83838
2020-07-16 19:46:35 +00:00
..
FileOperations.cpp Bug 1638664 - Improve the way MozsearchIndexer merges analysis data. r=asuth 2020-05-25 18:53:36 +00:00
FileOperations.h Bug 1638664 - Improve the way MozsearchIndexer merges analysis data. r=asuth 2020-05-25 18:53:36 +00:00
JSONFormatter.cpp
JSONFormatter.h
MozsearchIndexer.cpp Bug 1653342 - Make MozsearchIndexer.cpp buildable with clang-11 r=asuth 2020-07-16 19:46:35 +00:00
README
StringOperations.cpp
StringOperations.h

README

This clang plugin code generates a JSON file for each compiler input
file. The JSON file contains information about the C++ symbols that
are referenced by the input file. The data is eventually consumed by
Searchfox. See https://github.com/mozsearch/mozsearch for more
information.

This plugin is enabled with the --enable-clang-plugin and
--enable-mozsearch-plugin mozconfig options. The output of the plugin
is stored in $OBJDIR/mozsearch_index.

This code is not a checker, unlike other parts of the Mozilla clang
plugin. It cannot be used with clang-tidy.