[PATCH] D88164: [clang][Sema] Use enumerator instead of hard-coded constant
Mikhail Maltsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 02:24:35 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8cc842a95072: [clang][Sema] Use enumerator instead of hard-coded constant (authored by miyuki).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88164/new/
https://reviews.llvm.org/D88164
Files:
clang/lib/Sema/SemaDeclAttr.cpp
Index: clang/lib/Sema/SemaDeclAttr.cpp
===================================================================
--- clang/lib/Sema/SemaDeclAttr.cpp
+++ clang/lib/Sema/SemaDeclAttr.cpp
@@ -5868,7 +5868,7 @@
if (!F->hasWrittenPrototype()) {
Diag(Loc, diag::warn_attribute_wrong_decl_type) << AL
- << /* non-K&R-style functions */12;
+ << ExpectedFunctionWithProtoType;
return false;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88164.293981.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200924/7152db10/attachment.bin>
More information about the cfe-commits
mailing list