[PATCH] D32424: Add a fix-it for -Wunguarded-availability
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 25 05:58:12 PDT 2017
arphaman updated this revision to Diff 96538.
arphaman added a comment.
Now the patch takes the following situations into account:
- Enclose only the statement in a `case`.
- If the fixit has to enclose a declaration statement, then the fixit will try to enclose the appropriate uses as well.
Repository:
rL LLVM
https://reviews.llvm.org/D32424
Files:
include/clang/Lex/Lexer.h
lib/Lex/Lexer.cpp
lib/Sema/SemaDeclAttr.cpp
test/FixIt/fixit-availability.c
test/FixIt/fixit-availability.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32424.96538.patch
Type: text/x-patch
Size: 17262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170425/8b01437b/attachment-0001.bin>
More information about the cfe-commits
mailing list