[PATCH] D63085: Provide a fix-it hint for -Wswitch, which adds missing cases. If there are >3 cases, the inserted text will contain newlines so it will not be shown in console output (but will be applied by -fixit, available to libclang and clangd, etc).
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 11:21:13 PDT 2019
sammccall created this revision.
sammccall added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay.
Herald added a project: clang.
Lifted the helper for spelling one scope from another from
SemaCodeComplete -> AST, to reuse it. It should be useful in other contexts too.
Repository:
rC Clang
https://reviews.llvm.org/D63085
Files:
include/clang/AST/DeclBase.h
lib/AST/DeclBase.cpp
lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaStmt.cpp
test/FixIt/fixit-enum.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63085.203864.patch
Type: text/x-patch
Size: 8538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190610/8834a09d/attachment.bin>
More information about the cfe-commits
mailing list