diff options
author | Utkarsh Saxena <usx@google.com> | 2021-03-02 10:09:22 +0100 |
---|---|---|
committer | Utkarsh Saxena <usx@google.com> | 2021-03-02 10:27:46 +0100 |
commit | bad8e577f9c75c8b84efca79980781599e8e9f86 (patch) | |
tree | 27f5ffc8a787d8a5049ff36455cd22ae830b8a14 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 438b5bb05a429d697674088d400e4800c1108658 (diff) | |
download | llvm-bad8e577f9c75c8b84efca79980781599e8e9f86.zip llvm-bad8e577f9c75c8b84efca79980781599e8e9f86.tar.gz llvm-bad8e577f9c75c8b84efca79980781599e8e9f86.tar.bz2 |
Fix DecisionForestBenchmark.cpp compile errors
clang-tools-extra/clangd/benchmarks/CompletionModel/DecisionForestBenchmark.cpp fails to compile since `"CompletionModel.h"` is auto-generated from clang-tools-extra/clangd/quality/model/features.json, which was changed in https://reviews.llvm.org/D94697 to remove `setFilterLength` and `setIsForbidden`, rename `setFileProximityDistance` and `setSymbolScopeDistance`, and add `setNumNameInContext` and `setFractionNameInContext`. This patch removes calls to the two removed functions, updates calls to the two renamed functions, and adds calls to the two new functions. (`20` is an arbitrary choice for the `setNumNameInContext` argument.) It also changes the `FlipCoin` argument from float to double to silence lossy conversion warnings.
Note: I don't use this tool but encountered the build errors and took a shot at fixing them. Please holler if there's another recommended solution. Thanks!
Reviewed By: usaxena95
Differential Revision: https://reviews.llvm.org/D97620
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions