clang/test/Lexer
Petr Hosek 6df2955606 [Lexer] Add xray_instrument feature
This can be used to detect whether the code is being built with XRay
instrumentation using the __has_feature(xray_instrument) predicate.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342358 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-17 05:25:47 +00:00
..
Inputs Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths. 2016-06-13 20:40:21 +00:00
11-27-2007-FloatLiterals.c Added testcase for commit r122963. 2011-01-06 16:56:00 +00:00
aligned-allocation.cpp [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable. 2018-08-03 23:12:37 +00:00
asm-preproc-no-unicode.s Skip Unicode character expansion in assembly files 2017-04-07 10:13:00 +00:00
badstring_in_if0.c Migrate tests to -verify 2013-01-26 17:11:39 +00:00
bcpl-escaped-newline.c Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
block_cmt_end.c Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
builtin_redef.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
c90.c PR15067 (again): Don't warn about UCNs in C90 if we're raw-lexing. 2013-01-28 17:49:02 +00:00
case-insensitive-include-ms.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
case-insensitive-include-pr31836.sh [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
case-insensitive-include.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
case-insensitive-system-include.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
char-escapes.c Fix diagnostic for reporting bad escape sequence. 2010-12-03 00:09:56 +00:00
char-literal-encoding-error.c Implement warning for non-wide string literals with an unexpected encoding. Downgrade error for non-wide character literals with an unexpected encoding to a warning for compatibility with gcc and older versions of clang. <rdar://problem/10837678>. 2012-02-11 05:08:10 +00:00
char-literal.cpp Better diagnostics for string initialization. 2013-05-15 11:03:04 +00:00
char8_t.cpp Implement P0482R2, support for char8_t type. 2018-05-01 05:02:45 +00:00
comment-escape.c
conflict-marker.c Lex: Don't crash if both conflict markers are on the same line 2014-12-14 04:53:11 +00:00
constants.c Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
coroutines.cpp [coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts 2016-10-02 03:31:58 +00:00
counter.c FileCheck'ize test 2013-01-24 23:44:04 +00:00
cross-windows-on-linux-default.cpp Lexer: split test into separate files 2014-03-12 02:53:12 +00:00
cross-windows-on-linux.cpp [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
cxx-features.cpp P0096R5, P0941R2: Update to match latest feature test macro specification. 2018-06-14 00:40:20 +00:00
cxx0x_keyword_as_cxx98.cpp [Tests] Add explicit -std=lang option to a number of tests. 2015-08-01 02:55:59 +00:00
cxx0x_raw_string_delim_length.cpp When checking the encoding of an 8-bit string literal, don't just check the 2012-03-08 21:59:28 +00:00
cxx0x_raw_string_directives.cpp Add raw string literal versus C preprocessor test, suggested by James Dennett. 2013-01-16 21:43:09 +00:00
cxx0x_raw_string_unterminated.cpp Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
cxx1y_binary_literal.cpp Implement C++1y digit separator proposal (' as a digit separator). This is not 2013-09-26 03:33:06 +00:00
cxx1y_digit_separators.cpp [Lex] Fix handling numerical literals ending with ' and signed exponent. 2018-02-06 22:39:25 +00:00
cxx1z-trigraphs.cpp Do not warn about whitespace between ??/ trigraph and newline in line comments if trigraphs are disabled in the current language. 2017-04-18 21:45:04 +00:00
cxx2a-spaceship.cpp [c++2a] P0515R3: Support for overloaded operator<=>. 2017-12-01 02:13:10 +00:00
cxx2a_keyword_as_cxx17.cpp Add missing test for warning added in r310803. 2017-08-16 00:06:07 +00:00
digraph.c [Driver] Add -fno-digraphs 2018-07-17 04:56:22 +00:00
dollar-idents.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
eof-char.c Fix crash on end-of-file after \ in a char literal, fixes PR14369. 2012-11-17 20:25:54 +00:00
eof-conflict-marker.c [Lexer] Don't read out of bounds if a conflict marker is at the end of a file 2016-04-01 09:58:45 +00:00
eof-file.c Fix crash on end-of-file after \ in a char literal, fixes PR14369. 2012-11-17 20:25:54 +00:00
eof-include.c Fix buffer overflow in Lexer 2015-05-04 22:30:29 +00:00
eof-number.c [lex] Don't read past the end of the buffer 2015-03-29 14:11:37 +00:00
eof-string.c Fix crash on end-of-file after \ in a char literal, fixes PR14369. 2012-11-17 20:25:54 +00:00
escape_newline.c Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
gnu-flags.c Add specific warning flags for GNU ext in lexer. 2013-09-05 00:02:30 +00:00
half-literal.cpp Switch to gnu++14 as the default dialect. 2017-12-09 12:09:54 +00:00
has_attribute_objc_boxable.m Add missing files for objc_boxable feature. 2015-07-23 14:45:41 +00:00
has_extension.c Add support for has_feature(cxx_alignof) and has_feature(c_alignof). 2014-12-03 01:25:49 +00:00
has_extension_cxx.cpp Have '__have_extension(cxx_variadic_templates)' return true for any C++ standard. 2015-05-12 22:37:23 +00:00
has_feature_address_sanitizer.cpp hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
has_feature_boxed_nsvalue_expressions.m Add missing files for objc_boxable feature. 2015-07-23 14:45:41 +00:00
has_feature_c1x.c Add support for has_feature(cxx_alignof) and has_feature(c_alignof). 2014-12-03 01:25:49 +00:00
has_feature_cxx0x.cpp P0426: Make the library implementation of constexpr char_traits a little easier 2017-01-20 00:45:35 +00:00
has_feature_efficiency_sanitizer.cpp [esan|wset] Add working set tool driver flags 2016-05-25 00:41:24 +00:00
has_feature_exceptions.cpp Lex: Fix __has_feature(cxx_exceptions) for objective C++ 2014-04-16 02:56:48 +00:00
has_feature_memory_sanitizer.cpp [MSan] add KMSAN support to Clang driver 2018-09-07 09:21:09 +00:00
has_feature_modules.m Add __has_feature(modules) to indicate when modules are available (in 2012-01-04 21:16:09 +00:00
has_feature_objc_arc.m [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
has_feature_rtti.cpp Turn off __has_feature(cxx_rtti) when -fno-rtti-data is present 2015-08-13 17:56:49 +00:00
has_feature_thread_sanitizer.cpp tsan: add __has_feature(thread_sanitizer) 2012-12-17 08:52:05 +00:00
has_feature_type_traits.cpp Revert "[Lex] Support more type-traits in __has_feature" 2016-05-24 17:21:42 +00:00
has_feature_xray_instrument.cpp [Lexer] Add xray_instrument feature 2018-09-17 05:25:47 +00:00
header.cpp Relax header guard mismatch warning with edit distance heuristic. 2013-10-12 23:17:37 +00:00
hexfloat.cpp Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
keywords_test.c Add -f[no-]declspec to control recognition of __declspec as a keyword 2015-10-04 17:51:05 +00:00
keywords_test.cpp [c++2a] Treat 'concept' and 'requires' as keywords, add compat warning for C++17 and before. 2017-08-13 21:32:33 +00:00
long-long.cpp Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
modules-ts.cpp Add -fmodules-ts flag to cc1 for the provisional C++ modules TS, and mark 2016-07-23 02:32:21 +00:00
ms-compatibility.c MSVC: A wide string literal from L#macro_arg in a macro 2014-12-15 04:18:11 +00:00
ms-extensions.c [MS Extensions] Remove support for the i128 integer literal suffix 2015-07-26 09:02:26 +00:00
ms-extensions.cpp [Tests] Add explicit -std=lang option to a number of tests. 2015-08-01 02:55:59 +00:00
msdos-cpm-eof.c Fix test from r256596 2015-12-29 23:23:38 +00:00
multiple-include.c
newline-eof-c++98-compat.cpp Respect -Wnewline-eof even in C++11 mode. 2013-08-23 15:42:01 +00:00
newline-eof.c Revise -Wnewline-eof test per feedback from Dmitri. 2013-08-23 16:12:49 +00:00
newline-nul.c Fix mishandling of escaped newlines followed by newlines or nuls. 2017-04-17 23:44:51 +00:00
null-character-in-literal.c [Lex] Avoid out-of-bounds dereference in LexAngledStringLiteral. 2018-01-12 18:54:35 +00:00
numeric-literal-trash.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
objc_macros.m In Objective-C, ignore attempts to redefine the ARC/GC qualifier macros. 2015-12-10 23:31:01 +00:00
opencl-half-literal.cl [OpenCL] Add supported OpenCL extensions to target info. 2016-05-16 17:06:34 +00:00
pragma-mark.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
pragma-message.c Implemented #pragma GCC warning/error in the same mould as #pragma message. 2013-04-17 16:16:16 +00:00
pragma-message2.c Keep the parentheses in #pragma message (partial revert of r179771). 2013-04-19 17:13:17 +00:00
pragma-operators.cpp Add -fuse-line-directive flag to control usage of #line with -E 2015-02-26 00:17:25 +00:00
pragma-region.c Support for #pragma region/endregion for MSVC compatibility. Patch thanks to pravic! 2012-11-30 19:52:30 +00:00
preamble.c Allow for unfinished #if blocks in preambles 2017-05-30 11:54:55 +00:00
preamble2.c Allow for unfinished #if blocks in preambles 2017-05-30 11:54:55 +00:00
rdar-8914293.c Warn for missing terminating " or ' instead of error for gcc compatibility. Fixed rdar://8914293. 2011-02-15 23:45:31 +00:00
rdr-6096838-2.c Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
rdr-6096838.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
string-literal-encoding.c When checking the encoding of an 8-bit string literal, don't just check the 2012-03-08 21:59:28 +00:00
string-literal-errors.cpp Don't destroy MacroInfos if we find the macro definition is invalid; it'll get 2014-08-03 23:41:04 +00:00
string_concat.cpp When lexing in C11 mode, accept unicode character and string literals, per C11 2013-03-09 23:56:02 +00:00
token-concat.c FileCheck'ize and merge tests 2013-01-28 20:40:50 +00:00
token-concat.cpp User-defined literals: reject string and character UDLs in all places where the 2012-03-06 03:21:47 +00:00
unicode-strings.c Add -Wc99-compat warning for C11 unicode string and character literals. 2013-03-11 18:01:42 +00:00
unicode.c PR38870: Add warning for zero-width unicode characters appearing in 2018-09-07 19:25:39 +00:00
unknown-char.c Migrate tests to -verify 2013-01-26 17:11:39 +00:00
utf-16.c Fix tests that weren't actually verifying anything. 2012-04-15 22:09:44 +00:00
utf-16.c.txt
utf8-char-literal.cpp [c++1z] Support for u8 character literals. 2014-11-08 06:08:42 +00:00
utf8-invalid.c Lexer: Don't warn about Unicode in preprocessor directives. 2013-01-31 19:48:48 +00:00
warn-date-time.c Show -Wdate-time in system headers 2014-06-10 06:09:00 +00:00
warn_binary_literals.cpp Split off the binary literal warning into a subgroup of C++14 warnings 2015-09-18 23:18:39 +00:00
wchar-signedness.c [Thumb] Clang thinks "char" is signed when using a thumb triple 2014-10-24 11:28:47 +00:00
wchar.c Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00