]> granicus.if.org Git - clang/commit
Teach the AST reader and writer to preserve the __DEPRECATED bit in
authorChandler Carruth <chandlerc@gmail.com>
Sat, 23 Apr 2011 20:05:38 +0000 (20:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 23 Apr 2011 20:05:38 +0000 (20:05 +0000)
commit0d2d1bcef51993ca3fd957e45fb7ec85e45016e5
treefc03665cb0fb3be23b74303d43b0a6b5c2d2aef3
parentc69a505cfa318d571ce8a0cd038c8d958585a735
Teach the AST reader and writer to preserve the __DEPRECATED bit in
language options, and warn when reading an AST with a different value
for the bit.

There doesn't appear to be a good way to test this (commenting out
similar other language options doesn't break anything) but if folks have
suggestions on tests I'm happy to add them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130071 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp