summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-14 23:32:31 +0000
committerAlp Toker <alp@nuanti.com>2013-12-14 23:32:31 +0000
commit6de6da603e11e119488ac535e74df2b4bb394aeb (patch)
tree9fb5ce9bda2d97b0dfe1f73b418525cab88f3594 /clang/test/Lexer
parent099b0d3741584183b1abea79da9fffcd9cfe8c2d (diff)
downloadbcm5719-llvm-6de6da603e11e119488ac535e74df2b4bb394aeb.tar.gz
bcm5719-llvm-6de6da603e11e119488ac535e74df2b4bb394aeb.zip
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
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r--clang/test/Lexer/bcpl-escaped-newline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Lexer/bcpl-escaped-newline.c b/clang/test/Lexer/bcpl-escaped-newline.c
index d87ee9b83ae..05d4773b87e 100644
--- a/clang/test/Lexer/bcpl-escaped-newline.c
+++ b/clang/test/Lexer/bcpl-escaped-newline.c
@@ -11,3 +11,4 @@
// Trailing whitespace!
//\
#error quux
+// expected-warning@-2 {{backslash and newline separated by space}}
OpenPOWER on IntegriCloud