]> granicus.if.org Git - clang/commit
-Wc++98-compat warnings for the lexer.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Oct 2011 01:18:56 +0000 (01:18 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Oct 2011 01:18:56 +0000 (01:18 +0000)
commit661a99690bc133bbaa029da925481d4a860dec90
tree28ad262139c816e20a013ab8a42b602e22f2d1f3
parentb75a3451bcae1301875282e73a13934c90b6574c
-Wc++98-compat warnings for the lexer.

This also adds a -Wc++98-compat-pedantic for warning on constructs which would
be diagnosed by -std=c++98 -pedantic (that is, it warns even on C++11 features
which we enable by default, with no warning, in C++98 mode).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142034 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/Lexer.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPExpressions.cpp
lib/Lex/PPMacroExpansion.cpp
test/SemaCXX/cxx98-compat-pedantic.cpp [new file with mode: 0644]
test/SemaCXX/cxx98-compat.cpp