[PATCH] D47157: Warning for framework headers using double quote includes
Bruno Cardoso Lopes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 31 10:45:48 PDT 2018
bruno updated this revision to Diff 149313.
bruno added a comment.
Updated the patch after Duncan and Aaron reviews. I actually went a bit more aggressive with the fixits, since I realized the conditions for the warning are already strict enough and we should take the chance to be more clear. For the attached testcase, the output now is:
./A.framework/Headers/A.h:2:10: warning: double-quoted include "A0.h" in framework header, expected angle-bracketed include <A/A0.h> instead
#include "A0.h"
^~~~~~
<A/A0.h>
./A.framework/Headers/A.h:3:10: warning: double-quoted include "B.h" in framework header, expected angle-bracketed include <B.h> instead
#include "B.h"
^~~~~
<B.h>
https://reviews.llvm.org/D47157
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/HeaderSearch.cpp
test/Modules/Inputs/double-quotes/A.framework/Headers/A.h
test/Modules/Inputs/double-quotes/A.framework/Headers/A0.h
test/Modules/Inputs/double-quotes/A.framework/Modules/module.modulemap
test/Modules/Inputs/double-quotes/B.h
test/Modules/Inputs/double-quotes/X.framework/Headers/X.h
test/Modules/Inputs/double-quotes/X.framework/Modules/module.modulemap
test/Modules/Inputs/double-quotes/a.hmap.json
test/Modules/Inputs/double-quotes/flat-header-path/Z.h
test/Modules/Inputs/double-quotes/flat-header-path/Z.modulemap
test/Modules/Inputs/double-quotes/x.hmap.json
test/Modules/Inputs/double-quotes/z.yaml
test/Modules/double-quotes.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47157.149313.patch
Type: text/x-patch
Size: 10301 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180531/0b8368b4/attachment.bin>
More information about the cfe-commits
mailing list