We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2e1d3 commit b43cfa7Copy full SHA for b43cfa7
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
@@ -300,8 +300,7 @@ Example usage for a project using a compile commands database:
300
llvm::StringMap<std::vector<StringRef>> USRToBitcode;
301
Executor->get()->getToolResults()->forEachResult(
302
[&](StringRef Key, StringRef Value) {
303
- auto R = USRToBitcode.try_emplace(Key, std::vector<StringRef>());
304
- R.first->second.emplace_back(Value);
+ USRToBitcode[Key].emplace_back(Value);
305
});
306
307
// Collects all Infos according to their unique USR value. This map is added
0 commit comments