diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-08-23 15:42:01 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-08-23 15:42:01 +0000 |
commit | 4c55d45b13e9a09b48c4dffefae04ea21e2e5822 (patch) | |
tree | 589c4c6d39b9e53923c2975700ef2b6a61a47744 /clang/test/Lexer/newline-eof-c++11.cpp | |
parent | c7cda1c59ef9559331160cd6d48d8f7e6177a180 (diff) | |
download | bcm5719-llvm-4c55d45b13e9a09b48c4dffefae04ea21e2e5822.tar.gz bcm5719-llvm-4c55d45b13e9a09b48c4dffefae04ea21e2e5822.zip |
Respect -Wnewline-eof even in C++11 mode.
If the user has requested this warning, we should emit it, even if it's not
an extension in the current language mode. However, being an extension is
more important, so prefer the pedantic warning or the pedantic-compatibility
warning if those are enabled.
<rdar://problem/12922063>
llvm-svn: 189110
Diffstat (limited to 'clang/test/Lexer/newline-eof-c++11.cpp')
-rw-r--r-- | clang/test/Lexer/newline-eof-c++11.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/test/Lexer/newline-eof-c++11.cpp b/clang/test/Lexer/newline-eof-c++11.cpp deleted file mode 100644 index eeabe8bb9fc..00000000000 --- a/clang/test/Lexer/newline-eof-c++11.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wnewline-eof -verify %s -// expected-no-diagnostics - -// The following line isn't terminated, don't fix it. -void foo() {}
\ No newline at end of file |