llvm-project/clang/test
Bruno Cardoso Lopes a9c51fe089 Re-apply: Warning for framework headers using double quote includes
Introduce -Wquoted-include-in-framework-header, which should fire a warning
whenever a quote include appears in a framework header and suggest a fix-it.
For instance, for header A.h added in the tests, this is how the warning looks
like:

./A.framework/Headers/A.h:2:10: warning: double-quoted include "A0.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
#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 instead [-Wquoted-include-in-framework-header]
#include "B.h"
         ^~~~~
         <B.h>

This helps users to prevent frameworks from using local headers when in fact
they should be targetting system level ones.

The warning is off by default.

Differential Revision: https://reviews.llvm.org/D47157

rdar://problem/37077034

llvm-svn: 335375
2018-06-22 18:05:17 +00:00
..
ARCMT [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
ASTMerge [ASTImporter] FriendDecl importing improvements 2018-04-25 17:28:03 +00:00
Analysis [analyzer] Checker for uninitialized C++ objects 2018-06-18 11:50:17 +00:00
CXX When a dependent alignas is applied to a non-dependent typedef, 2018-06-20 23:36:55 +00:00
CodeCompletion [CodeComplete] Add a few extra tests for r333538. NFC 2018-06-01 09:49:53 +00:00
CodeGen [X86] Lower _mm[256|512]_cmp[.]_mask intrinsics to native llvm IR 2018-06-22 11:59:16 +00:00
CodeGenCUDA [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
CodeGenCXX [MS] Make sure __GetExceptionInfo works on types with no linkage 2018-06-20 21:12:20 +00:00
CodeGenCoroutines [coroutines] Pass implicit object parameter to promise ctor (fix BUG37604) 2018-05-28 18:08:47 +00:00
CodeGenObjC [CodeGen] Always use MSVC personality for windows-msvc targets 2018-06-08 00:41:01 +00:00
CodeGenObjCXX [CodeGen] Always use MSVC personality for windows-msvc targets 2018-06-08 00:41:01 +00:00
CodeGenOpenCL [AMDGPU] fixes for lds f32 builtins 2018-05-21 16:18:07 +00:00
Coverage Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
CoverageMapping [Coverage] Remove a test dependency on the itanium ABI 2018-06-01 17:11:18 +00:00
Driver [Driver] Make scudo compatible with -fsanitize-minimal-runtime 2018-06-22 14:31:30 +00:00
FixIt [Parser][FixIt] Better diagnostics for "typedef" instead of "typename" typo 2018-02-08 14:37:58 +00:00
Format [clang-format] Fix bug where -dump-config failed on ObjC header 2018-01-29 17:36:43 +00:00
Frontend Fixed test in prior build where FileCheck tried to match against 2018-06-20 19:34:05 +00:00
Headers Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors. 2018-06-20 01:05:09 +00:00
Import [ASTImporter] Properly import SourceLocations of Attrs 2018-05-08 12:45:21 +00:00
Index Fix line endings in recently updated test file 2018-06-21 12:39:24 +00:00
Integration
Layout [Sema] Fix incorrect packed aligned structure layout 2018-05-21 14:28:43 +00:00
Lexer P0096R5, P0941R2: Update to match latest feature test macro specification. 2018-06-14 00:40:20 +00:00
Misc Revert "[LTO] Enable module summary emission by default for regular LTO" 2018-06-21 21:24:30 +00:00
Modules Re-apply: Warning for framework headers using double quote includes 2018-06-22 18:05:17 +00:00
OpenMP [OPENMP, NVPTX] Fix globalization of the variables passed to orphaned 2018-06-21 20:26:33 +00:00
PCH Append new attributes to the end of an AttributeList. 2018-06-19 23:46:52 +00:00
Parser Append new attributes to the end of an AttributeList. 2018-06-19 23:46:52 +00:00
Preprocessor [hmaptool] Turn %hmaptool into a proper substitution 2018-06-22 09:46:40 +00:00
Profile
Refactor
Rewriter Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
Sema [x86] Fix a tiny bug in my test case in r335309 by marking that we don't 2018-06-21 23:52:36 +00:00
SemaCUDA [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes 2018-06-12 23:58:59 +00:00
SemaCXX [Sema] Updated note for address spaces to print the type. 2018-06-22 15:45:08 +00:00
SemaObjC Reapply "[Parse] Use CapturedStmt for @finally on MSVC" 2018-06-08 00:30:00 +00:00
SemaObjCXX [Sema] Produce diagnostics for attribute 'trivial_abi' that appears 2018-06-19 05:04:44 +00:00
SemaOpenCL [OpenCL] Fixed parsing of address spaces for C++. 2018-06-22 16:20:21 +00:00
SemaOpenCLCXX [OpenCL] Support new/delete in Sema 2018-06-14 09:51:54 +00:00
SemaTemplate Append new attributes to the end of an AttributeList. 2018-06-19 23:46:52 +00:00
TableGen [Clang Tablegen][RFC] Allow Early Textual Substitutions in `Diagnostic` messages. 2018-05-19 03:12:04 +00:00
Templight [Templight] Template Instantiation Observer 2018-02-10 14:04:45 +00:00
Tooling Fix test clang-diff-json.cpp 2018-02-10 21:28:55 +00:00
Unit
VFS [vfs] Don't bail out after a missing -ivfsoverlay file 2018-03-23 17:37:27 +00:00
clang-rename
.clang-format
CMakeLists.txt Re-apply: Add python tool to dump and construct header maps 2018-06-21 21:45:24 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [hmaptool] Turn %hmaptool into a proper substitution 2018-06-22 09:46:40 +00:00
lit.site.cfg.py.in Remove unused lit setting, see https://reviews.llvm.org/D46619 2018-05-09 12:38:51 +00:00
make_test_dirs.pl