]> granicus.if.org Git - clang/commit
Respect -Wnewline-eof even in C++11 mode.
authorJordan Rose <jordan_rose@apple.com>
Fri, 23 Aug 2013 15:42:01 +0000 (15:42 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 23 Aug 2013 15:42:01 +0000 (15:42 +0000)
commit7865b8e4324378e06f59adb4d60bec26a7d3d584
tree55a3a9a39d76e59f5bce915ff20f2ccb211fa606
parent3618e6fae8b734ad94221d941417c12d4bd1e3a8
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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189110 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/Lexer.cpp
test/Lexer/newline-eof-c++11.cpp [deleted file]
test/Lexer/newline-eof-c++98-compat.cpp
test/Lexer/newline-eof.c