[clang-tools-extra] 45e0f65 - Add a floating-point suffix to silence warnings; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 07:10:06 PST 2020
Author: Aaron Ballman
Date: 2020-11-04T10:09:51-05:00
New Revision: 45e0f651623d5507a0ea85533c960956573533d7
URL: https://github.com/llvm/llvm-project/commit/45e0f651623d5507a0ea85533c960956573533d7
DIFF: https://github.com/llvm/llvm-project/commit/45e0f651623d5507a0ea85533c960956573533d7.diff
LOG: Add a floating-point suffix to silence warnings; NFC
This silences about 6000 warnings about truncating from double to float
with Visual Studio.
Added:
Modified:
clang-tools-extra/clangd/quality/CompletionModelCodegen.py
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py
index a1f0cb78037a..f27e8f6a28a3 100644
--- a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py
+++ b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py
@@ -40,7 +40,7 @@ def header_guard(filename):
def boost_node(n, label, next_label):
"""Returns code snippet for a leaf/boost node."""
- return "%s: return %s;" % (label, n['score'])
+ return "%s: return %sf;" % (label, n['score'])
def if_greater_node(n, label, next_label):
More information about the cfe-commits
mailing list