llvm-project/clang/test/Lexer
Alp Toker 6de6da603e Lexer: Issue -Wbackslash-newline-escape for line comments
The warning for backslash and newline separated by whitespace was missed in
this code path.

backslash<whitespace><newline> is handled differently from compiler to compiler
so it's important to warn consistently where there's ambiguity.

Matches similar handling of block comments and non-comment lines.

llvm-svn: 197331
2013-12-14 23:32:31 +00:00
..
Inputs Relax header guard mismatch warning with edit distance heuristic. 2013-10-12 23:17:37 +00:00
11-27-2007-FloatLiterals.c
badstring_in_if0.c Migrate tests to -verify 2013-01-26 17:11:39 +00:00
bcpl-escaped-newline.c Lexer: Issue -Wbackslash-newline-escape for line comments 2013-12-14 23:32:31 +00:00
block_cmt_end.c
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
char-escapes.c
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
clang-keywords.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
comment-escape.c
conflict-marker.c Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
constants.c Partially revert r186903. 2013-07-26 00:06:45 +00:00
counter.c FileCheck'ize test 2013-01-24 23:44:04 +00:00
cxx-features.cpp Add support for C++'s SD6 feature test macros. 2013-11-27 22:58:16 +00:00
cxx0x_keyword.cpp
cxx0x_keyword_as_cxx98.cpp
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 Add macro test from N3781. 2013-09-26 18:15:22 +00:00
digraph.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
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-file.c Fix crash on end-of-file after \ in a char literal, fixes PR14369. 2012-11-17 20:25:54 +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 In Lexer::getCharAndSizeSlow[NoWarn] if we come up against 2011-12-22 04:38:07 +00:00
gnu-flags.c Add specific warning flags for GNU ext in lexer. 2013-09-05 00:02:30 +00:00
gnu_keywords.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
has_extension.c Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (and 2012-02-25 10:41:10 +00:00
has_extension_cxx.cpp Mark lambda init-captures as complete. 2013-09-28 04:37:56 +00:00
has_feature_address_sanitizer.cpp Use the individual -fsanitize=<...> arguments to control which of the UBSan 2012-11-05 22:21:05 +00:00
has_feature_c1x.c Use a triple ensure that __has_feature(c_thread_local) is 1 in C11 mode. 2013-05-02 16:22:34 +00:00
has_feature_cxx0x.cpp Mark lambda init-captures as complete. 2013-09-28 04:37:56 +00:00
has_feature_exceptions.cpp
has_feature_memory_sanitizer.cpp Add __has_feature(memory_sanitizer). 2012-12-20 12:03:13 +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
has_feature_rtti.cpp
has_feature_thread_sanitizer.cpp tsan: add __has_feature(thread_sanitizer) 2012-12-17 08:52:05 +00:00
has_feature_type_traits.cpp
header.cpp Relax header guard mismatch warning with edit distance heuristic. 2013-10-12 23:17:37 +00:00
hexfloat.cpp Revert "Don't require -re suffix on -verify directives with regexes." 2013-12-14 01:07:05 +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
ms-extensions.c
ms-extensions.cpp ext_reserved_user_defined_literal must not default to Error in MicrosoftMode. Hence create ext_ms_reserved_user_defined_literal that doesn't default to Error; otherwise MSVC headers won't parse. 2012-04-07 23:09:23 +00:00
msdos-cpm-eof.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
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
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
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 Lex and ignore Microsoft's #pragma warning(...) 2013-09-13 22:00:30 +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
rdar-8914293.c
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 Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +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 Lexer: Don't warn about Unicode in preprocessor directives. 2013-01-31 19:48:48 +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 When lexing in C11 mode, accept unicode character and string literals, per C11 2013-03-09 23:56:02 +00:00
utf8-invalid.c Lexer: Don't warn about Unicode in preprocessor directives. 2013-01-31 19:48:48 +00:00
wchar-signedness.c Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
wchar.c Add and update tests for character literals 2012-01-18 12:27:10 +00:00